{"type": "func", "start": 10634352, "end": 10634456, "name": "CRYPTO_secure_allocated", "pseudocode": "// \n// CRYPTO_secure_allocated from 0xa24470 to 0xa244d8 (104 bytes)\n// \n// 2 xrefs:\n// > CRYPTO_secure_free @ 0xa244f8\n// > <???> @ 0x7dc2c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:57 +0000\n// \n\nbool __fastcall CRYPTO_secure_allocated(unsigned int a1)\n{\n  _BOOL4 v3; // r4\n\n  if ( !dword_D3577C )\n    return 0;\n  CRYPTO_THREAD_write_lock(dword_D35780);\n  v3 = a1 >= dword_D3575C && a1 < dword_D3575C + dword_D35760;\n  CRYPTO_THREAD_unlock(dword_D35780);\n  return v3;\n}", "assembly": "; \n; CRYPTO_secure_allocated from 0xa24470 to 0xa244d8 (104 bytes)\n; \n; 2 xrefs:\n; > CRYPTO_secure_free @ 0xa244f8\n; > <???> @ 0x7dc2c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:57 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0xa24470\nLDR             R5, =(dword_D35754 - 0xA24480)                         ; +0x4, 0xa24474\nADD             R5, PC, R5; dword_D35754                               ; +0x8, 0xa24478\nLDR             R4, [R5,#(dword_D3577C - 0xD35754)]                    ; +0xc, 0xa2447c\nCMP             R4, #0                                                 ; +0x10, 0xa24480\nBNE             loc_A24490                                             ; +0x14, 0xa24484\nMOV             R0, R4                                                 ; +0x18, 0xa24488\nPOP             {R3-R5,PC}                                             ; +0x1c, 0xa2448c\nMOV             R4, R0                                                 ; +0x20, 0xa24490\nLDR             R0, [R5,#(dword_D35780 - 0xD35754)]                    ; +0x24, 0xa24494\nBL              CRYPTO_THREAD_write_lock                               ; +0x28, 0xa24498\nLDR             R3, [R5,#(dword_D3575C - 0xD35754)]                    ; +0x2c, 0xa2449c\nCMP             R4, R3                                                 ; +0x30, 0xa244a0\nMOVCC           R4, #0                                                 ; +0x34, 0xa244a4\nBCC             loc_A244C0                                             ; +0x38, 0xa244a8\nLDR             R2, [R5,#(dword_D35760 - 0xD35754)]                    ; +0x3c, 0xa244ac\nADD             R3, R3, R2                                             ; +0x40, 0xa244b0\nCMP             R4, R3                                                 ; +0x44, 0xa244b4\nMOVCS           R4, #0                                                 ; +0x48, 0xa244b8\nMOVCC           R4, #1                                                 ; +0x4c, 0xa244bc\nLDR             R3, =(dword_D35754 - 0xA244CC)                         ; +0x50, 0xa244c0\nADD             R3, PC, R3; dword_D35754                               ; +0x54, 0xa244c4\nLDR             R0, [R3,#(dword_D35780 - 0xD35754)]                    ; +0x58, 0xa244c8\nBL              CRYPTO_THREAD_unlock                                   ; +0x5c, 0xa244cc\nMOV             R0, R4                                                 ; +0x60, 0xa244d0\nPOP             {R3-R5,PC}                                             ; +0x64, 0xa244d4", "xrefs": ["CRYPTO_secure_free @ 0xa244f8", "<???> @ 0x7dc2c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}