Function at 0x493370
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5c1040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea esi, [ebp - 0x4c]
mov dword [esi], eax
push esi
call fcn.004999e0
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x5d6e4c]
test eax, eax
je 0x493621
mov ecx, dword [0x5d6e50]
mov edi, dword [ebp + 8]
cmp ecx, esi
ja 0x493607
cmp eax, esi
jb 0x493607
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x493607
lea ecx, [ebp - 0x34]
push ecx
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4933e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x493607
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004bbef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x8c], esp
sub esp, 8
mov ebx, esp
call fcn.004bbef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx + 4], esi
call fcn.004bbef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x88], ebx
mov dword [ebx], eax
xor edi, edi
dec edi
lea ecx, [ebp - 0x70]
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.004bc9a0
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
lea eax, [ebp - 0x38]
mov dword [eax], edi
xor ecx, ecx
lea edx, [ebp - 0x3c]
mov dword [edx], ecx
lea ebx, [ebp - 0x40]
mov dword [ebx], ecx
lea ecx, [ebp - 0x4c]
mov dword [ecx], fcn.00524310
mov dword [ebp - 0x84], esi
mov dword [ecx + 4], esi
mov esi, ecx
push ebx
push edx
push eax
lea ebx, [ebp - 0x34]
push ebx
call fcn.00466e30
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test al, al
je 0x4934ed
pxor xmm0, xmm0
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x80], 0
push esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.004b28c0
add esp, 0xc
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test al, al
jne 0x493655
cmp byte [ebp - 0x41], 0
jns 0x4934ed
push dword [ebp - 0x4c]
call fcn.004f193e
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.0043f780
push 0xc
push esi
push dword [ebp - 0x84]
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
mov ebx, 0
je 0x4935c2
push 0x2c
call fcn.004f190e
add esp, 4
mov ebx, eax
movsd xmm0, qword [ebp - 0x4c]
movsd qword [ebp - 0x34], xmm0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
xor esi, esi
mov eax, dword [ebp - 0x88]
mov dword [eax + 4], esi
call fcn.004bbef0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
call fcn.004bbef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx], fcn.004937d0
mov dword [ebx + 4], esi
call fcn.004bbef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebx + 4], esi
jne 0x49379c
mov eax, dword [ebp - 0x84]
mov dword [ebx + 4], eax
call fcn.004bbef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x10], eax
movq xmm0, qword [ebp - 0x34]
movq qword [ebx + 8], xmm0
cmp dword [ebp - 0x7c], 0
jns 0x4937af
lea ecx, [ebx + 0x14]
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call fcn.004a8030
lea eax, [ebp - 0x70]
mov ecx, ebx
add ecx, 0x20
push eax
call fcn.004bc9c0
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x7c], 0
mov edi, dword [ebp + 8]
jns 0x4935d9
push dword [ebp - 0x78]
call fcn.004f193e
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.004bcaf0
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 4]
test esi, esi
je 0x4935fa
call fcn.004bbef0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x74]
mov dword [edi], eax
jmp 0x49360d
mov dword [edi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1eb0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
pcmpeqd xmm0, xmm0
lea edi, [ebp - 0x34]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov dword [edi + 0x20], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [0x5d6e4c], eax
mov dword [0x5d6e50], ecx
jmp 0x4933ad
movsx eax, byte [ebp - 0x41]
test eax, eax
cmovs eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
cmovns edx, esi
test eax, eax
js 0x49378d
je 0x493677
test edx, edx
je 0x493786
lea ecx, [ebp - 0x64]
push eax
push edx
call fcn.004bca00
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x64]
push eax
call fcn.004bd360
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x58]
push eax
call fcn.00451df0
lea ecx, [ebp - 0x58]
call fcn.004bcaf0
lea ecx, [ebp - 0x64]
call fcn.004bcaf0
lea eax, [ebp - 0x58]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push ebx
push eax
mov ebx, eax
call fcn.0043c600
mov edx, ebx
add esp, 8
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x4936d0
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
test eax, eax
js 0x49378d
lea ebx, [ebp - 0x64]
je 0x4936e5
test edx, edx
je 0x493786
lea ecx, [ebp - 0x58]
push ecx
push 3
push 0x5b2d68
push eax
push edx
call fcn.0043e8f0
add esp, 0x14
push dword [ebp - 0x38]
push ebx
call fcn.0043f130
mov edx, ebx
add esp, 8
movsx eax, byte [ebp - 0x59]
test eax, eax
jns 0x493716
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
lea ebx, [ebp - 0x58]
mov ecx, ebx
push eax
push edx
call fcn.004a97c0
cmp byte [ebp - 0x59], 0
jns 0x493733
push dword [ebp - 0x64]
call fcn.004f193e
add esp, 4
movsx eax, byte [ebp - 0x4d]
test eax, eax
cmovs eax, dword [ebp - 0x54]
cmovs ebx, dword [ebp - 0x58]
test eax, eax
js 0x49378d
mov ecx, ebx
mov ebx, esi
je 0x49374f
test ecx, ecx
je 0x493786
lea esi, [ebp - 0x64]
push eax
push ecx
push esi
call fcn.004b2ea0
add esp, 0xc
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x7c], eax
cmp byte [ebp - 0x4d], 0
jns 0x49377f
push dword [ebp - 0x58]
call fcn.004f193e
add esp, 4
mov esi, ebx
jmp 0x4934dc
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x493792
push str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x59a9a3
call fcn.00523170
call fcn.004bbef0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x493577
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x80]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x1c], eax
jmp 0x4935b4