Function at 0x499120
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50063d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x534090]
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.0049bc10
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 0x49945f
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 0x4991d7
nop
inc esi
cmp word [eax + esi*2], di
jne 0x4991d0
lea edx, [esi + 1]
test edx, edx
je 0x49920c
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cbd6c
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 0x499213
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
test edi, edi
je 0x4992c8
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test eax, eax
jne 0x4992c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4992c8
push edi
lea ecx, [ebp - 0x54]
call fcn.00455820
push 0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004893c0
add esp, 4
mov byte [ebp - 4], 4
push dword [ebp - 0x54]
call fcn.004cbb15
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.00489300
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 0x4992a0
push dword [ebp - 0x60]
call fcn.004cbb15
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
call fcn.004cbb15
add esp, 8
test esi, esi
jne 0x4992ee
push edi
call fcn.004cbb15
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 0x499433
cmp esi, 1
jl 0x49931f
dec esi
lea eax, [esi*2 + 2]
push eax
lea eax, [edi + 2]
push eax
push edi
call fcn.004cd290
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x1c]
call fcn.00499020
mov ecx, dword [ebp - 0x1c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4993b2
cmp word [ecx], 0x3a
jne 0x4993ad
mov esi, dword [ebp - 0x18]
lea edx, [eax + 1]
cmp esi, edx
jge 0x499350
mov edx, esi
test edx, edx
jle 0x49936a
sub esi, edx
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.004cd290
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x1c]
call fcn.00499020
mov esi, eax
add esp, 4
test esi, esi
je 0x4993a4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004cbb15
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 0x4993d1
mov ecx, dword [ebp - 0x1c]
mov esi, 0x80070057
push ecx
call fcn.004cbb15
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 0x499408
mov eax, 1
cmp ecx, 0x40
jl 0x4993f3
mov eax, ecx
shr eax, 2
jmp 0x4993fe
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
mov ecx, esi
push eax
call fcn.00488150
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.004cbb15
mov eax, dword [ebp - 0x24]
add esp, 4
inc eax
jmp 0x4991a7
mov ecx, dword [ebp - 0x28]
push eax
add ecx, 0xc
push edi
call fcn.0049bc80
mov esi, eax
push edi
test esi, esi
jne 0x4993b3
mov byte [ebp - 4], al
call fcn.004cbb15
mov eax, dword [ebp - 0x24]
add esp, 4
inc eax
jmp 0x4991a7
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