{"type": "func", "start": 6443695512, "end": 6443695581, "name": "__acrt_errno_from_os_error", "pseudocode": "// \n// __acrt_errno_from_os_error from 0x18012fd98 to 0x18012fddd (69 bytes)\n// \n// 2 xrefs:\n// > __acrt_errno_map_os_error @ 0x18012fe1c\n// > _free_base @ 0x180134844\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 _acrt_errno_from_os_error(int a1)\n{\n  __int64 v1; // rax\n  unsigned int *v2; // rdx\n  __int64 result; // rax\n\n  v1 = 0;\n  v2 = dword_180172240;\n  do\n  {\n    if ( a1 == *v2 )\n      return dword_180172240[2 * v1 + 1];\n    v1 = (unsigned int)(v1 + 1);\n    v2 += 2;\n  }\n  while ( (unsigned int)v1 < 0x2D );\n  if ( (unsigned int)(a1 - 19) <= 0x11 )\n    return 13;\n  result = 22;\n  if ( (unsigned int)(a1 - 188) <= 0xE )\n    return 8;\n  return result;\n}", "assembly": "; \n; __acrt_errno_from_os_error from 0x18012fd98 to 0x18012fddd (69 bytes)\n; \n; 2 xrefs:\n; > __acrt_errno_map_os_error @ 0x18012fe1c\n; > _free_base @ 0x180134844\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\nxor     eax, eax                                                       ; +0x0, 0x18012fd98\nlea     r9, dword_180172240                                            ; +0x2, 0x18012fd9a\nmov     rdx, r9                                                        ; +0x9, 0x18012fda1\nlea     r8d, [rax+8]                                                   ; +0xc, 0x18012fda4\ncmp     ecx, [rdx]                                                     ; +0x10, 0x18012fda8\njz      short loc_18012FDD7                                            ; +0x12, 0x18012fdaa\ninc     eax                                                            ; +0x14, 0x18012fdac\nadd     rdx, r8                                                        ; +0x16, 0x18012fdae\ncmp     eax, 2Dh ; '-'                                                 ; +0x19, 0x18012fdb1\njb      short loc_18012FDA8                                            ; +0x1c, 0x18012fdb4\nlea     eax, [rcx-13h]                                                 ; +0x1e, 0x18012fdb6\ncmp     eax, 11h                                                       ; +0x21, 0x18012fdb9\nja      short loc_18012FDC4                                            ; +0x24, 0x18012fdbc\nmov     eax, 0Dh                                                       ; +0x26, 0x18012fdbe\nretn                                                                   ; +0x2b, 0x18012fdc3\nadd     ecx, 0FFFFFF44h                                                ; +0x2c, 0x18012fdc4\nmov     eax, 16h                                                       ; +0x32, 0x18012fdca\ncmp     ecx, 0Eh                                                       ; +0x37, 0x18012fdcf\ncmovbe  eax, r8d                                                       ; +0x3a, 0x18012fdd2\nretn                                                                   ; +0x3e, 0x18012fdd6\nmov     eax, [r9+rax*8+4]                                              ; +0x3f, 0x18012fdd7\nretn                                                                   ; +0x44, 0x18012fddc", "xrefs": ["__acrt_errno_map_os_error @ 0x18012fe1c", "_free_base @ 0x180134844"], "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"}