{"type": "func", "start": 6443769432, "end": 6443769563, "name": "__acrt_fenv_set_status", "pseudocode": "// \n// __acrt_fenv_set_status from 0x180141e58 to 0x180141edb (131 bytes)\n// \n// 1 xrefs:\n// > fesetenv @ 0x1801414bf\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_fenv_set_status(int a1)\n{\n  int v1; // et0\n  int v2; // r8d\n\n  v1 = _mm_getcsr();\n  v2 = (2 * ((a1 & 0x20000000) != 0)) & 0x3F\n     | ((a1 & 0x10000000) != 0)\n     | ((unsigned __int8)(4 * ((a1 & 0x8000000) != 0))\n      | (unsigned __int8)((8 * ((a1 & 0x4000000) != 0)) | (16 * ((a1 & 0x2000000) != 0)) | (32 * (HIBYTE(a1) & 1))))\n     & 0x3F;\n  _mm_setcsr(v2 | v1 & 0xFFFFFFC0);\n  return v2 | v1 & 0xFFFFFFC0;\n}", "assembly": "; \n; __acrt_fenv_set_status from 0x180141e58 to 0x180141edb (131 bytes)\n; \n; 1 xrefs:\n; > fesetenv @ 0x1801414bf\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\nmov     edx, ecx                                                       ; +0x0, 0x180141e58\nmov     r9d, 1                                                         ; +0x2, 0x180141e5a\nshr     edx, 18h                                                       ; +0x8, 0x180141e60\nand     edx, 3Fh                                                       ; +0xb, 0x180141e63\nstmxcsr [rsp+arg_0]                                                    ; +0xe, 0x180141e66\nmov     eax, edx                                                       ; +0x13, 0x180141e6b\nmov     r8d, edx                                                       ; +0x15, 0x180141e6d\nshr     eax, 1                                                         ; +0x18, 0x180141e70\nand     r8d, r9d                                                       ; +0x1a, 0x180141e72\nmovzx   ecx, al                                                        ; +0x1d, 0x180141e75\nmov     eax, edx                                                       ; +0x20, 0x180141e78\nshr     eax, 2                                                         ; +0x22, 0x180141e7a\nand     ecx, r9d                                                       ; +0x25, 0x180141e7d\nshl     ecx, 4                                                         ; +0x28, 0x180141e80\nshl     r8d, 5                                                         ; +0x2b, 0x180141e83\nor      r8d, ecx                                                       ; +0x2f, 0x180141e87\nmovzx   ecx, al                                                        ; +0x32, 0x180141e8a\nand     ecx, r9d                                                       ; +0x35, 0x180141e8d\nmov     eax, edx                                                       ; +0x38, 0x180141e90\nshr     eax, 3                                                         ; +0x3a, 0x180141e92\nshl     ecx, 3                                                         ; +0x3d, 0x180141e95\nor      r8d, ecx                                                       ; +0x40, 0x180141e98\nmovzx   ecx, al                                                        ; +0x43, 0x180141e9b\nand     ecx, r9d                                                       ; +0x46, 0x180141e9e\nmov     eax, edx                                                       ; +0x49, 0x180141ea1\nshr     eax, 4                                                         ; +0x4b, 0x180141ea3\nshl     ecx, 2                                                         ; +0x4e, 0x180141ea6\nor      r8d, ecx                                                       ; +0x51, 0x180141ea9\nshr     edx, 5                                                         ; +0x54, 0x180141eac\nmovzx   ecx, al                                                        ; +0x57, 0x180141eaf\nmovzx   eax, dl                                                        ; +0x5a, 0x180141eb2\nand     ecx, r9d                                                       ; +0x5d, 0x180141eb5\nand     eax, r9d                                                       ; +0x60, 0x180141eb8\nor      r8d, ecx                                                       ; +0x63, 0x180141ebb\nadd     eax, eax                                                       ; +0x66, 0x180141ebe\nor      r8d, eax                                                       ; +0x68, 0x180141ec0\nmov     eax, [rsp+arg_0]                                               ; +0x6b, 0x180141ec3\nand     eax, 0FFFFFFC0h                                                ; +0x6f, 0x180141ec7\nand     r8d, 3Fh                                                       ; +0x72, 0x180141eca\nor      eax, r8d                                                       ; +0x76, 0x180141ece\nmov     [rsp+arg_0], eax                                               ; +0x79, 0x180141ed1\nldmxcsr [rsp+arg_0]                                                    ; +0x7d, 0x180141ed5\nretn                                                                   ; +0x82, 0x180141eda", "xrefs": ["fesetenv @ 0x1801414bf"], "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"}