Function at 0x516c60
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 [0x80e040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea esi, [ebp - 0x4c]
mov dword [esi], eax
push esi
call fcn.00534700
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x8252b8]
test eax, eax
je 0x517012
mov ecx, dword [0x8252bc]
cmp ecx, esi
ja 0x51705e
cmp eax, esi
jb 0x51705e
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 0x517048
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x516ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.005613d0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x517053
mov dword [ebp - 0x90], esp
sub esp, 8
mov edi, esp
xor eax, eax
mov dword [ebp - 0x74], eax
call fcn.005613d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [edi + 4], ebx
call fcn.005613d0
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.00561680
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.005fe550
mov dword [ebp - 0x88], ebx
mov dword [ecx + 4], ebx
mov ebx, ecx
push edi
push edx
push eax
push esi
call fcn.00571e00
test al, al
je 0x5170d1
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.00556d40
add esp, 0xc
test al, al
je 0x517077
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 0x517046
sete cl
test edx, edx
setne ch
or ch, cl
je 0x517046
lea ebx, [ebp - 0x64]
mov ecx, ebx
push eax
push edx
call fcn.00561710
lea edi, [ebp - 0x58]
mov ecx, ebx
push edi
call fcn.00562640
lea ecx, [ebp - 0x70]
push edi
call fcn.00561870
mov ecx, edi
call fcn.005617f0
mov ecx, ebx
call fcn.005617f0
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.004a6460
add esp, 8
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x516e18
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
test eax, eax
js 0x517046
sete cl
test edi, edi
setne dl
or dl, cl
je 0x517046
lea esi, [ebp - 0x58]
push esi
push 3
push 0x7a84d8
push eax
push edi
call fcn.004a88e0
add esp, 0x14
push dword [ebp - 0x38]
push ebx
call fcn.004a8e00
add esp, 8
movsx eax, byte [ebp - 0x59]
test eax, eax
jns 0x516e5f
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
mov ecx, esi
push eax
push ebx
call fcn.0054b480
cmp byte [ebp - 0x59], 0
js 0x51708c
movsx eax, byte [ebp - 0x4d]
test eax, eax
cmovs eax, dword [ebp - 0x54]
cmovs esi, dword [ebp - 0x58]
test eax, eax
js 0x517046
sete cl
test esi, esi
setne dl
or dl, cl
lea ebx, [ebp - 0x4c]
je 0x517046
lea edi, [ebp - 0x64]
push eax
push esi
push edi
call fcn.00557560
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 0x516ec8
push dword [ebp - 0x58]
call fcn.005c8b90
add esp, 4
xor edi, edi
cmp byte [ebp - 0x41], 0
jns 0x516edb
push dword [ebp - 0x4c]
call fcn.005c8b90
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.004a95b0
push 0xc
push ebx
push dword [ebp - 0x88]
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
mov ebx, dword [ebp + 8]
je 0x516fbd
mov dword [ebp - 0x84], esi
push 0x2c
call fcn.005c8b59
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.005613d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.005613d0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi], fcn.00517110
mov dword [edi + 4], ebx
call fcn.005613d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [edi + 4], ebx
jne 0x51709c
mov eax, dword [ebp - 0x88]
mov dword [edi + 4], eax
call fcn.005613d0
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 0x5170e8
lea ecx, [edi + 0x14]
push dword [ebp - 0x80]
mov esi, dword [ebp - 0x84]
push esi
call fcn.0054a440
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x70]
mov ecx, edi
add ecx, 0x20
push eax
call fcn.005616a0
mov dword [ebp - 0x78], edi
cmp dword [ebp - 0x7c], 0
jns 0x516fcf
push esi
call fcn.005c8b90
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.005617f0
mov eax, dword [ebp - 0x8c]
mov esi, dword [eax + 4]
test esi, esi
jne 0x5170af
mov esp, dword [ebp - 0x90]
mov eax, dword [ebp - 0x78]
mov dword [ebx], eax
mov esi, dword [ebp - 0x74]
test esi, esi
jne 0x5170c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
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 [0x8252b8], eax
mov dword [0x8252bc], ecx
jmp 0x516c9d
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x516cca
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
jmp 0x516ffe
lea esi, [ebp - 0x74]
mov dword [esi], 0
mov ecx, esi
xor edx, edx
call fcn.00720d10
mov ebx, dword [esi]
jmp 0x516ce5
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
xor esi, esi
jmp 0x516ec8
push dword [ebp - 0x64]
call fcn.005c8b90
add esp, 4
jmp 0x516e72
call fcn.005613d0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x516f6b
call fcn.005613d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x516fe8
call fcn.005613d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x516ffe
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
xor esi, esi
xor edi, edi
jmp 0x516edb
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 0x516fac