Function at 0x40d1a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453140
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4652b0]
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 0x40d3ef
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 0x40d219
inc esi
jmp 0x40d210
lea edi, [esi + 1]
cmp edi, ebx
je 0x40d277
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043d9cc
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x40d263
xor eax, eax
xor ecx, ecx
cmp eax, ecx
jge 0x40d257
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
jmp 0x40d243
mov eax, dword [ebp - 0x28]
push eax
call fcn.0043f105
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 0x40d280
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00417e80
test esi, esi
jne 0x40d2c8
push edi
call fcn.0043f105
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.004071a0
test eax, eax
jne 0x40d3b5
lea ecx, [eax + 2]
lea esi, [ebp - 0x34]
lea edx, [ebp - 0x28]
call fcn.00407450
mov edx, dword [eax]
push 0x458fa8
push edx
call fcn.00417fc0
test eax, eax
mov eax, dword [ebp - 0x34]
push eax
sete byte [ebp - 0x11]
call fcn.0043f105
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x40d390
lea esi, [ebp - 0x40]
lea edx, [ebp - 0x28]
call fcn.00407430
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.00407230
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
add esp, 4
push edx
mov esi, eax
call fcn.0043f105
add esp, 4
test esi, esi
je 0x40d375
mov eax, dword [ebp - 0x28]
push eax
call fcn.0043f105
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.0043f105
add esp, 4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
jmp 0x40d1f0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0043f105
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.0043f105
add esp, 4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
jmp 0x40d1f0
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