{"type": "func", "start": 834740, "end": 834900, "name": "sub_CBCB4", "pseudocode": "// \n// sub_CBCB4 from 0xcbcb4 to 0xcbd54 (160 bytes)\n// \n// 2 xrefs:\n// > sub_7755C @ 0x778c4\n// > sub_CBC5C @ 0xcbcb0\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\n__int64 __fastcall sub_CBCB4(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n  int v4; // w21\n  __int64 v5; // x20\n  __int64 v6; // x0\n  __int64 v7; // x8\n  __int64 v9; // [xsp+0h] [xbp-40h] BYREF\n\n  v2 = sub_CD580();\n  sub_CD07C(v2);\n  v3 = *(_QWORD *)(a1 + 536);\n  if ( v3 )\n  {\n    v4 = *(unsigned __int8 *)(v3 + 1062);\n    if ( *(_BYTE *)(v3 + 1062) )\n      v5 = v3 + 532;\n    else\n      v5 = 0;\n    if ( *(_BYTE *)(v3 + 530) )\n    {\n      *(_DWORD *)(v3 + 524) = 0;\n      *(_WORD *)(v3 + 528) = 0;\n      memset((void *)v3, 0, 0x208u);\n    }\n    if ( v4 )\n    {\n      *(_DWORD *)(v5 + 524) = 0;\n      *(_WORD *)(v5 + 528) = 0;\n      memset((void *)v5, 0, 0x208u);\n    }\n  }\n  v6 = sub_51F94((__int64)&v9);\n  v7 = *(_QWORD *)(a1 + 232);\n  if ( v7 && *(_QWORD *)(v7 + 64) )\n    return sub_CD368(v6);\n  else\n    return 0;\n}", "assembly": "; \n; sub_CBCB4 from 0xcbcb4 to 0xcbd54 (160 bytes)\n; \n; 2 xrefs:\n; > sub_7755C @ 0x778c4\n; > sub_CBC5C @ 0xcbcb0\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0xcbcb4\nSTP             X20, X19, [SP,#0x40+var_20]                            ; +0x4, 0xcbcb8\nSTP             X29, X30, [SP,#0x40+var_10]                            ; +0x8, 0xcbcbc\nLDR             X8, [X0,#0xA8]                                         ; +0xc, 0xcbcc0\nMOV             X19, X0                                                ; +0x10, 0xcbcc4\nBL              sub_CD580                                              ; +0x14, 0xcbcc8\nBL              sub_CD07C                                              ; +0x18, 0xcbccc\nLDR             X0, [X19,#0x218]; s                                    ; +0x1c, 0xcbcd0\nCBZ             X0, loc_CBD20                                          ; +0x20, 0xcbcd4\nLDRB            W21, [X0,#0x426]                                       ; +0x24, 0xcbcd8\nLDRB            W8, [X0,#0x212]                                        ; +0x28, 0xcbcdc\nADD             X9, X0, #0x214                                         ; +0x2c, 0xcbce0\nCMP             W21, #0                                                ; +0x30, 0xcbce4\nCSEL            X20, XZR, X9, EQ                                       ; +0x34, 0xcbce8\nCBZ             W8, loc_CBD04                                          ; +0x38, 0xcbcec\nMOV             W2, #0x208; n                                          ; +0x3c, 0xcbcf0\nMOV             W1, WZR; c                                             ; +0x40, 0xcbcf4\nSTR             WZR, [X0,#0x20C]                                       ; +0x44, 0xcbcf8\nSTRH            WZR, [X0,#0x210]                                       ; +0x48, 0xcbcfc\nBL              .memset                                                ; +0x4c, 0xcbd00\nCBZ             W21, loc_CBD20                                         ; +0x50, 0xcbd04\nMOV             W2, #0x208; n                                          ; +0x54, 0xcbd08\nMOV             X0, X20; s                                             ; +0x58, 0xcbd0c\nMOV             W1, WZR; c                                             ; +0x5c, 0xcbd10\nSTR             WZR, [X20,#0x20C]                                      ; +0x60, 0xcbd14\nSTRH            WZR, [X20,#0x210]                                      ; +0x64, 0xcbd18\nBL              .memset                                                ; +0x68, 0xcbd1c\nMOV             X0, SP                                                 ; +0x6c, 0xcbd20\nBL              sub_51F94                                              ; +0x70, 0xcbd24\nLDR             X8, [X19,#0xE8]                                        ; +0x74, 0xcbd28\nCBZ             X8, loc_CBD40                                          ; +0x78, 0xcbd2c\nLDR             X8, [X8,#0x40]                                         ; +0x7c, 0xcbd30\nCBZ             X8, loc_CBD40                                          ; +0x80, 0xcbd34\nBL              sub_CD368                                              ; +0x84, 0xcbd38\nB               loc_CBD44                                              ; +0x88, 0xcbd3c\nMOV             W0, WZR                                                ; +0x8c, 0xcbd40\nLDP             X29, X30, [SP,#0x40+var_10]                            ; +0x90, 0xcbd44\nLDP             X20, X19, [SP,#0x40+var_20]                            ; +0x94, 0xcbd48\nLDR             X21, [SP,#0x40+var_30]                                 ; +0x98, 0xcbd4c\nB               loc_CD190                                              ; +0x9c, 0xcbd50", "xrefs": ["sub_7755C @ 0x778c4", "sub_CBC5C @ 0xcbcb0"], "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"}