Function at 0x40caa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2258
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 0x240]
mov dword [ebp - 4], 0
push dword [ecx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
push 0
mov dword [ebp - 0x20], ebx
call dword [eax + 4]
lea ecx, [ebx + 0xc]
call fcn.0041acc0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
xor edi, edi
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], 0xffffffff
mov dword [ebx + 0x5c], 0xffffffff
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x10], 4
mov dword [ebp - 0x24], edi
cmp edi, dword [ebp + 0x14]
jge 0x40cd2c
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [eax + edi*4]
cmp word [edi], si
je 0x40cb5a
inc esi
cmp word [edi + esi*2], 0
jne 0x40cb52
push esi
lea ecx, [ebp - 0x1c]
call fcn.004037f0
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, edi
nop word [eax + eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x40cb70
mov dword [ebp - 0x18], esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_CharUpperW]
test esi, esi
jne 0x40cbb4
push ebx
call fcn.004a5802
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 edi, dword [ebp - 0x24]
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x28]
cmp word [ebx], 0x42
jne 0x40cd03
mov ecx, 1
cmp esi, ecx
jge 0x40cbd8
mov ecx, esi
test esi, esi
jle 0x40cbf2
sub esi, ecx
lea eax, [esi*2 + 2]
push eax
lea eax, [ebx + ecx*2]
push eax
push ebx
call fcn.004a7690
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1c]
call fcn.0040c970
mov esi, eax
add esp, 4
test esi, esi
jne 0x40cc55
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x3a
jne 0x40cc80
mov esi, dword [ebp - 0x18]
lea edx, [eax + 1]
cmp esi, edx
jge 0x40cc23
mov edx, esi
test esi, esi
jle 0x40cc3d
sub esi, edx
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.004a7690
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.0040c970
mov esi, eax
add esp, 4
test esi, esi
je 0x40cc77
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004a5802
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
cmp dword [ebp - 0x18], 0
je 0x40cca4
mov ecx, dword [ebp - 0x1c]
mov esi, 0x80070057
push ecx
call fcn.004a5802
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 esi, dword [ebp - 0x20]
add esi, 0x240
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jne 0x40ccdb
mov eax, 1
cmp ecx, 0x40
jl 0x40ccc6
mov eax, ecx
shr eax, 2
jmp 0x40ccd1
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
mov ecx, esi
push eax
call fcn.00427d70
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add eax, eax
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [ecx + eax*8], xmm0
inc dword [esi + 8]
mov byte [ebp - 4], 0
push dword [ebp - 0x1c]
call fcn.004a5802
add esp, 4
inc edi
jmp 0x40cb24
mov ecx, dword [ebp - 0x20]
push eax
push ebx
lea ecx, [ecx + 0xc]
call fcn.0041ad30
mov esi, eax
push ebx
test esi, esi
jne 0x40cc86
mov byte [ebp - 4], al
call fcn.004a5802
add esp, 4
inc edi
jmp 0x40cb24
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