{"type": "func", "start": 426680, "end": 426752, "name": "sub_682B8", "pseudocode": "// \n// sub_682B8 from 0x682b8 to 0x68300 (72 bytes)\n// \n// 0 xrefs:\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 sub_682B8(int *a1, int a2, int *a3, int a4)\n{\n  int v4; // r0\n  int v5; // r0\n  int v6; // r4\n\n  v4 = *a1;\n  if ( a2 == 2 )\n  {\n    v6 = *(_DWORD *)(v4 + 512);\n    *a3 = v6;\n    if ( a4 )\n      sub_BE420(a4, 32, \"%d\", v6);\n    return 0;\n  }\n  if ( a2 == 3 )\n  {\n    v5 = *(_DWORD *)(v4 + 524);\n    *a3 = v5;\n    if ( a4 )\n      sub_BE220(a4, off_E8AC4[v5 + 3], 32);\n    return 0;\n  }\n  return 31;\n}", "assembly": "; \n; sub_682B8 from 0x682b8 to 0x68300 (72 bytes)\n; \n; 0 xrefs:\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            {R4,R6,R7,LR}                                          ; +0x0, 0x682b8\nADD             R7, SP, #8                                             ; +0x2, 0x682ba\nLDR             R0, [R0]                                               ; +0x4, 0x682bc\nCMP             R1, #2                                                 ; +0x6, 0x682be\nBEQ             loc_682E2                                              ; +0x8, 0x682c0\nCMP             R1, #3                                                 ; +0xa, 0x682c2\nBNE             loc_682FC                                              ; +0xc, 0x682c4\nLDR.W           R0, [R0,#0x20C]                                        ; +0xe, 0x682c6\nSTR             R0, [R2]                                               ; +0x12, 0x682ca\nCBZ             R3, loc_682F8                                          ; +0x14, 0x682cc\nLDR             R1, =(off_E8AC4 - 0x682D6); \"Receive\" ...              ; +0x16, 0x682ce\nMOVS            R2, #0x20 ; ' '                                        ; +0x18, 0x682d0\nADD             R1, PC; off_E8AC4                                      ; +0x1a, 0x682d2\nADD.W           R0, R1, R0,LSL#2                                       ; +0x1c, 0x682d4\nLDR             R1, [R0,#0xC]                                          ; +0x20, 0x682d8\nMOV             R0, R3                                                 ; +0x22, 0x682da\nBL              sub_BE220                                              ; +0x24, 0x682dc\nB               loc_682F8                                              ; +0x28, 0x682e0\nLDR.W           R4, [R0,#0x200]                                        ; +0x2a, 0x682e2\nSTR             R4, [R2]                                               ; +0x2e, 0x682e6\nCBZ             R3, loc_682F8                                          ; +0x30, 0x682e8\nLDR             R2, =(aD - 0x682F6); \"%d\" ...                          ; +0x32, 0x682ea\nMOV             R0, R3                                                 ; +0x34, 0x682ec\nMOVS            R1, #0x20 ; ' '                                        ; +0x36, 0x682ee\nMOV             R3, R4                                                 ; +0x38, 0x682f0\nADD             R2, PC; \"%d\"                                           ; +0x3a, 0x682f2\nBL              sub_BE420                                              ; +0x3c, 0x682f4\nMOVS            R0, #0                                                 ; +0x40, 0x682f8\nPOP             {R4,R6,R7,PC}                                          ; +0x42, 0x682fa\nMOVS            R0, #0x1F                                              ; +0x44, 0x682fc\nPOP             {R4,R6,R7,PC}                                          ; +0x46, 0x682fe", "xrefs": [], "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"}