Function at 0x485ac0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ef9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x90]
mov esi, dword [esp + 0x70]
add eax, 0x90
xor ebx, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x3c]
lea edi, [esp + 0x20]
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push ebx
push 0x17
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push 0x51359c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x485eb7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x485b5a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esi + 0x64]
call fcn.004c5db0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x485eb7
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x485eb7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esi, 0xa8
push esi
push eax
call edx
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
jle 0x485ea7
mov edi, edi
call fcn.004bb047
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x485ecf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], ebx
call fcn.004bb047
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x485ecf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x74], eax
mov byte [esp + 0x68], 1
call fcn.004bb047
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x485ecf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x48], ebp
mov byte [esp + 0x68], 2
call fcn.004bb047
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x485ecf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x44], edi
mov byte [esp + 0x68], 3
call fcn.004bb047
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x485ecf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x40], esi
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x485ed9
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x74]
add ecx, 0x80
call fcn.004c5db0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
add ecx, 0x9c
push ecx
push eax
call edx
cmp eax, ebx
jl 0x485ed9
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x5135ac
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x485ed9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jl 0x485f91
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push eax
call edx
xor ecx, ecx
cmp eax, ebx
mov eax, dword [esp + 0x14]
sete cl
cmp eax, ebx
mov esi, ecx
je 0x485d55
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x4c], 1
jne 0x485e5d
cmp esi, ebx
jne 0x485e5d
fldz
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x30]
fstp dword [esp + 0x50]
call fcn.00485fd0
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x2c], eax
je 0x485dc5
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
push 0x5135bc
push ecx
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x68], 6
fldz
lea ecx, [esp + 0x58]
fstp dword [esp + 0x58]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push eax
call edx
push 8
call fcn.004bb012
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x485e11
call fcn.004bb047
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x485ecf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x485e13
xor esi, esi
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, esi
call fcn.00401dc0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
push esi
add ecx, 0x20
mov dword [esi + 4], edx
call fcn.004c5d86
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x485e48
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x485e5d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x40]
call fcn.00401fb0
lea ecx, [esp + 0x44]
call fcn.00401fb0
lea ecx, [esp + 0x48]
call fcn.00401fb0
lea ecx, [esp + 0x74]
call fcn.00401fb0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.00401fb0
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
jl 0x485bc0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x485eb7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8
push 0x80004005
call fcn.00401730
lea eax, [esi - 0x10]
mov byte [esp + 0x68], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x68], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485f1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x68], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485f60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485eb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x485eb7
lea ecx, [esp + 0x40]
call fcn.00401fb0
lea ecx, [esp + 0x44]
call fcn.00401fb0
lea ecx, [esp + 0x48]
call fcn.00401fb0
lea ecx, [esp + 0x74]
call fcn.00401fb0
lea ecx, [esp + 0x1c]
call fcn.00401fb0
jmp 0x485eb7