Function at 0x4ca2f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532ecd
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x566090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x240]
mov dword [ebp - 4], 0
push dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
push 0
mov dword [ebp - 0x28], esi
call dword [eax + 4]
lea ecx, [esi + 0xc]
call fcn.004ccde0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x54], eax
xor eax, eax
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x50], 0
mov dword [esi + 0x10], 4
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp + 0x14]
jge 0x4ca62f
mov ecx, dword [ebp + 0xc]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x20], eax
cmp word [eax], si
je 0x4ca3a7
nop
inc esi
cmp word [eax + esi*2], di
jne 0x4ca3a0
lea edx, [esi + 1]
test edx, edx
je 0x4ca3dc
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fced4
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [edi], ax
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub eax, edi
mov ecx, edi
mov dword [ebp - 0x20], eax
movzx eax, word [eax + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
test ax, ax
mov eax, dword [ebp - 0x20]
jne 0x4ca3e3
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
test edi, edi
je 0x4ca498
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test eax, eax
jne 0x4ca498
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4ca498
push edi
lea ecx, [ebp - 0x54]
call fcn.00462d10
push 0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004ba570
add esp, 4
mov byte [ebp - 4], 4
push dword [ebp - 0x54]
call fcn.004fcc7d
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.USER32.dll_CharUpperA]
push 0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x60]
call fcn.004ba4b0
add esp, 4
mov edx, edi
mov ecx, dword [eax]
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4ca470
push dword [ebp - 0x60]
call fcn.004fcc7d
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
call fcn.004fcc7d
add esp, 8
test esi, esi
jne 0x4ca4be
push edi
call fcn.004fcc7d
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 eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [ebp - 0x2c]
cmp word [edi], 0x42
jne 0x4ca603
cmp esi, 1
jl 0x4ca4ef
dec esi
lea eax, [esi*2 + 2]
push eax
lea eax, [edi + 2]
push eax
push edi
call fcn.004fe5a0
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x1c]
call fcn.004ca1f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ca582
cmp word [ecx], 0x3a
jne 0x4ca57d
mov esi, dword [ebp - 0x18]
lea edx, [eax + 1]
cmp esi, edx
jge 0x4ca520
mov edx, esi
test edx, edx
jle 0x4ca53a
sub esi, edx
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.004fe5a0
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x1c]
call fcn.004ca1f0
mov esi, eax
add esp, 4
test esi, esi
je 0x4ca574
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004fcc7d
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 0x4ca5a1
mov ecx, dword [ebp - 0x1c]
mov esi, 0x80070057
push ecx
call fcn.004fcc7d
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 - 0x28]
add esi, 0x240
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jne 0x4ca5d8
mov eax, 1
cmp ecx, 0x40
jl 0x4ca5c3
mov eax, ecx
shr eax, 2
jmp 0x4ca5ce
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
mov ecx, esi
push eax
call fcn.004b9300
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add eax, eax
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ecx + eax*8], xmm0
inc dword [esi + 8]
mov byte [ebp - 4], 0
push dword [ebp - 0x1c]
call fcn.004fcc7d
mov eax, dword [ebp - 0x24]
add esp, 4
inc eax
jmp 0x4ca377
mov ecx, dword [ebp - 0x28]
push eax
add ecx, 0xc
push edi
call fcn.004cce50
mov esi, eax
push edi
test esi, esi
jne 0x4ca583
mov byte [ebp - 4], al
call fcn.004fcc7d
mov eax, dword [ebp - 0x24]
add esp, 4
inc eax
jmp 0x4ca377
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