Function at 0x478ad4
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x479026
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x18]
xor ecx, ecx
mov edx, 0x14
call fcn.004032a8
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x34], eax
lea eax, [ebx + 0x38]
xor ecx, ecx
mov edx, 0x14
call fcn.004032a8
xor eax, eax
mov dword [ebx + 0x4c], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x58]
xor ecx, ecx
mov edx, 0x14
call fcn.004032a8
xor eax, eax
mov dword [ebx + 0x6c], eax
xor eax, eax
mov dword [ebx + 0x98], eax
lea eax, [ebx + 0x70]
xor ecx, ecx
mov edx, 0x28
call fcn.004032a8
lea eax, [ebx + 0x9c]
call fcn.00404988
lea eax, [ebx + 0xa0]
call fcn.00404988
mov eax, esi
call fcn.00404c40
cmp eax, 0x50
je 0x478bae
mov eax, esi
call fcn.00404c40
cmp eax, 0x64
jne 0x478cf8
mov byte [ebp - 5], 1
lea eax, [ebp - 4]
push eax
mov ecx, 8
mov edx, 1
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
mov ecx, 8
mov edx, 9
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 4], eax
lea eax, [ebp - 4]
push eax
mov ecx, 8
mov edx, 0x11
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
push eax
mov ecx, 8
mov edx, 0x19
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 0xc], eax
lea eax, [ebp - 4]
push eax
mov ecx, 4
mov edx, 0x21
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 0x10], eax
lea eax, [ebp - 4]
push eax
mov ecx, 4
mov edx, 0x25
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 0x14], eax
lea edx, [ebx + 0x18]
lea eax, [esi + 0x28]
mov ecx, 0x14
call fcn.00402a04
lea eax, [ebp - 4]
push eax
mov ecx, 4
mov edx, 0x3d
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 4]
push eax
mov ecx, 8
mov edx, 0x41
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 0x30], eax
lea eax, [ebp - 4]
push eax
mov ecx, 8
mov edx, 0x49
mov eax, esi
call fcn.00404e98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409494
mov dword [ebx + 0x34], eax
jmp 0x478def
mov eax, esi
call fcn.00404c40
cmp eax, 0x58
jne 0x478def
mov byte [ebp - 5], 1
mov eax, esi
call fcn.00404e38
mov edx, ebx
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 4]
lea eax, [esi + 4]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 8]
lea eax, [esi + 8]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0xc]
lea eax, [esi + 0xc]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x10]
lea eax, [esi + 0x10]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x14]
lea eax, [esi + 0x14]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x18]
lea eax, [esi + 0x18]
mov ecx, 0x14
call fcn.00402a04
lea edx, [ebx + 0x2c]
lea eax, [esi + 0x2c]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x30]
lea eax, [esi + 0x30]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x34]
lea eax, [esi + 0x34]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x38]
lea eax, [esi + 0x38]
mov ecx, 0x14
call fcn.00402a04
lea edx, [ebx + 0x4c]
lea eax, [esi + 0x4c]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x50]
lea eax, [esi + 0x50]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x54]
lea eax, [esi + 0x54]
mov ecx, 4
call fcn.00402a04
cmp byte [ebp - 5], 0
jne 0x479010
mov eax, esi
call fcn.00404c40
cmp eax, 0x99
jl 0x479010
mov eax, esi
call fcn.00404e38
mov edx, ebx
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 4]
lea eax, [esi + 4]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 8]
lea eax, [esi + 8]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0xc]
lea eax, [esi + 0xc]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x10]
lea eax, [esi + 0x10]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x14]
lea eax, [esi + 0x14]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x18]
lea eax, [esi + 0x18]
mov ecx, 0x14
call fcn.00402a04
lea edx, [ebx + 0x2c]
lea eax, [esi + 0x2c]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x30]
lea eax, [esi + 0x30]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x34]
lea eax, [esi + 0x34]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x38]
lea eax, [esi + 0x38]
mov ecx, 0x14
call fcn.00402a04
lea edx, [ebx + 0x4c]
lea eax, [esi + 0x4c]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x50]
lea eax, [esi + 0x50]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x54]
lea eax, [esi + 0x54]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x58]
lea eax, [esi + 0x58]
mov ecx, 0x14
call fcn.00402a04
lea edx, [ebx + 0x6c]
lea eax, [esi + 0x6c]
mov ecx, 4
call fcn.00402a04
lea edx, [ebx + 0x70]
lea eax, [esi + 0x70]
mov ecx, 0x28
call fcn.00402a04
lea edx, [ebx + 0x98]
lea eax, [esi + 0x98]
mov ecx, 1
call fcn.00402a04
mov eax, esi
call fcn.00404c40
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x9a
mov edi, 4
mov eax, dword [ebp - 0x10]
add eax, edi
dec eax
cmp eax, dword [ebp - 0x14]
jg 0x479010
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
lea eax, [esi + eax - 1]
mov ecx, edi
call fcn.00402a04
cmp dword [ebp - 0xc], 0
jbe 0x478fad
add dword [ebp - 0x10], edi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edi
dec eax
cmp eax, dword [ebp - 0x14]
jg 0x479010
lea eax, [ebx + 0x9c]
mov edx, edi
call fcn.00404fc4
lea eax, [ebx + 0x9c]
call fcn.00404e90
mov edx, eax
mov eax, dword [ebp - 0x10]
lea eax, [esi + eax - 1]
mov ecx, edi
call fcn.00402a04
add dword [ebp - 0x10], edi
mov edi, 4
mov eax, dword [ebp - 0x10]
add eax, edi
dec eax
cmp eax, dword [ebp - 0x14]
jg 0x479010
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
lea eax, [esi + eax - 1]
mov ecx, edi
call fcn.00402a04
cmp dword [ebp - 0xc], 0
jbe 0x479010
add dword [ebp - 0x10], edi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edi
dec eax
cmp eax, dword [ebp - 0x14]
jg 0x479010
lea eax, [ebx + 0xa0]
mov edx, edi
call fcn.00404fc4
lea eax, [ebx + 0xa0]
call fcn.00404e90
mov edx, eax
mov eax, dword [ebp - 0x10]
lea eax, [esi + eax - 1]
mov ecx, edi
call fcn.00402a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47902d
lea eax, [ebp - 4]
call fcn.00404988
ret