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

Disassembly:
push 0xffffffffffffffff
push 0x4b1f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0x4bcb30
call fcn.004a6030
mov eax, dword [0x586200]
cmp eax, ebp
je 0x4a5c76
lea ecx, [esp + 0xc]
push ecx
push 0x4b2aa0
push 0x4b2a90
call eax
test eax, eax
jl 0x4a5c76
mov eax, dword [esp + 0xc]
push ebp
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, ebp
jl 0x4a5c76
mov al, byte [esp + 0x84]
push ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x34], al
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov cl, byte [esp + 0x88]
mov dword [esp + 0x7c], ebp
mov byte [esp + 0x24], cl
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov esi, dword [ebx + 0xc]
mov byte [esp + 0x7c], 1
cmp esi, ebp
jbe 0x4a5ae9
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x34]
push edx
call fcn.004a60f0
sub esi, eax
lea ecx, [esp + 0x38]
push esi
push ebp
call fcn.004a6120
jmp 0x4a5b0f
lea ecx, [esp + 0x34]
call fcn.004a60f0
cmp esi, eax
jae 0x4a5b0f
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea ecx, [esi + esi*2]
push eax
lea eax, [edx + ecx*8]
lea ecx, [esp + 0x38]
push eax
call fcn.004a6420
mov esi, dword [ebx + 0xc]
lea ecx, [esp + 0x24]
mov dword [esp + 0x84], ebp
call fcn.004a6460
cmp eax, esi
jae 0x4a5b4a
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x28]
call fcn.004a6460
sub esi, eax
lea ecx, [esp + 0x28]
push esi
push edi
call fcn.004a6480
jmp 0x4a5b6d
lea ecx, [esp + 0x24]
call fcn.004a6460
cmp esi, eax
jae 0x4a5b6d
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004a6690
mov eax, dword [ebx + 4]
xor edi, edi
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x88], ecx
je 0x4a5bec
xor esi, esi
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
lea eax, [esi + edx]
lea edx, [esp + 0x1c]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x38]
mov dword [esi + eax + 0x14], edx
mov ecx, dword [esp + 0x38]
mov dword [esi + ecx], 0x18
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x38]
add edx, 0xc
lea ecx, [esi + eax + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
lea ecx, [esp + 0x88]
call fcn.00410f20
mov eax, dword [esp + 0x88]
mov ecx, dword [ebx + 4]
inc edi
add esi, 0x18
cmp eax, ecx
jne 0x4a5b81
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edx
lea edx, [esp + 0x44]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 0x18
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], 0x545d50
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
pop ebx
mov esi, 1
je 0x4a5c35
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [esp + 0x24]
push edx
call fcn.004a6c66
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebp
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.004a6c66
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov ecx, dword [esp + 0x70]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x70
ret