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

Disassembly:
mov eax, 0x4cd604
call 0x555c54
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.004fc3e1
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x5045d0
mov ecx, eax
call fcn.004ee98d
mov edi, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0x67
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500e70
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
lea ecx, [ebx + 0x14]
push edi
mov dword [edi + 0x2c], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0x4b
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 0x504660
mov ecx, eax
call fcn.004ee98d
mov edi, eax
jmp 0x504662
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0x65
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500e58
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]
push edi
mov dword [edi + 0x2c], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0x4c
call 0x56b166
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x5046f3
mov ecx, eax
call fcn.004ee98d
mov edi, eax
jmp 0x5046f5
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0x64
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x500e40
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
lea ecx, [ebx + 0x14]
push edi
mov dword [edi + 0x2c], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xfffffff6
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], 6
je 0x504789
mov ecx, eax
call fcn.004ee98d
mov edi, eax
jmp 0x50478b
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [edi + 8], 0x66
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5003f0
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 + 0x30]
mov dword [ebp - 4], 7
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call 0x56c423
mov ecx, dword [ebp - 0x14]
push edi
mov dword [edi + 0x2c], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xfffffff7
call 0x56b166
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret