Function at 0x515a80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x808040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea esi, [ebp - 0x4c]
mov dword [esi], eax
push esi
call fcn.00533150
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x81f2b8]
test eax, eax
je 0x515e32
mov ecx, dword [0x81f2bc]
cmp ecx, esi
ja 0x515e7e
cmp eax, esi
jb 0x515e7e
lea eax, [ebp - 0x34]
mov dword [eax], 0
push eax
push dword [ebp - 0x4c]
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x515e68
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x515b05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0055fb70
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x515e73
mov dword [ebp - 0x90], esp
sub esp, 8
mov edi, esp
xor eax, eax
mov dword [ebp - 0x74], eax
call fcn.0055fb70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [edi + 4], ebx
call fcn.0055fb70
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x8c], edi
mov dword [edi], 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.0055fdd0
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x34]
movdqu xmmword [esi], xmm0
lea eax, [ebp - 0x38]
mov dword [eax], edi
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov dword [edx], ecx
lea edi, [ebp - 0x40]
mov dword [edi], ecx
lea ecx, [ebp - 0x4c]
mov dword [ecx], fcn.005fb180
mov dword [ebp - 0x88], ebx
mov dword [ecx + 4], ebx
mov ebx, ecx
push edi
push edx
push eax
push esi
call fcn.004dc770
test al, al
je 0x515ef1
pxor xmm0, xmm0
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], 0
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.005551e0
add esp, 0xc
test al, al
je 0x515e97
movsx eax, byte [ebp - 0x41]
test eax, eax
cmovs eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
cmovns edx, ebx
test eax, eax
js 0x515e66
sete cl
test edx, edx
setne ch
or ch, cl
je 0x515e66
lea ebx, [ebp - 0x64]
mov ecx, ebx
push eax
push edx
call fcn.0055fe60
lea edi, [ebp - 0x58]
mov ecx, ebx
push edi
call fcn.00560d90
lea ecx, [ebp - 0x70]
push edi
call fcn.0055ffc0
mov ecx, edi
call fcn.0055ff40
mov ecx, ebx
call fcn.0055ff40
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push esi
push edi
call fcn.004a6990
add esp, 8
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x515c38
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
test eax, eax
js 0x515e66
sete cl
test edi, edi
setne dl
or dl, cl
je 0x515e66
lea esi, [ebp - 0x58]
push esi
push 3
push 0x7a22d0
push eax
push edi
call fcn.004a8e10
add esp, 0x14
push dword [ebp - 0x38]
push ebx
call fcn.004a9330
add esp, 8
movsx eax, byte [ebp - 0x59]
test eax, eax
jns 0x515c7f
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
mov ecx, esi
push eax
push ebx
call fcn.0054a2f0
cmp byte [ebp - 0x59], 0
js 0x515eac
movsx eax, byte [ebp - 0x4d]
test eax, eax
cmovs eax, dword [ebp - 0x54]
cmovs esi, dword [ebp - 0x58]
test eax, eax
js 0x515e66
sete cl
test esi, esi
setne dl
or dl, cl
lea ebx, [ebp - 0x4c]
je 0x515e66
lea edi, [ebp - 0x64]
push eax
push esi
push edi
call fcn.005559f0
add esp, 0xc
mov esi, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x80], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x7c], eax
cmp byte [ebp - 0x4d], 0
jns 0x515ce8
push dword [ebp - 0x58]
call fcn.005c57c0
add esp, 4
xor edi, edi
cmp byte [ebp - 0x41], 0
jns 0x515cfb
push dword [ebp - 0x4c]
call fcn.005c57c0
add esp, 4
xor eax, eax
dec eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.004a9ae0
push 0xc
push ebx
push dword [ebp - 0x88]
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
mov ebx, dword [ebp + 8]
je 0x515ddd
mov dword [ebp - 0x84], esi
push 0x2c
call fcn.005c5789
add esp, 4
mov edi, eax
movsd xmm0, qword [ebp - 0x4c]
movsd qword [ebp - 0x34], xmm0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
xor ebx, ebx
mov eax, dword [ebp - 0x8c]
mov dword [eax + 4], ebx
call fcn.0055fb70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0055fb70
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi], fcn.00515f30
mov dword [edi + 4], ebx
call fcn.0055fb70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [edi + 4], ebx
jne 0x515ebc
mov eax, dword [ebp - 0x88]
mov dword [edi + 4], eax
call fcn.0055fb70
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x10], eax
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 8], xmm0
cmp dword [ebp - 0x7c], 0
jns 0x515f08
lea ecx, [edi + 0x14]
push dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
push esi
call fcn.005493c0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x70]
mov ecx, edi
add ecx, 0x20
push eax
call fcn.0055fdf0
mov dword [ebp - 0x78], edi
cmp dword [ebp - 0x7c], 0
jns 0x515def
push esi
call fcn.005c57c0
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.0055ff40
mov eax, dword [ebp - 0x8c]
mov esi, dword [eax + 4]
test esi, esi
jne 0x515ecf
mov esp, dword [ebp - 0x90]
mov eax, dword [ebp - 0x78]
mov dword [ebx], eax
mov esi, dword [ebp - 0x74]
test esi, esi
jne 0x515ee0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, ebx
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 [0x81f2b8], eax
mov dword [0x81f2bc], ecx
jmp 0x515abd
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x515aea
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
jmp 0x515e1e
lea esi, [ebp - 0x74]
mov dword [esi], 0
mov ecx, esi
xor edx, edx
call fcn.007198b0
mov ebx, dword [esi]
jmp 0x515b05
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
xor esi, esi
jmp 0x515ce8
push dword [ebp - 0x64]
call fcn.005c57c0
add esp, 4
jmp 0x515c92
call fcn.0055fb70
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x515d8b
call fcn.0055fb70
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x515e08
call fcn.0055fb70
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x515e1e
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
xor esi, esi
xor edi, edi
jmp 0x515cfb
mov esi, dword [ebp - 0x84]
mov dword [edi + 0x14], esi
mov eax, dword [ebp - 0x80]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x7c]
mov dword [edi + 0x1c], eax
jmp 0x515dcc