Function at 0x416f70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
cmp dword [ecx + 8], 0
jne 0x4175e4
lea esi, [esp + 0x88]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], edx
push esi
call fcn.0043b1a0
add esp, 4
push esi
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [esp + 0x88]
xor ecx, ecx
mov ebx, 1
mov edi, 0
mov dword [esp + 0x60], eax
mov eax, 0x80000000
mov esi, ebx
cpuid
xchg ebx, esi
cmp eax, 0x80000004
jb 0x4171d9
mov dword [esp + 0x50], eax
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 4
push 0x50
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x41763d
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
mov ebx, 0x80000000
mov edi, 0x80000000
mov dword [esp + 0x20], 0
nop word [eax + eax]
cmp ebx, eax
mov eax, ebx
adc edi, 0
xor ecx, ecx
mov esi, ebx
cpuid
xchg ebx, esi
mov dword [esp], esi
mov dword [esp + 0x68], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x18]
jne 0x417055
lea eax, [esp + 0x18]
push eax
call fcn.00424230
add esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
mov eax, esi
inc esi
shl eax, 4
mov dword [ecx + eax], edx
mov edx, dword [esp]
mov dword [ecx + eax + 4], edx
mov edx, dword [esp + 4]
mov dword [ecx + eax + 8], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax + 0xc], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], esi
cmp ebx, eax
jae 0x41708f
cmp edi, eax
mov ebx, edi
jbe 0x417020
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 1
push 0x30
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x417646
mov ecx, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
cmp ecx, 3
jb 0x417187
mov ebx, dword [esp + 0x1c]
shl ecx, 4
lea edi, [esp + 8]
mov edx, dword [ebx + 0x20]
add ecx, ebx
lea esi, [ebx + 0x30]
mov dword [esp], ecx
mov ecx, edi
call fcn.00417740
mov edx, dword [ebx + 0x24]
mov ecx, edi
call fcn.00417740
mov edx, dword [ebx + 0x28]
mov ecx, edi
call fcn.00417740
mov edx, dword [ebx + 0x2c]
mov ecx, edi
call fcn.00417740
cmp esi, dword [esp]
je 0x41715e
mov ebx, 0xfffffff0
lea edi, [esp + 8]
nop word [eax + eax]
mov edx, dword [esi + ebx + 0x10]
mov ecx, edi
call fcn.00417740
mov edx, dword [esi + ebx + 0x14]
mov ecx, edi
call fcn.00417740
mov edx, dword [esi + ebx + 0x18]
mov ecx, edi
call fcn.00417740
mov edx, dword [esi + ebx + 0x1c]
mov ecx, edi
call fcn.00417740
mov ecx, dword [esp]
test ebx, ebx
je 0x41715e
lea eax, [esi + ebx + 0x20]
add ebx, 0x10
cmp eax, ecx
jne 0x417120
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
xor esi, esi
test ecx, ecx
je 0x417187
nop dword [eax]
cmp byte [eax + esi], 0
je 0x41717f
inc esi
cmp ecx, esi
jne 0x417170
mov esi, ecx
jmp 0x417187
cmp esi, ecx
ja 0x417670
lea ecx, [esp + 0x28]
push esi
push eax
push ecx
call fcn.004e1f50
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0x41738c
mov ebx, 1
xor edi, edi
mov eax, dword [esp + 8]
test eax, eax
je 0x4171bf
push 1
push eax
push dword [esp + 0x14]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4171d9
shl eax, 4
push 4
push eax
push dword [esp + 0x24]
call fcn.0040d1e0
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 4], edi
xor eax, eax
xor ecx, ecx
mov ebx, ebx
cpuid
xchg ebx, ebx
mov eax, dword [0x55bd94]
mov dword [esp], ecx
mov esi, edx
movzx eax, byte [eax]
push 1
push 0xc
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x41762c
lea edi, [esp + 8]
mov edx, ebx
mov dword [esp + 8], 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov ecx, edi
call fcn.00417740
mov ecx, edi
mov edx, esi
call fcn.00417740
mov edx, dword [esp]
mov ecx, edi
call fcn.00417740
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x417267
xor edx, edx
nop
cmp byte [eax + edx], 0
je 0x41725d
inc edx
cmp ecx, edx
jne 0x417250
jmp 0x417267
cmp edx, ecx
ja 0x417664
mov ecx, edx
lea edx, [esp + 0x28]
push ecx
push eax
push edx
call fcn.004e1f50
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0x417297
mov eax, dword [esp + 0x60]
cmp ax, 0xe
ja 0x4172c9
mov edi, dword [eax*4 + 0x537cec]
mov esi, dword [eax*4 + 0x537d28]
jmp 0x4172d3
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
test edi, edi
je 0x4175ec
js 0x41764f
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 1
push edi
call fcn.0040d1d0
add esp, 8
test eax, eax
jne 0x4172ee
jmp 0x417658
mov esi, 0x537c42
mov edi, 7
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 1
push edi
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x417635
mov ebx, eax
push edi
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
je 0x417312
push 1
push eax
push dword [esp + 0x14]
call fcn.0040d1e0
add esp, 0xc
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x9c]
cmp byte [esp + 0x4c], 0
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
je 0x417361
lea ecx, [esp + 0x54]
mov edx, ebx
call fcn.004177d0
inc ebx
jne 0x4173d6
xor ebx, ebx
mov eax, 8
jmp 0x417402
test ebx, ebx
je 0x4173c4
lea esi, [ebx*8]
cmp ebx, 0xfffffff
ja 0x417617
push 8
push esi
call fcn.0040d220
add esp, 8
test eax, eax
jne 0x4173c9
jmp 0x417620
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
test edi, edi
je 0x4175f6
js 0x41764f
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 1
push edi
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x417658
mov ebx, eax
jmp 0x4175fb
mov eax, 8
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
inc ebx
mov esi, ebx
shl esi, 6
cmp ebx, 0x1ffffff
ja 0x417617
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 8
push esi
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x417620
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
test edi, edi
mov dword [esp + 4], ecx
je 0x417549
shl edi, 3
mov esi, 1
jmp 0x41749e
mov eax, dword [esp + 0x44]
mov ecx, ebx
inc ebx
inc esi
shl ecx, 6
add edi, 0xfffffff8
mov dword [eax + ecx], 0x80000000
mov dword [eax + ecx + 0xc], 0
mov dword [eax + ecx + 0x10], edx
mov edx, dword [esp]
mov dword [eax + ecx + 0x14], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx + 0x20], edx
movsd xmm0, qword [esp + 8]
movsd qword [eax + ecx + 0x18], xmm0
mov edx, dword [esp + 0x30]
mov dword [eax + ecx + 0x2c], edx
movsd xmm0, qword [esp + 0x28]
movsd qword [eax + ecx + 0x24], xmm0
mov edx, dword [esp + 0x20]
mov dword [eax + ecx + 0x38], edx
movsd xmm0, qword [esp + 0x18]
movsd qword [eax + ecx + 0x30], xmm0
mov dword [esp + 0x48], ebx
je 0x417549
lea eax, [esp + 0x84]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], 0x537ce4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x84], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], fcn.004ec920
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 1
push ebx
lea eax, [esp + 0xc]
push eax
call fcn.004d1b40
add esp, 8
lea eax, [esp + 0x6c]
push eax
push ebx
call fcn.004d35a0
add esp, 8
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004d35a0
add esp, 8
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x48]
mov edx, dword [eax + esi*8 - 8]
mov eax, dword [eax + esi*8 - 4]
cmp ebx, dword [esp + 0x40]
mov dword [esp], eax
jne 0x417430
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x28], edx
call fcn.00424060
mov edx, dword [esp + 0x28]
add esp, 4
jmp 0x417430
mov eax, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
movsd qword [esp + 0x28], xmm0
test eax, eax
je 0x417577
shl eax, 3
push 8
push eax
push dword [esp + 0xc]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x64]
test eax, eax
je 0x417595
push 1
push eax
push dword [esp + 0x84]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4175ac
push 1
push eax
push dword [esp + 0x78]
call fcn.0040d1e0
add esp, 0xc
push esi
call fcn.00418850
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x4175cc
shl eax, 6
push 8
push eax
push dword [esi + 4]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x4c]
movsd qword [esi], xmm0
mov byte [esi + 0x1c], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 1
jmp 0x4172f0
mov ebx, 1
push edi
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
jne 0x4171b0
jmp 0x4171bf
xor eax, eax
push esi
push eax
call fcn.004d09f0
mov eax, 8
push esi
push eax
call fcn.004d09f0
push 0xc
push 1
call fcn.004d09f0
push edi
push 1
call fcn.004d09f0
push 0x50
push 4
call fcn.004d09f0
push 0x30
push 1
call fcn.004d09f0
xor eax, eax
push edi
push eax
call fcn.004d09f0
mov eax, 1
push edi
push eax
call fcn.004d09f0
push 0x537cd0
push ecx
push edx
call fcn.004e1cd0
push 0x537cc0
push ecx
push esi
call fcn.004e1cd0
nop dword [eax]
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, esi
call fcn.00416f70
mov eax, dword [esi + 8]
pop esi
pop ebp
ret