Function at 0x490650
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 [0x587040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea esi, [ebp - 0x4c]
mov dword [esi], eax
push esi
call fcn.004938a0
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x59c444]
test eax, eax
je 0x4906b4
mov ecx, dword [0x59c448]
cmp ecx, esi
setbe cl
mov edi, dword [ebp + 8]
cmp eax, esi
setae al
test cl, al
jne 0x4906e5
mov dword [edi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ecef0
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 [0x59c444], eax
mov dword [0x59c448], ecx
jmp 0x490689
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x49069a
lea ecx, [ebp - 0x34]
push ecx
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x49070a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x49069a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004b8af0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x8c], esp
sub esp, 8
mov ebx, esp
call fcn.004b8af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx + 4], esi
call fcn.004b8af0
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.004b95a0
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], 0x5657c8
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.004c21e0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test al, al
je 0x49080a
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.004acca0
add esp, 0xc
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test al, al
jne 0x490927
cmp byte [ebp - 0x41], 0
jns 0x49080a
push dword [ebp - 0x4c]
call fcn.004ec97e
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.0045baf0
push 0xc
push esi
push dword [ebp - 0x84]
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
mov ebx, 0
je 0x4908df
push 0x2c
call fcn.004ec94e
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.004b8af0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
call fcn.004b8af0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx], fcn.00490aa0
mov dword [ebx + 4], esi
call fcn.004b8af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebx + 4], esi
jne 0x490a72
mov eax, dword [ebp - 0x84]
mov dword [ebx + 4], eax
call fcn.004b8af0
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 0x490a85
lea ecx, [ebx + 0x14]
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call fcn.004a1e50
lea eax, [ebp - 0x70]
mov ecx, ebx
add ecx, 0x20
push eax
call fcn.004b95c0
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x7c], 0
mov edi, dword [ebp + 8]
jns 0x4908f6
push dword [ebp - 0x78]
call fcn.004ec97e
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.004b9720
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 4]
test esi, esi
je 0x490917
call fcn.004b8af0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x74]
mov dword [edi], eax
jmp 0x4906a0
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 0x490a63
sete cl
test edx, edx
setne ch
or ch, cl
je 0x490a5c
lea ecx, [ebp - 0x64]
push eax
push edx
call fcn.004b9630
lea esi, [ebp - 0x58]
lea ecx, [ebp - 0x64]
push esi
call fcn.004ba630
lea ecx, [ebp - 0x70]
push esi
call fcn.004b97a0
mov ecx, esi
call fcn.004b9720
lea ecx, [ebp - 0x64]
call fcn.004b9720
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
push ebx
push esi
call fcn.004575e0
add esp, 8
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x49099d
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
test eax, eax
js 0x490a63
sete cl
test esi, esi
setne dl
or dl, cl
lea ebx, [ebp - 0x64]
je 0x490a5c
lea ecx, [ebp - 0x58]
push ecx
push 3
push 0x57b158
push eax
push esi
call fcn.0045a7a0
add esp, 0x14
push dword [ebp - 0x38]
mov esi, ebx
push ebx
call fcn.0045b630
add esp, 8
movsx eax, byte [ebp - 0x59]
test eax, eax
jns 0x4909e9
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
lea ebx, [ebp - 0x58]
mov ecx, ebx
push eax
push esi
call fcn.004a3590
cmp byte [ebp - 0x59], 0
jns 0x490a06
push dword [ebp - 0x64]
call fcn.004ec97e
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 0x490a63
sete cl
test ebx, ebx
setne dl
or dl, cl
je 0x490a5c
lea esi, [ebp - 0x64]
push eax
push ebx
push esi
call fcn.004ad7a0
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 0x490a54
push dword [ebp - 0x58]
call fcn.004ec97e
add esp, 4
lea esi, [ebp - 0x4c]
jmp 0x4907f9
push str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x490a68
push str....._third_partylibc_srcinclude_string_view:318:_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 0x565ab5
call fcn.0051c8d0
call fcn.004b8af0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x490894
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 0x4908d1