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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527e76
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x56f28c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x60]
add ecx, 0x54
call fcn.004a1f10
mov ecx, eax
call fcn.004a3660
mov dword [ebp - 0x20], 0
jmp 0x4a17dc
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x7c
call fcn.004a1de0
cmp dword [ebp - 0x20], eax
jae 0x4a1a37
lea ecx, [ebp - 0x28]
call fcn.004a0c30
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x60]
add ecx, 0x64
push ecx
push 0x53e6e4
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x57357c
call fcn.00499280
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
call fcn.0046ade0
push eax
call fcn.004a27d0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004bfa60
cmp dword [ebp - 0x24], 0
jl 0x4a1a23
lea ecx, [ebp - 0x28]
call fcn.0046ade0
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x54
call fcn.004a1f10
mov ecx, eax
call fcn.004a35c0
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x7c
call fcn.004a1e00
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.004a1f10
mov ecx, eax
call fcn.004a3570
lea ecx, [ebp - 0x2c]
push ecx
push 0x533314
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x28]
call fcn.0046ade0
push eax
call fcn.004a0250
lea ecx, [ebp - 0x44]
call fcn.00439b90
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x30
call fcn.00418010
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x1b
add ecx, 6
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
add edx, 0x1b
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
mov dword [ebp - 0x3c], ecx
push 1
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x28]
call fcn.004a1f10
mov ecx, eax
call fcn.0049c800
push 0
push 0x924
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp - 0x28]
push eax
call fcn.00498e80
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0049c430
add esp, 0x10
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004dab10
movzx edx, al
test edx, edx
je 0x4a196f
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x7c
call fcn.004a1e00
add eax, 8
mov ecx, eax
call fcn.0046ade0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00499e40
mov dword [ebp - 0x74], eax
call fcn.004d9930
add esp, 0xc
push 0
push 0x925
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea eax, [ebp - 0x28]
push eax
call fcn.00498e80
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004a7b10
add esp, 0x10
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.004dab10
movzx edx, al
test edx, edx
je 0x4a1a0b
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x7c
call fcn.004a1e00
add eax, 4
mov ecx, eax
call fcn.0046ade0
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x5c
push ecx
mov edx, esp
mov dword [ebp - 0x5c], esp
push ecx
mov ecx, edx
call fcn.00499e40
mov dword [ebp - 0x80], eax
call fcn.004d8de0
add esp, 8
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4a1a0b
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004a1f10
mov ecx, eax
call fcn.004a3820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004bfa60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004bfa60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004bfa60
jmp 0x4a17d3
lea ecx, [ebp - 0x1c]
call fcn.00439b90
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x30
call fcn.00418010
mov ecx, dword [ebp - 0x60]
add ecx, 0x7c
call fcn.004a1de0
imul eax, eax, 0x1b
add eax, 0xc
mov dword [ebp - 0x10], eax
push 6
lea ecx, [ebp - 0x1c]
call fcn.00417e40
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417e20
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x60]
add ecx, 0x30
call fcn.00429aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret