Function at 0x4153d0
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 0x415a64
lea esi, [esp + 0x88]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], edx
push esi
call fcn.004383e0
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 0x415639
mov dword [esp + 0x50], eax
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 4
push 0x50
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x415a9f
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 0x4154b5
lea eax, [esp + 0x18]
push eax
call fcn.00417eb0
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 0x4154ef
cmp edi, eax
mov ebx, edi
jbe 0x415480
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 1
push 0x30
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x415aa8
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 0x4155e7
mov esi, dword [esp + 0x1c]
lea edi, [esp + 8]
mov dword [esp], ecx
mov ecx, edi
mov edx, dword [esi + 0x20]
call fcn.00415ba0
mov edx, dword [esi + 0x24]
mov ecx, edi
call fcn.00415ba0
mov edx, dword [esi + 0x28]
mov ecx, edi
call fcn.00415ba0
mov edx, dword [esi + 0x2c]
mov ecx, edi
call fcn.00415ba0
mov ecx, dword [esp]
cmp ecx, 3
je 0x4155c2
shl ecx, 4
mov edi, 0xfffffff0
add ecx, esi
add esi, 0x30
mov dword [esp], ecx
nop dword [eax]
mov edx, dword [esi + edi + 0x10]
lea ebx, [esp + 8]
mov ecx, ebx
call fcn.00415ba0
mov edx, dword [esi + edi + 0x14]
mov ecx, ebx
call fcn.00415ba0
mov edx, dword [esi + edi + 0x18]
mov ecx, ebx
call fcn.00415ba0
mov edx, dword [esi + edi + 0x1c]
mov ecx, ebx
call fcn.00415ba0
mov ecx, dword [esp]
test edi, edi
je 0x4155c2
lea eax, [esi + edi + 0x20]
add edi, 0x10
cmp eax, ecx
jne 0x415580
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
xor esi, esi
test ecx, ecx
je 0x4155e7
cmp byte [eax + esi], 0
je 0x4155df
inc esi
cmp ecx, esi
jne 0x4155d0
mov esi, ecx
jmp 0x4155e7
cmp esi, ecx
ja 0x415ad1
lea ecx, [esp + 0x28]
push esi
push eax
push ecx
call fcn.004e09d0
add esp, 0xc
test byte [esp + 0x28], 1
je 0x415729
mov ebx, 1
xor edi, edi
mov eax, dword [esp + 8]
test eax, eax
je 0x41561f
push 1
push eax
push dword [esp + 0x14]
call fcn.0040cd20
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x415639
shl eax, 4
push 4
push eax
push dword [esp + 0x24]
call fcn.0040cd20
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 [0x59fb24]
mov dword [esp], ecx
mov esi, edx
movzx eax, byte [eax]
push 1
push 0xc
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x415a8d
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.00415ba0
mov ecx, edi
mov edx, esi
call fcn.00415ba0
mov edx, dword [esp]
mov ecx, edi
call fcn.00415ba0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x4156c7
xor edx, edx
nop
cmp byte [eax + edx], 0
je 0x4156bd
inc edx
cmp ecx, edx
jne 0x4156b0
jmp 0x4156c7
cmp edx, ecx
ja 0x415ac5
mov ecx, edx
lea edx, [esp + 0x28]
push ecx
push eax
push edx
call fcn.004e09d0
add esp, 0xc
test byte [esp + 0x28], 1
je 0x4156f7
mov eax, dword [esp + 0x60]
cmp ax, 0xe
ja 0x415761
mov edi, dword [eax*4 + 0x57c0b8]
mov esi, dword [eax*4 + 0x57c0f4]
jmp 0x41576b
mov edi, dword [esp + 0x30]
test edi, edi
js 0x415a96
mov esi, dword [esp + 0x2c]
je 0x415818
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 1
push edi
call fcn.0040cd10
add esp, 8
test eax, eax
jne 0x415786
jmp 0x415ab9
mov edi, dword [esp + 0x30]
test edi, edi
js 0x415a96
mov esi, dword [esp + 0x2c]
je 0x415a6c
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 1
push edi
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x415ab9
mov ebx, eax
jmp 0x415a71
mov esi, 0x57c012
mov edi, 7
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 1
push edi
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x415ab1
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 0x4157aa
push 1
push eax
push dword [esp + 0x14]
call fcn.0040cd20
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 0x4157e8
lea ecx, [esp + 0x54]
mov edx, ebx
call fcn.00415c30
jmp 0x415835
xor eax, eax
lea esi, [ebx*8]
cmp ebx, 0x1fffffff
ja 0x41586d
cmp esi, 0x7ffffff8
ja 0x41586d
test esi, esi
je 0x415822
push 8
push esi
call fcn.0040cd60
add esp, 8
test eax, eax
je 0x415868
mov ecx, ebx
jmp 0x415829
mov ebx, 1
jmp 0x415788
mov eax, 8
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
inc ebx
xor eax, eax
mov esi, ebx
shl esi, 6
cmp ebx, 0x3ffffff
ja 0x41586d
cmp esi, 0x7ffffff8
ja 0x41586d
test esi, esi
je 0x415874
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 8
push esi
call fcn.0040cd10
add esp, 8
test eax, eax
jne 0x41587b
mov eax, 8
push esi
push eax
call fcn.004cf340
mov eax, 8
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
test ebx, ebx
mov dword [esp + 4], ecx
je 0x4159c9
shl ebx, 3
mov esi, 1
jmp 0x41591e
mov eax, dword [esp + 0x44]
mov ecx, edi
inc edi
inc esi
shl ecx, 6
add ebx, 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], edi
je 0x4159c9
lea eax, [esp + 0x84]
lea edi, [esp + 0x28]
mov dword [esp + 0x28], 0x57c0b0
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.004eb5f0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 1
push edi
lea eax, [esp + 0xc]
push eax
call fcn.004d0480
add esp, 8
lea eax, [esp + 0x6c]
push eax
push edi
call fcn.004d1fc0
add esp, 8
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004d1fc0
add esp, 8
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x48]
mov edx, dword [eax + esi*8 - 8]
mov eax, dword [eax + esi*8 - 4]
cmp edi, dword [esp + 0x40]
mov dword [esp], eax
jne 0x4158b0
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x28], edx
call fcn.00417e00
mov edx, dword [esp + 0x28]
add esp, 4
jmp 0x4158b0
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 0x4159f7
shl eax, 3
push 8
push eax
push dword [esp + 0xc]
call fcn.0040cd20
add esp, 0xc
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x64]
test eax, eax
je 0x415a15
push 1
push eax
push dword [esp + 0x84]
call fcn.0040cd20
add esp, 0xc
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x415a2c
push 1
push eax
push dword [esp + 0x78]
call fcn.0040cd20
add esp, 0xc
push esi
call fcn.00425150
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x415a4c
shl eax, 6
push 8
push eax
push dword [esi + 4]
call fcn.0040cd20
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
push edi
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
jne 0x415610
jmp 0x41561f
push 0xc
push 1
call fcn.004cf340
xor eax, eax
push edi
push eax
call fcn.004cf340
push 0x50
push 4
call fcn.004cf340
push 0x30
push 1
call fcn.004cf340
push edi
push 1
call fcn.004cf340
mov eax, 1
push edi
push eax
call fcn.004cf340
push 0x57c09c
push ecx
push edx
call fcn.004e0750
push 0x57c08c
push ecx
push esi
call fcn.004e0750
nop dword [eax]
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, esi
call fcn.004153d0
mov eax, dword [esi + 8]
pop esi
pop ebp
ret