Function at 0x40cbe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x84
mov dword [esp], ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x4f62d0]
mov eax, dword [eax]
xor eax, ebp
mov dword [esp + 0x80], eax
test ebx, ebx
jne 0x40cc17
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x40cfae
mov ecx, dword [edi]
movsx esi, byte [ebp + 0x10]
push esi
call fcn.0040d1a0
test al, al
je 0x40ccbd
mov eax, dword [edi]
add esi, dword [eax + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x10
lea edi, [esp + 0x4c]
mov dword [esp + 0x40], edi
mov byte [esp + 0x5c], 1
lea ecx, [esp + 0x60]
push 0x40
push ebx
push esi
push eax
call fcn.0040d2b0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp]
mov dword [esi], eax
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi + 4], xmm0
mov eax, dword [esp + 0x44]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, edi
je 0x40cd07
mov dword [esi + 0x14], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x44], 0
jmp 0x40ce7e
mov eax, dword [edi]
mov edx, dword [eax]
mov eax, dword [esp]
mov dword [eax], edx
mov dword [eax + 0x18], 0
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
mov dword [eax + 0x1c], 0x10
lea ecx, [eax + 0x20]
mov dword [eax + 0x14], ecx
mov byte [eax + 0x30], 0
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 2
lea ecx, [eax + 0x44]
mov dword [eax + 0x38], ecx
mov esi, dword [0x4f62d0]
jmp 0x40cf95
lea edx, [esi + 0x20]
mov dword [esi + 0x14], edx
test eax, eax
jle 0x40ce7e
lea edi, [esp + 0x4c]
cmp eax, 4
jb 0x40ce5c
xor ecx, ecx
cmp eax, 0x20
jb 0x40ce11
mov ecx, eax
and ecx, 0xffffffe0
lea esi, [ecx - 0x20]
mov edi, esi
shr edi, 5
add edi, 1
mov edx, edi
and edx, 3
xor ebx, ebx
cmp esi, 0x60
mov esi, dword [esp]
jb 0x40cdca
and edi, 0xfffffffc
neg edi
xor ebx, ebx
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [esp + ebx + 0x4c]
movups xmm1, xmmword [esp + ebx + 0x5c]
movups xmmword [esi + ebx + 0x20], xmm0
movups xmmword [esi + ebx + 0x30], xmm1
movups xmm0, xmmword [esp + ebx + 0x6c]
movups xmm1, xmmword [esp + ebx + 0x7c]
movups xmmword [esi + ebx + 0x40], xmm0
movups xmmword [esi + ebx + 0x50], xmm1
movups xmm0, xmmword [esp + ebx + 0x8c]
movups xmm1, xmmword [esp + ebx + 0x9c]
movups xmmword [esi + ebx + 0x60], xmm0
movups xmmword [esi + ebx + 0x70], xmm1
movups xmm0, xmmword [esp + ebx + 0xac]
movups xmm1, xmmword [esp + ebx + 0xbc]
movups xmmword [esi + ebx + 0x80], xmm0
movups xmmword [esi + ebx + 0x90], xmm1
sub ebx, 0xffffff80
add edi, 4
jne 0x40cd60
test edx, edx
je 0x40ce09
mov edi, eax
mov eax, dword [esp]
lea esi, [eax + ebx]
add esi, 0x30
mov eax, edi
lea edi, [esp + ebx]
add edi, 0x5c
shl edx, 5
xor ebx, ebx
nop word cs:[eax + eax]
movups xmm0, xmmword [edi + ebx - 0x10]
movups xmm1, xmmword [edi + ebx]
movups xmmword [esi + ebx - 0x10], xmm0
movups xmmword [esi + ebx], xmm1
add ebx, 0x20
cmp edx, ebx
jne 0x40cdf0
cmp eax, ecx
je 0x40ce7e
test al, 0x1c
je 0x40ce49
mov dword [esp + 4], eax
mov ebx, eax
and ebx, 0xfffffffc
lea edi, [esp + ebx]
add edi, 0x4c
mov eax, dword [esp]
lea edx, [eax + ebx]
add edx, 0x20
nop dword [eax]
mov esi, dword [esp + ecx + 0x4c]
mov dword [eax + ecx + 0x20], esi
add ecx, 4
cmp ebx, ecx
jne 0x40ce30
mov eax, dword [esp + 4]
cmp eax, ebx
jne 0x40ce5c
jmp 0x40ce7e
mov esi, eax
mov eax, dword [esp]
lea edx, [eax + ecx]
add edx, 0x20
mov eax, esi
lea edi, [esp + ecx]
add edi, 0x4c
sub eax, edi
lea ecx, [esp + 0x2c]
add eax, ecx
add eax, 0x20
xor ecx, ecx
nop dword [eax]
movzx ebx, byte [edi + ecx]
mov byte [edx + ecx], bl
add ecx, 1
cmp eax, ecx
jne 0x40ce70
mov al, byte [esp + 0x5c]
mov edi, dword [esp]
mov byte [edi + 0x30], al
mov eax, dword [esp + 0x60]
mov dword [edi + 0x34], eax
mov ecx, dword [esp + 0x68]
mov dword [edi + 0x3c], ecx
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x70]
cmp eax, edx
je 0x40ceba
mov dword [edi + 0x38], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], 2
jmp 0x40ceec
lea edx, [edi + 0x44]
mov dword [edi + 0x38], edx
test ecx, ecx
jle 0x40ceec
lea ecx, [eax + ecx*8]
xor edx, edx
nop dword [eax]
mov esi, dword [eax + edx]
mov dword [edi + edx + 0x44], esi
mov esi, dword [eax + edx + 4]
mov dword [edi + edx + 0x48], esi
lea esi, [eax + edx]
add esi, 8
add edx, 8
cmp esi, ecx
jb 0x40ced0
mov dword [esp + 0x68], 0
mov byte [esp + 0x5c], 0
mov al, byte [0x5178d0]
test al, al
je 0x40cfc2
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x40cf5e
mov eax, dword [0x518b44]
mov dword [esp + 4], eax
shl ebx, 3
xor esi, esi
jmp 0x40cf37
add esi, 8
cmp ebx, esi
je 0x40cf5a
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
test eax, eax
je 0x40cf30
lea ecx, [esp + 8]
push ecx
push dword [edi + esi]
push dword [esp + 0xc]
push dword [edi + esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x40cf30
mov edi, dword [esp + 0x64]
mov dword [esp + 0x68], 0
lea eax, [esp + 0x70]
cmp edi, eax
mov esi, dword [0x4f62d0]
je 0x40cf7d
push edi
call sub.mozglue.dll_free
add esp, 4
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
cmp eax, ecx
je 0x40cf92
push eax
call sub.mozglue.dll_free
add esp, 4
mov eax, dword [esp]
mov edx, dword [esp + 0x80]
xor edx, ebp
mov ecx, dword [esi]
cmp ecx, edx
jne 0x40cfbd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [0], 0x347
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.00468008
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x40cf06
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xc]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x40cf06