Function at 0x658b24
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x658b2c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x65902b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419954]
call fcn.00404054
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x658ffe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 0x3a
mov eax, dword [ebp - 4]
call fcn.0041e238
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push ebp
lea edx, [ebp - 0x14]
mov eax, 0x659044
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x14]
lea eax, [esi + 4]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x18]
mov eax, 0x65905c
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x18]
lea eax, [esi + 8]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x1c]
mov eax, 0x659068
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 0xc]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x20]
mov eax, 0x659078
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x24]
mov eax, 0x659090
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x24]
lea eax, [esi + 0x14]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x28]
mov eax, 0x6590a4
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x28]
lea eax, [esi + 0x18]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x2c]
mov eax, 0x6590c0
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x2c]
lea eax, [esi + 0x1c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x30]
mov eax, 0x6590dc
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x30]
lea eax, [esi + 0x20]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x34]
mov eax, 0x6590f4
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x34]
lea eax, [esi + 0x24]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x38]
mov eax, 0x659110
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x38]
lea eax, [esi + 0x28]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x3c]
mov eax, 0x659124
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [esi + 0x2c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x40]
mov eax, 0x65913c
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x40]
lea eax, [esi + 0x30]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x44]
mov eax, 0x659154
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [esi + 0x34]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x48]
mov eax, 0x659164
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x48]
lea eax, [esi + 0x38]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x4c]
mov eax, 0x659174
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x4c]
lea eax, [esi + 0x3c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x50]
mov eax, 0x659184
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x50]
lea eax, [esi + 0x40]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x54]
mov eax, 0x65919c
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x54]
lea eax, [esi + 0x44]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x58]
mov eax, 0x6591b0
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x58]
lea eax, [esi + 0x48]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x5c]
mov eax, 0x6591c0
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x5c]
lea eax, [esi + 0x4c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x60]
mov eax, 0x6591dc
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x60]
lea eax, [esi + 0x50]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x64]
mov eax, 0x6591f0
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x64]
lea eax, [esi + 0x54]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x68]
mov eax, 0x659200
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x68]
lea eax, [esi + 0x58]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x6c]
mov eax, 0x659210
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x6c]
lea eax, [esi + 0x5c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x70]
mov eax, 0x65922c
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x70]
lea eax, [esi + 0x60]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x74]
mov eax, 0x65923c
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x74]
lea eax, [esi + 0x64]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x78]
mov eax, 0x65924c
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x68]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x7c]
mov eax, 0x659258
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x7c]
lea eax, [esi + 0x6c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x80]
mov eax, 0x659268
call fcn.00658a90
pop ecx
mov edx, dword [ebp - 0x80]
lea eax, [esi + 0x70]
call fcn.00404f48
mov eax, dword [esi + 0x7c]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, 0x659284
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov ebx, eax
test ebx, ebx
jl 0x658eab
mov eax, dword [esi + 0x7c]
push eax
push 1
lea ecx, [ebp - 0x84]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041e254
mov eax, dword [ebp - 0x84]
call fcn.004053b4
mov ecx, eax
mov edx, 0x65928c
mov eax, 0x6592ac
call fcn.0065b638
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x658f53
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0xc]
mov edx, 0x6592d4
call fcn.00658228
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.00409b04
mov edx, dword [ebp - 0x88]
lea eax, [esi + 0x84]
call fcn.00404f48
lea ecx, [ebp - 0x94]
lea eax, [ebp - 0xc]
mov edx, 0x6592d4
call fcn.00658228
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
call fcn.00409b04
mov edx, dword [ebp - 0x90]
lea eax, [esi + 0x80]
call fcn.00404f48
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0xc]
call fcn.00409b04
mov edx, dword [ebp - 0x98]
lea eax, [esi + 0x88]
call fcn.00404f48
jmp 0x658f74
lea eax, [esi + 0x80]
call fcn.00404ef4
lea eax, [esi + 0x84]
call fcn.00404ef4
lea eax, [esi + 0x88]
call fcn.00404ef4
mov eax, dword [esi + 0x78]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x658fdd
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea ecx, [ebp - 0xa0]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.00409b04
cmp dword [ebp - 0x9c], 0
je 0x658fd7
lea ecx, [ebp - 0xa4]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0xa4]
mov eax, dword [esi + 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec dword [ebp - 0x10]
jne 0x658f8f
lea eax, [esi + 0x74]
mov edx, dword [ebp - 8]
call fcn.00404f48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x659005
mov eax, dword [ebp - 4]
call fcn.00404084
ret