{"type": "func", "start": 6443763460, "end": 6443763618, "name": "unknown_libname_74", "pseudocode": "// \n// unknown_libname_74 from 0x180140704 to 0x1801407a2 (158 bytes)\n// \n// 3 xrefs:\n// > strpbrk @ 0x1801409a0\n// > strpbrk @ 0x1801409bf\n// > <???> @ 0x180203c2c\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// Microsoft VisualC 64bit universal runtime\n_BYTE *__fastcall unknown_libname_74(_BYTE *a1, unsigned __int8 *a2)\n{\n  __int64 v2; // rax\n  unsigned __int8 *v3; // r9\n  bool v4; // cf\n  unsigned __int8 i; // al\n  _BYTE v8[32]; // [rsp+20h] [rbp-38h]\n\n  v2 = 0;\n  v3 = a2;\n  v4 = 1;\n  do\n  {\n    if ( !v4 )\n      _report_rangecheckfailure();\n    v8[v2++] = 0;\n    v4 = (unsigned __int64)v2 < 0x20;\n  }\n  while ( v2 < 32 );\n  for ( i = *a2; i; i = *v3 )\n  {\n    ++v3;\n    v8[(unsigned __int64)i >> 3] |= 1 << (i & 7);\n  }\n  while ( 1 )\n  {\n    if ( !*a1 )\n      return nullptr;\n    if ( ((unsigned __int8)(1 << (*a1 & 7)) & v8[(unsigned __int64)(unsigned __int8)*a1 >> 3]) != 0 )\n      break;\n    ++a1;\n  }\n  return a1;\n}", "assembly": "; \n; unknown_libname_74 from 0x180140704 to 0x1801407a2 (158 bytes)\n; \n; 3 xrefs:\n; > strpbrk @ 0x1801409a0\n; > strpbrk @ 0x1801409bf\n; > <???> @ 0x180203c2c\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     rsp, 58h                                                       ; +0x0, 0x180140704\nmov     rax, cs:__security_cookie                                      ; +0x4, 0x180140708\nxor     rax, rsp                                                       ; +0xb, 0x18014070f\nmov     [rsp+58h+var_18], rax                                          ; +0xe, 0x180140712\nxor     eax, eax                                                       ; +0x13, 0x180140717\nmov     r9, rdx                                                        ; +0x15, 0x180140719\ncmp     rax, 20h ; ' '                                                 ; +0x18, 0x18014071c\nmov     r8, rcx                                                        ; +0x1c, 0x180140720\njnb     short loc_18014079C                                            ; +0x1f, 0x180140723\nmov     [rsp+rax+58h+var_38], 0                                        ; +0x21, 0x180140725\ninc     rax                                                            ; +0x26, 0x18014072a\ncmp     rax, 20h ; ' '                                                 ; +0x29, 0x18014072d\njl      short loc_180140723                                            ; +0x2d, 0x180140731\nmov     al, [rdx]                                                      ; +0x2f, 0x180140733\njmp     short loc_180140756                                            ; +0x31, 0x180140735\nmovzx   edx, al                                                        ; +0x33, 0x180140737\nshr     rdx, 3                                                         ; +0x36, 0x18014073a\nmovzx   eax, al                                                        ; +0x3a, 0x18014073e\nand     eax, 7                                                         ; +0x3d, 0x180140741\nmovzx   ecx, [rsp+rdx+58h+var_38]                                      ; +0x40, 0x180140744\nbts     ecx, eax                                                       ; +0x45, 0x180140749\ninc     r9                                                             ; +0x48, 0x18014074c\nmov     [rsp+rdx+58h+var_38], cl                                       ; +0x4b, 0x18014074f\nmov     al, [r9]                                                       ; +0x4f, 0x180140753\ntest    al, al                                                         ; +0x52, 0x180140756\njnz     short loc_180140737                                            ; +0x54, 0x180140758\njmp     short loc_18014077B                                            ; +0x56, 0x18014075a\nmovzx   eax, r9b                                                       ; +0x58, 0x18014075c\nmov     edx, 1                                                         ; +0x5c, 0x180140760\nmovzx   ecx, r9b                                                       ; +0x61, 0x180140765\nand     ecx, 7                                                         ; +0x65, 0x180140769\nshr     rax, 3                                                         ; +0x68, 0x18014076c\nshl     edx, cl                                                        ; +0x6c, 0x180140770\ntest    [rsp+rax+58h+var_38], dl                                       ; +0x6e, 0x180140772\njnz     short loc_180140797                                            ; +0x72, 0x180140776\ninc     r8                                                             ; +0x74, 0x180140778\nmov     r9b, [r8]                                                      ; +0x77, 0x18014077b\ntest    r9b, r9b                                                       ; +0x7a, 0x18014077e\njnz     short loc_18014075C                                            ; +0x7d, 0x180140781\nxor     eax, eax                                                       ; +0x7f, 0x180140783\nmov     rcx, [rsp+58h+var_18]                                          ; +0x81, 0x180140785\nxor     rcx, rsp; StackCookie                                          ; +0x86, 0x18014078a\ncall    __security_check_cookie                                        ; +0x89, 0x18014078d\nadd     rsp, 58h                                                       ; +0x8e, 0x180140792\nretn                                                                   ; +0x92, 0x180140796\nmov     rax, r8                                                        ; +0x93, 0x180140797\njmp     short loc_180140785                                            ; +0x96, 0x18014079a\ncall    __report_rangecheckfailure                                     ; +0x98, 0x18014079c\ndb 0CCh                                                                ; +0x9d, 0x1801407a1", "xrefs": ["strpbrk @ 0x1801409a0", "strpbrk @ 0x1801409bf", "<???> @ 0x180203c2c"], "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"}