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

Disassembly:
mov eax, 0x4cd7bb
call 0x555c54
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.004fbdcc
push 0x40
mov dword [ebx + 4], 0x82
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x5051a2
mov ecx, eax
call fcn.004f6233
mov edi, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0xcb
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x5005cc
call 0x56c491
lea ecx, [ebx + 0x1a8]
push esi
call 0x52e4ed
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004fd8e8
xor esi, esi
push eax
inc esi
lea ecx, [edi + 0x30]
mov dword [ebp - 4], esi
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call 0x56c423
and dword [edi + 0x2c], 0
lea ecx, [ebx + 0x14]
push edi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [ebp - 0x14], ecx
call 0x56b166
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x50522f
mov ecx, eax
call fcn.004f6233
mov edi, eax
jmp 0x505231
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0xd3
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500a40
call 0x56c491
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 3
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x56c423
mov ecx, dword [ebp - 0x14]
and dword [edi + 0x2c], 0
push edi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 2
call 0x56b166
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x5052c3
mov ecx, eax
call fcn.004f6233
mov edi, eax
jmp 0x5052c5
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0xd4
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500f70
call 0x56c491
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 5
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x56c423
mov ecx, dword [ebp - 0x14]
and dword [edi + 0x2c], 0
push edi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 3
call 0x56b166
push 0x4c
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 4], 6
je 0x505357
mov ecx, eax
call fcn.004f2f2e
mov edi, eax
jmp 0x505359
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0x384
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500f54
call 0x56c491
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x3c]
mov dword [ebp - 4], 7
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x56c423
and dword [edi + 0x30], 0
lea ecx, [ebx + 0x14]
push edi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x34], 0x64
mov dword [edi + 0x14], 4
mov dword [ebp - 0x14], ecx
call 0x56b166
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 4], 8
je 0x5053f5
mov ecx, eax
call fcn.004f6233
mov edi, eax
jmp 0x5053f7
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0xd5
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500f34
call 0x56c491
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 9
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x56c423
mov ecx, dword [ebp - 0x14]
and dword [edi + 0x2c], 0
push edi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 5
call 0x56b166
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 4], 0xa
je 0x505489
mov ecx, eax
call fcn.004f6233
mov edi, eax
jmp 0x50548b
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0xd6
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500f14
call 0x56c491
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0xb
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x56c423
mov ecx, dword [ebp - 0x14]
and dword [edi + 0x2c], 0
push edi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 6
call 0x56b166
push 0x4c
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 4], 0xc
je 0x50551d
mov ecx, eax
call fcn.004f2f2e
mov edi, eax
jmp 0x50551f
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [edi + 8], 0x385
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x500ef8
call 0x56c491
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x3c]
mov dword [ebp - 4], 0xd
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call 0x56c423
mov ecx, dword [ebp - 0x14]
and dword [edi + 0x30], 0
push edi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x34], 0x64
mov dword [edi + 0x14], 7
call 0x56b166
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret