{"type": "func", "start": 8452208, "end": 8452312, "name": "CRYPTO_secure_allocated", "pseudocode": "// \n// CRYPTO_secure_allocated from 0x80f870 to 0x80f8d8 (104 bytes)\n// \n// 2 xrefs:\n// > CRYPTO_secure_free @ 0x80f8f8\n// > <???> @ 0x641ac\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall CRYPTO_secure_allocated(unsigned int a1)\n{\n  _BOOL4 v3; // r4\n\n  if ( !dword_AD44F0 )\n    return 0;\n  CRYPTO_THREAD_write_lock(dword_AD44F4);\n  v3 = a1 >= dword_AD44D0 && a1 < dword_AD44D0 + dword_AD44D4;\n  CRYPTO_THREAD_unlock(dword_AD44F4);\n  return v3;\n}", "assembly": "; \n; CRYPTO_secure_allocated from 0x80f870 to 0x80f8d8 (104 bytes)\n; \n; 2 xrefs:\n; > CRYPTO_secure_free @ 0x80f8f8\n; > <???> @ 0x641ac\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x80f870\nLDR             R5, =(dword_AD44C8 - 0x80F880)                         ; +0x4, 0x80f874\nADD             R5, PC, R5; dword_AD44C8                               ; +0x8, 0x80f878\nLDR             R4, [R5,#(dword_AD44F0 - 0xAD44C8)]                    ; +0xc, 0x80f87c\nCMP             R4, #0                                                 ; +0x10, 0x80f880\nBNE             loc_80F890                                             ; +0x14, 0x80f884\nMOV             R0, R4                                                 ; +0x18, 0x80f888\nPOP             {R3-R5,PC}                                             ; +0x1c, 0x80f88c\nMOV             R4, R0                                                 ; +0x20, 0x80f890\nLDR             R0, [R5,#(dword_AD44F4 - 0xAD44C8)]                    ; +0x24, 0x80f894\nBL              CRYPTO_THREAD_write_lock                               ; +0x28, 0x80f898\nLDR             R3, [R5,#(dword_AD44D0 - 0xAD44C8)]                    ; +0x2c, 0x80f89c\nCMP             R4, R3                                                 ; +0x30, 0x80f8a0\nMOVCC           R4, #0                                                 ; +0x34, 0x80f8a4\nBCC             loc_80F8C0                                             ; +0x38, 0x80f8a8\nLDR             R2, [R5,#(dword_AD44D4 - 0xAD44C8)]                    ; +0x3c, 0x80f8ac\nADD             R3, R3, R2                                             ; +0x40, 0x80f8b0\nCMP             R4, R3                                                 ; +0x44, 0x80f8b4\nMOVCS           R4, #0                                                 ; +0x48, 0x80f8b8\nMOVCC           R4, #1                                                 ; +0x4c, 0x80f8bc\nLDR             R3, =(dword_AD44C8 - 0x80F8CC)                         ; +0x50, 0x80f8c0\nADD             R3, PC, R3; dword_AD44C8                               ; +0x54, 0x80f8c4\nLDR             R0, [R3,#(dword_AD44F4 - 0xAD44C8)]                    ; +0x58, 0x80f8c8\nBL              CRYPTO_THREAD_unlock                                   ; +0x5c, 0x80f8cc\nMOV             R0, R4                                                 ; +0x60, 0x80f8d0\nPOP             {R3-R5,PC}                                             ; +0x64, 0x80f8d4", "xrefs": ["CRYPTO_secure_free @ 0x80f8f8", "<???> @ 0x641ac"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}