Function at 0x597d70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3d4f
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x34], 0
je 0x597f8c
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x34]
add ecx, 0x4bc
mov edx, dword [edx + 0x4bc]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x7c]
call fcn.00599460
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp - 0xa0]
movzx edx, byte [ecx + 0x12]
test edx, edx
jne 0x597dec
mov byte [ebp - 0x7d], 0
movzx eax, byte [ebp - 0x7d]
test eax, eax
je 0x597f8c
mov ecx, dword [ebp - 0x7c]
call fcn.005993d0
mov dword [ebp - 0xa4], eax
call fcn.0055e570
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x98]
mov dword [ecx + 0x50], edx
mov dword [ebp - 0x88], 1
mov ecx, dword [ebp - 0x7c]
call fcn.005972c0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x24], 0
je 0x597e6b
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x24]
add ecx, 0x4bc
mov edx, dword [edx + 0x4bc]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x9c], 1
cmp dword [ebp - 0x90], 0
jbe 0x597e91
cmp dword [ebp - 0x94], 0xffffffff
jne 0x597e91
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 1
je 0x597eba
cmp dword [ebp - 0x8c], 2
je 0x597ec6
cmp dword [ebp - 0x8c], 4
je 0x597ed2
jmp 0x597edc
mov dword [ebp - 0x88], 2
jmp 0x597edc
mov dword [ebp - 0x88], 0x20
jmp 0x597edc
mov dword [ebp - 0x88], 0x20
mov byte [ebp - 0x7e], 0
push 0x6b7848
mov ecx, dword [ebp - 0xa4]
add ecx, 0xc
call fcn.0044b890
movzx edx, al
test edx, edx
je 0x597efe
mov byte [ebp - 0x7e], 1
movzx eax, byte [ebp - 0x7e]
test eax, eax
je 0x597f10
mov dword [ebp - 0x88], 0x80
mov dword [ebp - 0x84], 1
jmp 0x597f2b
mov ecx, dword [ebp - 0x84]
add ecx, 1
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x98]
shl edx, 1
cmp dword [ebp - 0x84], edx
ja 0x597f71
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x88]
ja 0x597f71
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x84]
push edx
call fcn.00550ee0
add esp, 8
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00597880
jmp 0x597f1c
cmp dword [ebp - 0x9c], 0
je 0x597f8c
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x7c]
add ecx, 8
call fcn.0058fcd0
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x40], 0
je 0x598002
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
cdq
push edx
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.004da65d
add esp, 0xc
mov dword [ebp - 4], 0
push 0x6b78f8
lea ecx, [ebp - 0x78]
call fcn.004465f0
lea ecx, [ebp - 0x78]
call fcn.004465b0
push eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00446610
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret