Function at 0x40c590
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cc10
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [edx + 0x1dc], ecx
mov dword [ebp - 0x18], eax
lea ecx, [ecx]
cmp eax, dword [ebp + 0x14]
jge 0x40c7df
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
xor ebx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
xor esi, esi
lea esp, [esp]
cmp word [edx + esi*2], bx
je 0x40c609
inc esi
jmp 0x40c600
lea edi, [esi + 1]
cmp edi, ebx
je 0x40c667
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004376db
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x40c653
xor eax, eax
xor ecx, ecx
cmp eax, ecx
jge 0x40c647
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
jmp 0x40c633
mov eax, dword [ebp - 0x28]
push eax
call fcn.00438e02
add esp, 4
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
xor eax, eax
mov word [edi + eax*2], cx
lea eax, [esi + 1]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
lea ebx, [ebx]
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x40c670
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00417290
test esi, esi
jne 0x40c6b8
push edi
call fcn.00438e02
add esp, 4
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x18]
shl ebx, 4
add ebx, dword [ebp + 0x10]
lea edi, [ebp - 0x1c]
lea eax, [ebp - 0x28]
call fcn.004065b0
test eax, eax
jne 0x40c7a5
lea ecx, [eax + 2]
lea esi, [ebp - 0x34]
lea edx, [ebp - 0x28]
call fcn.00406850
mov edx, dword [eax]
push 0x451f60
push edx
call fcn.004173d0
test eax, eax
mov eax, dword [ebp - 0x34]
push eax
sete byte [ebp - 0x11]
call fcn.00438e02
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x40c780
lea esi, [ebp - 0x40]
lea edx, [ebp - 0x28]
call fcn.00406830
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
push ecx
add edx, 0x1dc
mov ecx, ebx
call fcn.00406640
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
add esp, 4
push edx
mov esi, eax
call fcn.00438e02
add esp, 4
test esi, esi
je 0x40c765
mov eax, dword [ebp - 0x28]
push eax
call fcn.00438e02
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00438e02
add esp, 4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
jmp 0x40c5e0
mov edx, dword [ebp - 0x28]
push edx
call fcn.00438e02
add esp, 4
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
push eax
call fcn.00438e02
add esp, 4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
jmp 0x40c5e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10