Function at 0x4785d0
Capabilities:
Check os version
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x606470
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
mov edx, dword [eax + 0x1f8]
mov dword [esp + 0x30], eax
add eax, 0x1f8
mov eax, dword [edx + 0x50]
mov dword [esp + 0x2c], ecx
lea ecx, [eax + 0x8c]
add eax, 0x9c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + eax*4 + 0x34]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
mov ebp, dword [0x6105e8]
mov dword [esp + 0x1c], esi
jbe 0x478660
call ebp
nop
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x478670
call ebp
mov ebp, dword [0x6105e8]
test esi, esi
je 0x478678
cmp esi, esi
je 0x478680
call ebp
mov ebp, dword [0x6105e8]
cmp ebx, edi
je 0x478a7c
test esi, esi
mov edi, 0x78
jne 0x478699
call ebp
mov ebp, dword [0x6105e8]
cmp ebx, dword [esi + 8]
jb 0x4786a6
call ebp
mov ebp, dword [0x6105e8]
mov ecx, dword [ebx]
cmp byte [ecx + 0x11d], 0
je 0x4786b6
mov edi, 0x79
push edi
mov edi, dword [esp + 0x34]
lea eax, [edi + 0x20]
call fcn.005aa990
test eax, eax
mov dword [esp + 0x28], eax
je 0x478a6d
cmp ebx, dword [esi + 8]
jb 0x4786d6
call ebp
mov edx, dword [ebx]
cmp byte [edx + 0x115], 0
je 0x478736
push 0x548
mov dword [esp + 0x1c], 6
call fcn.005e694e
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
xor eax, eax
cmp ebp, eax
mov dword [esp + 0xbc], eax
je 0x4787be
cmp ebx, dword [esi + 8]
jb 0x478723
call dword [0x6105e8]
cmp ebx, dword [esi + 8]
jb 0x478723
call dword [0x6105e8]
mov eax, dword [ebx]
lea edi, [eax + 4]
mov eax, dword [eax]
push eax
push ebp
call fcn.00465ff0
jmp 0x4787be
cmp ebx, dword [esi + 8]
jb 0x47873d
call ebp
mov ecx, dword [ebx]
mov edx, dword [ecx]
push edx
lea eax, [edi + 0x1f8]
call fcn.0040c900
mov ebp, eax
test ebp, ebp
je 0x478a67
movzx ecx, word [ebp + 0x22]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0x548
mov dword [esp + 0x1c], eax
call fcn.005e694e
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov dword [esp + 0xbc], 1
je 0x4787bc
cmp ebx, dword [esi + 8]
jb 0x47879d
call dword [0x6105e8]
mov eax, dword [ebx]
sub esp, 0x1c
add eax, 4
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call dword [0x610494]
push ebp
mov ecx, edi
call fcn.00465e00
jmp 0x4787be
xor eax, eax
mov ebp, eax
test ebp, ebp
mov dword [esp + 0xbc], 0xffffffff
je 0x478a90
cmp ebx, dword [esi + 8]
jb 0x4787e9
call dword [0x6105e8]
cmp ebx, dword [esi + 8]
jb 0x4787e9
call dword [0x6105e8]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea esi, [eax + 0x20]
push ecx
call fcn.00497db0
mov edi, dword [0x6105e8]
add esp, 4
test al, al
je 0x478817
mov eax, dword [esp + 0x1c]
cmp ebx, dword [eax + 8]
jb 0x47880e
call edi
mov edx, dword [ebx]
mov byte [edx + 0x11c], 1
mov esi, dword [esp + 0x1c]
cmp ebx, dword [esi + 8]
jb 0x478822
call edi
mov eax, dword [ebx]
cmp byte [eax + 0x11d], 0
je 0x478858
cmp dword [esp + 0x18], 5
jne 0x478858
cmp ebx, dword [esi + 8]
jb 0x47883b
call edi
mov ecx, dword [ebx]
cmp dword [ecx + 0x34], 0
jne 0x478858
cmp ebx, dword [esi + 8]
jb 0x47884a
call edi
mov edx, dword [ebx]
mov dword [edx + 0x13c], 0x64
jmp 0x47886b
cmp ebx, dword [esi + 8]
jb 0x47885f
call edi
mov eax, dword [ebx]
mov dword [eax + 0x13c], 0xc8
cmp ebx, dword [esi + 8]
jb 0x478872
call edi
mov ecx, dword [ebx]
cmp dword [ecx + 0xc0], 0
je 0x478998
lea ecx, [esp + 0x78]
call dword [0x61049c]
push 0
lea edi, [esp + 0x60]
mov dword [esp + 0xc0], 2
call fcn.00405ca0
add esp, 4
lea ecx, [esp + 0x78]
mov edx, edi
mov byte [esp + 0xbc], 3
call fcn.004d6d40
cmp ebx, dword [esi + 8]
jb 0x4788c2
call dword [0x6105e8]
mov edx, dword [ebx]
add edx, 0xac
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [0x6105a4]
add esp, 0xc
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 4
call dword [0x61059c]
lea ecx, [esp + 0x40]
mov byte [esp + 0xbc], 3
call dword [0x6105a0]
cmp dword [esp + 0x74], 8
mov edi, dword [esp + 0x60]
jae 0x478912
lea edi, [esp + 0x60]
call fcn.004044c0
mov eax, dword [eax + 0x4c]
push 0x10
push 0x20
push 0x20
push 1
push edi
push eax
call dword [0x610830]
test eax, eax
je 0x47897d
push eax
call dword [0x61082c]
mov edx, dword [ebp + 0x420]
and edx, 0xfffffffc
lea eax, [esp + 0x5c]
or edx, 4
push eax
lea ecx, [ebp + 0x424]
mov dword [ebp + 0x420], edx
call dword [0x61059c]
mov eax, dword [ebp + 0x3ac]
test eax, eax
mov byte [ebp + 0x3a8], 1
je 0x478970
mov byte [eax + 0xb8], 1
mov edx, dword [ebp]
mov eax, dword [edx + 0x114]
mov ecx, ebp
call eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 2
call dword [0x6105a0]
lea ecx, [esp + 0x78]
jmp 0x478a2e
cmp ebx, dword [esi + 8]
jb 0x47899f
call edi
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
lea edi, [esp + 0x98]
mov dword [esp + 0x1c], eax
call fcn.00405ca0
add esp, 4
mov edx, edi
push edx
mov dword [esp + 0xc0], 5
call fcn.004d7a10
add esp, 4
test al, al
je 0x478a19
mov eax, dword [ebp + 0x420]
and eax, 0xfffffffa
mov ecx, edi
or eax, 2
push ecx
lea ecx, [ebp + 0x424]
mov dword [ebp + 0x420], eax
call dword [0x61059c]
mov eax, dword [ebp + 0x3ac]
test eax, eax
mov byte [ebp + 0x3a8], 1
je 0x478a0a
mov byte [eax + 0xb8], 1
mov edx, dword [ebp]
mov eax, dword [edx + 0x114]
mov ecx, ebp
call eax
jmp 0x478a27
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
call fcn.00447e10
lea ecx, [esp + 0x94]
mov dword [esp + 0xbc], 0xffffffff
call dword [0x6105a0]
mov eax, dword [esp + 0x1c]
cmp ebx, dword [eax + 8]
jb 0x478a4e
call dword [0x6105e8]
mov eax, dword [esp + 0x28]
mov edx, dword [ebx]
push 1
push ebp
push eax
mov dword [edx + 0x138], ebp
call fcn.0046d6c0
mov esi, dword [esp + 0x1c]
mov ebp, dword [0x6105e8]
cmp ebx, dword [esi + 8]
jb 0x478a74
call ebp
add ebx, 4
jmp 0x478660
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 2
mov dword [esp + 0x20], eax
jb 0x478643
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.005e693f
add esp, 0xac
ret 4