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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb1eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0xc]
sub ecx, 1
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
sub ecx, 2
mov edx, dword [ebp + 0x1c]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x228]
push ecx
push 1
push 0
lea ecx, [ebp - 0x14]
call fcn.004eb050
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004ea7f4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004eab70
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
add edx, 1
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004eabbc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004eab70
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004eabbc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004eab70
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004eabbc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004eab70
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004eabbc
lea ecx, [ebp - 0x2c]
call fcn.004025e0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
push 0xe0e0e0
lea ecx, [ebp - 0x2c]
call fcn.00406080
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004ed322
push 0
push 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.004eb050
mov byte [ebp - 4], 1
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004ea7f4
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, 1
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004eab70
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
add eax, 1
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 8]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004eabbc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, 1
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004eab70
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
add edx, 1
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004eabbc
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004ea7f4
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x44
mov edx, dword [ebp + 0x20]
cmp dword [edx + ecx + 0x30], 0
jle 0x4c05d0
lea ecx, [ebp - 0x40]
call fcn.004025e0
lea ecx, [ebp - 0x54]
call fcn.004025e0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x40]
add eax, 2
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x40]
call fcn.00406000
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x44
mov edx, dword [ebp + 0x20]
imul eax, dword [edx + ecx + 0x30]
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x234]
push edx
lea ecx, [ebp - 0x40]
call fcn.00406080
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004ed322
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x44
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + eax + 0x38], 0
je 0x4c05d0
lea ecx, [ebp - 0x58]
call fcn.00401900
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00401900
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x44
mov eax, dword [ebp + 0x20]
lea ecx, [eax + edx + 0x34]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004e8265
lea ecx, [ebp - 0x6c]
call fcn.00405f60
test eax, eax
je 0x4c0498
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x44
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + edx + 0x30]
push ecx
push str._d__
lea edx, [ebp - 0x58]
push edx
call fcn.004e1baf
add esp, 0xc
jmp 0x4c04bb
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x44
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx + eax + 0x30]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00401920
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004e1baf
add esp, 0xc
push 1
mov ecx, dword [ebp + 0x10]
call fcn.004ea869
lea ecx, [ebp - 0x68]
call fcn.004025e0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x64], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x60], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x5c], eax
push 1
push 1
lea ecx, [ebp - 0x68]
call fcn.004060b0
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x74]
call fcn.004bf8d0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x74]
call fcn.004c4730
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004eab30
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x30]
push 0x25
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004bfa20
lea ecx, [ebp - 0x74]
call fcn.004eb03a
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x74]
call fcn.004c4730
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004eab30
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [edx + 0x30]
push 0x25
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004bfa20
lea ecx, [ebp - 0x74]
call fcn.004eb03a
push 0
mov ecx, dword [ebp + 0x10]
call fcn.004eab30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.004bf920
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.004e812c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004e812c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00406130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c