Function at 0x594ff0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5953ee
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [esi + 4], 0
je 0x595035
lea eax, [esi + 4]
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00405670
mov dl, 1
mov eax, dword [0x47d368]
call fcn.0047da84
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x5950c4
inc eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0xd]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov dl, 1
mov eax, dword [0x59337c]
call fcn.00593828
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5950a3
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0xd], 0
je 0x59508e
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0059385c
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 4]
call fcn.00445bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5950bf
dec dword [ebp - 0x14]
jne 0x595050
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [ebp - 4]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0xc]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0xc]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x10]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x10]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x14]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x14]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x18]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x18]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x1c]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x1c]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x20]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x28]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x30]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x38]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x40]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x40]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x44]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x44]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x48]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x4c]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x4c]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x50]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x54]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x58]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x58]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x5c]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x60]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x64]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x68]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x6c]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x70]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x74]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x78]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x80]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x8c]
mov edx, dword [ebp - 8]
call fcn.00407fac
lea eax, [esi + 0x8c]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5953f5
lea eax, [ebp - 4]
call fcn.00407148
ret