Function at 0x4905b0
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0x490570
push 0x18
push dword [esi + 0x34]
push dword [esi + 0x30]
call fcn.00528d90
xor edx, edx
xor ebx, ebx
add esp, 0x10
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x34], edx
jbe 0x49063c
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
add eax, 0x10
lea ecx, [ecx]
add edx, dword [eax]
adc ebx, dword [eax + 4]
lea eax, [eax + 0x18]
sub ecx, 1
jne 0x490610
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], edx
test ebx, ebx
jne 0x49062f
cmp edx, 0x10000000
jbe 0x49063c
push 0x6c
mov byte [ebp - 0x11], 1
call fcn.004193f0
jmp 0x490640
mov byte [ebp - 0x11], 0
push 0x100000
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x3c], 0
call fcn.004051c0
mov dword [ebp - 4], 0
xor eax, eax
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
cmp dword [esi + 0x34], eax
jbe 0x4907ef
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 0x30]
mov edi, dword [esi]
add ebx, ecx
push 0
mov esi, dword [edi]
push dword [ebx + 4]
push dword [ebx]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x18]
push 0
push dword [ebx + 0xc]
mov edi, dword [edi + 4]
push dword [ebx + 8]
mov esi, dword [edi]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], esi
test esi, esi
jl 0x4907d0
mov ebx, eax
jg 0x4906ee
test ebx, ebx
je 0x4907d0
mov edi, dword [ebp - 0x18]
call fcn.0049e910
test esi, esi
jg 0x490707
jl 0x490703
mov eax, dword [ebp - 0x48]
cmp ebx, eax
jae 0x49070a
mov ecx, ebx
jmp 0x49070c
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edi, dword [edi]
push ecx
push dword [ebp - 0x4c]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
je 0x4907d0
mov edi, dword [ebp - 0x18]
push esi
push dword [ebp - 0x4c]
mov ecx, dword [edi + 4]
call fcn.004743f0
mov eax, esi
mov esi, dword [ebp - 0x2c]
cdq
sub ebx, eax
sbb esi, edx
add dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
adc dword [ebp - 0x24], edx
cmp byte [ebp - 0x11], 0
je 0x4907be
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
cmp eax, 0x7fffffff
jne 0x490777
cmp ecx, eax
jne 0x490777
mov dword [0x5b7828], 0xffffffff
jmp 0x4907be
push ecx
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0049d200
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2214]
cmp byte [eax + 0x6148], 0
jne 0x4907b5
cmp esi, dword [0x5b7828]
je 0x4907b5
push 0
push 0x64
mov eax, esi
cdq
push edx
push eax
push 0x5508b4
call fcn.004a0b80
mov dword [0x5b7828], esi
mov esi, dword [ebp - 0x2c]
test esi, esi
jg 0x4906f1
jl 0x4907d0
test ebx, ebx
jne 0x4906f1
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x18]
inc eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
cmp eax, dword [esi + 0x34]
jb 0x490690
mov ebx, dword [ebp - 0x4c]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x490806
push eax
call fcn.00524aa2
add esp, 4
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x490837
cmp byte [ebp - 0x3c], 0
je 0x49082e
push dword [ebp - 0x44]
push ebx
call fcn.0049b220
push ebx
call fcn.00524aa2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507712
mov esp, ebp
pop ebp
ret