Function at 0x491440
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 [0x57f040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea esi, [ebp - 0x4c]
mov dword [esi], eax
push esi
call fcn.00494770
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x59459c]
test eax, eax
je 0x4916f1
mov ecx, dword [0x5945a0]
mov edi, dword [ebp + 8]
cmp ecx, esi
ja 0x4916d7
cmp eax, esi
jb 0x4916d7
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4916d7
lea ecx, [ebp - 0x34]
push ecx
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4914b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x4916d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004b67c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x8c], esp
sub esp, 8
mov ebx, esp
call fcn.004b67c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx + 4], esi
call fcn.004b67c0
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.004b7270
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], 0x55e818
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.00473550
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test al, al
je 0x4915bd
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.004acb40
add esp, 0xc
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
test al, al
jne 0x491725
cmp byte [ebp - 0x41], 0
jns 0x4915bd
push dword [ebp - 0x4c]
call fcn.004e6c3e
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.0045a6b0
push 0xc
push esi
push dword [ebp - 0x84]
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
mov ebx, 0
je 0x491692
push 0x2c
call fcn.004e6c0e
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.004b67c0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
call fcn.004b67c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx], fcn.004918a0
mov dword [ebx + 4], esi
call fcn.004b67c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebx + 4], esi
jne 0x49186c
mov eax, dword [ebp - 0x84]
mov dword [ebx + 4], eax
call fcn.004b67c0
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 0x49187f
lea ecx, [ebx + 0x14]
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call fcn.004a1b50
lea eax, [ebp - 0x70]
mov ecx, ebx
add ecx, 0x20
push eax
call fcn.004b7290
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x7c], 0
mov edi, dword [ebp + 8]
jns 0x4916a9
push dword [ebp - 0x78]
call fcn.004e6c3e
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.004b73c0
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 4]
test esi, esi
je 0x4916ca
call fcn.004b67c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x74]
mov dword [edi], eax
jmp 0x4916dd
mov dword [edi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e71b0
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 [0x59459c], eax
mov dword [0x5945a0], ecx
jmp 0x49147d
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 0x49185d
je 0x491747
test edx, edx
je 0x491856
lea ecx, [ebp - 0x64]
push eax
push edx
call fcn.004b72d0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x64]
push eax
call fcn.004b7c30
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x58]
push eax
call fcn.0046a1e0
lea ecx, [ebp - 0x58]
call fcn.004b73c0
lea ecx, [ebp - 0x64]
call fcn.004b73c0
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.00455fa0
mov edx, ebx
add esp, 8
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x4917a0
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
test eax, eax
js 0x49185d
lea ebx, [ebp - 0x64]
je 0x4917b5
test edx, edx
je 0x491856
lea ecx, [ebp - 0x58]
push ecx
push 3
push 0x573b10
push eax
push edx
call fcn.00459390
add esp, 0x14
push dword [ebp - 0x38]
push ebx
call fcn.0045a1d0
mov edx, ebx
add esp, 8
movsx eax, byte [ebp - 0x59]
test eax, eax
jns 0x4917e6
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
lea ebx, [ebp - 0x58]
mov ecx, ebx
push eax
push edx
call fcn.004a3200
cmp byte [ebp - 0x59], 0
jns 0x491803
push dword [ebp - 0x64]
call fcn.004e6c3e
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 0x49185d
mov ecx, ebx
mov ebx, esi
je 0x49181f
test ecx, ecx
je 0x491856
lea esi, [ebp - 0x64]
push eax
push ecx
push esi
call fcn.004ad120
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 0x49184f
push dword [ebp - 0x58]
call fcn.004e6c3e
add esp, 4
mov esi, ebx
jmp 0x4915ac
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 0x491862
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 0x55eb93
call fcn.00516c70
call fcn.004b67c0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x491647
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 0x491684