Function at 0x531070
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x60785b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xb8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0xffffffff
mov edx, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], edx
cmove esi, eax
cmp ecx, 0xc0000001
jg 0x53114c
je 0x531142
cmp ecx, 0x80000000
je 0x53117f
cmp ecx, 0xc0000000
jne 0x531154
mov eax, 4
or esi, 2
jmp 0x531187
mov eax, 8
or esi, 1
jmp 0x531187
cmp ecx, 0xc0000002
je 0x53117f
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x11
push eax
call fcn.00532800
push 0x61a49c
lea eax, [esp + 0x68]
push eax
call fcn.005e0491
mov eax, 2
or esi, 4
push 0
push 0
push 0
push eax
push 0
push edx
call dword [0x629098]
mov ebp, eax
test ebp, ebp
jne 0x5311cb
call dword [0x629230]
push eax
lea ecx, [esp + 0x28]
call fcn.005327c0
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
call fcn.00532800
push 0x61a49c
lea eax, [esp + 0x68]
push eax
call fcn.005e0491
mov dword [esp + 0x24], ebp
mov ebx, dword [0x637c9c]
mov dword [esp + 0xac], 0
test ebx, ebx
jne 0x5311f6
lea eax, [esp + 0x64]
push eax
call dword [0x629258]
mov ebx, dword [esp + 0x80]
push 0
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.005e2030
mov edx, dword [esp + 0x18]
imul eax, ebx
mov ebx, edx
sub ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x53121f
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x5312ab
push 4
call fcn.00535180
add esp, 4
lea ecx, [esp + 0x90]
push 0
push 0x10
push ecx
push 0
push ebp
call eax
test eax, eax
je 0x531279
call dword [0x629230]
push eax
lea ecx, [esp + 0x30]
call fcn.005327c0
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.00532800
push 0x61a49c
lea eax, [esp + 0x68]
push eax
call fcn.005e0491
lea eax, [esp + 0x60]
push eax
push 0
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0xb0]
push dword [esp + 0xb0]
call fcn.00536600
mov eax, dword [esp + 0x7c]
add esp, 0x1c
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
add eax, ebx
push ecx
push eax
sub edx, ebx
push edx
sbb dword [esp + 0x20], 0
push dword [esp + 0x20]
push esi
push ebp
call dword [0x62909c]
test eax, eax
jne 0x5312fa
call dword [0x629230]
push eax
lea ecx, [esp + 0x30]
call fcn.005327c0
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.00532800
push 0x61a49c
lea eax, [esp + 0x68]
push eax
call fcn.005e0491
add eax, ebx
mov dword [edi + 8], ebx
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
push ebp
mov dword [edi + 4], eax
mov dword [esp + 0xb0], 0xffffffff
call dword [0x62922c]
mov esi, dword [0x6292c0]
lea eax, [edi + 0x10]
push 2
push 0
push 0
push eax
call esi
push eax
push dword [esp + 0x40]
call esi
push eax
call dword [0x6292b0]
test eax, eax
jne 0x531374
call dword [0x629230]
push eax
lea ecx, [esp + 0x28]
call fcn.005327c0
mov ecx, edi
call fcn.005331c0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.00532800
push 0x61a49c
lea eax, [esp + 0x38]
push eax
call fcn.005e0491
mov eax, edi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.005e0482
add esp, 0x9c
ret 0x1c