{"type": "func", "start": 8258708, "end": 8258788, "name": "DH_set_method", "pseudocode": "// \n// DH_set_method from 0x7e0494 to 0x7e04e4 (80 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x60afc\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\nint __fastcall DH_set_method(int a1, int a2)\n{\n  void (*v3)(void); // r3\n  void (__fastcall *v5)(int); // r3\n\n  v3 = *(void (**)(void))(*(_DWORD *)(a1 + 64) + 20);\n  if ( v3 )\n    v3();\n  ENGINE_finish(*(_DWORD *)(a1 + 68));\n  v5 = *(void (__fastcall **)(int))(a2 + 16);\n  *(_DWORD *)(a1 + 64) = a2;\n  *(_DWORD *)(a1 + 68) = 0;\n  if ( v5 )\n    v5(a1);\n  return 1;\n}", "assembly": "; \n; DH_set_method from 0x7e0494 to 0x7e04e4 (80 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x60afc\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, 0x7e0494\nLDR             R3, [R0,#0x40]                                         ; +0x4, 0x7e0498\nMOV             R4, R0                                                 ; +0x8, 0x7e049c\nLDR             R3, [R3,#0x14]                                         ; +0xc, 0x7e04a0\nMOV             R5, R1                                                 ; +0x10, 0x7e04a4\nCMP             R3, #0                                                 ; +0x14, 0x7e04a8\nBEQ             loc_7E04B4                                             ; +0x18, 0x7e04ac\nBLX             R3                                                     ; +0x1c, 0x7e04b0\nLDR             R0, [R4,#0x44]                                         ; +0x20, 0x7e04b4\nBL              ENGINE_finish                                          ; +0x24, 0x7e04b8\nLDR             R3, [R5,#0x10]                                         ; +0x28, 0x7e04bc\nMOV             R2, #0                                                 ; +0x2c, 0x7e04c0\nCMP             R3, R2                                                 ; +0x30, 0x7e04c4\nSTR             R5, [R4,#0x40]                                         ; +0x34, 0x7e04c8\nSTR             R2, [R4,#0x44]                                         ; +0x38, 0x7e04cc\nBEQ             loc_7E04DC                                             ; +0x3c, 0x7e04d0\nMOV             R0, R4                                                 ; +0x40, 0x7e04d4\nBLX             R3                                                     ; +0x44, 0x7e04d8\nMOV             R0, #1                                                 ; +0x48, 0x7e04dc\nPOP             {R3-R5,PC}                                             ; +0x4c, 0x7e04e0", "xrefs": ["<???> @ 0x60afc"], "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"}