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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a43e4
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
push edi
mov edi, dword [esp + 0x5c]
test edi, edi
mov esi, ecx
jne 0x506019
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10
mov eax, dword [edi + 4]
push ebx
push eax
call fcn.0043f0d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x506040
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10
mov eax, dword [esp + 0x64]
push ebp
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], ebp
je 0x506069
push ebx
call fcn.00404810
add esp, 4
test eax, eax
je 0x506069
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, 0xa0
mov ecx, 0xf0
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call fcn.00404810
add esp, 4
test eax, eax
mov ecx, esi
je 0x506092
push ebp
call fcn.00503df0
jmp 0x506098
push edi
call fcn.005019b0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ebp, eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x20], edx
call fcn.005019d0
push ebp
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00501ad0
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, 0x20
mov dword [esp + 0x34], edx
lea eax, [ecx + 0x10]
add ebp, 0x40
mov edx, 0x18
mov dword [esp + 0x38], edx
lea edx, [eax + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edx
lea eax, [ebp + 0x16]
mov edx, 0x50
mov dword [esp + 0x28], ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x48]
add eax, 0xc
push 0x50
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
call fcn.00591ce0
add esp, 4
mov dword [esp + 0x64], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x54], ecx
je 0x506164
mov ecx, eax
call fcn.00404d30
mov dword [esp + 0x64], eax
jmp 0x506168
mov dword [esp + 0x64], ecx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push 0
mov dword [esp + 0x60], 0xffffffff
call fcn.00404fc0
mov ecx, dword [esp + 0x64]
push 5
call fcn.00579170
mov ecx, dword [esp + 0x64]
push 2
call fcn.005791a0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x10]
inc ecx
push 0x400
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x4c]
push 7
push ecx
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff3
push ecx
push eax
mov ecx, esi
call fcn.00573f60
lea ecx, [esp + 0x68]
call fcn.0056bc10
mov edx, dword [edi]
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov dword [esp + 0x58], 1
call dword [edx + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], ecx
add ecx, 0x40
add eax, 0x18
push 0x54
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
call fcn.00591ce0
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov byte [esp + 0x54], 2
je 0x50621b
mov ecx, eax
call fcn.0041a320
mov dword [esp + 0x64], eax
jmp 0x506223
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x68]
push 0
push 1
push 7
push 0x18
push 0x50
push ecx
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0x6c], 1
call fcn.0041a5c0
mov ecx, dword [esp + 0x64]
push 0
call fcn.00577870
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x10]
mov ecx, dword [esp + 0x5c]
push 0x400
inc edx
push 8
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x68]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00573f60
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
lea ecx, [esp + 0x64]
call fcn.0056bc10
lea edx, [esp + 0x64]
push edx
push 0xf
mov ecx, ebx
mov dword [esp + 0x5c], 3
call fcn.00434200
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.00501b70
mov ecx, edi
call fcn.0050b790
push 2
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00540180
add esp, 4
push eax
mov ecx, esi
call fcn.00501c20
push 0x80
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00501cd0
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, 0x18
add ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
add ebp, eax
add edx, eax
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], edx
call fcn.00404810
add esp, 4
test eax, eax
je 0x5063b8
mov edx, dword [esp + 0x10]
cmp edx, dword [esi + 0x1360]
jne 0x5063b8
lea ecx, [esp + 0x68]
call fcn.0056bc10
lea eax, [esp + 0x68]
push eax
push 0x1f
mov ecx, ebx
mov dword [esp + 0x5c], 4
call fcn.00434200
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, esi
call fcn.00501b70
lea ecx, [esp + 0x64]
call fcn.0056bc10
mov edx, dword [ebx]
push 0x1f
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
mov byte [esp + 0x5c], 5
call dword [edx + 0x24]
mov eax, dword [esp + 0x64]
push 2
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.00501c20
lea ecx, [esp + 0x64]
mov byte [esp + 0x54], 4
call fcn.0056bd20
lea ecx, [esp + 0x68]
jmp 0x506429
lea ecx, [esp + 0x64]
call fcn.0056bc10
lea ecx, [esp + 0x64]
push ecx
push 0x21
mov ecx, ebx
mov dword [esp + 0x5c], 6
call fcn.00434200
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00501b70
lea edx, [edi + 0x38]
push edx
lea ecx, [esp + 0x6c]
call fcn.0056bdb0
mov edx, dword [esp + 0x68]
push 2
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x64], 7
call fcn.00501c20
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 6
call fcn.0056bd20
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
push 0x80
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00501cd0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, 0x18
add ecx, eax
add ebp, eax
add edx, eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edx
call fcn.0056bc10
lea ecx, [esp + 0x64]
push ecx
push 0x1a
mov ecx, ebx
mov dword [esp + 0x5c], 8
call fcn.00434200
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00501b70
lea edx, [edi + 0x7c]
push edx
lea ecx, [esp + 0x6c]
call fcn.0056bdb0
mov edx, dword [esp + 0x68]
push 2
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x64], 9
call fcn.00501c20
push 0x80
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00501cd0
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 8
call fcn.0056bd20
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, 0x18
add ecx, eax
add ebp, eax
add edx, eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edx
call fcn.0056bc10
lea ecx, [esp + 0x68]
push ecx
push 0xc
mov ecx, ebx
mov dword [esp + 0x5c], 0xa
call fcn.00434200
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, dword [esp + 0x70]
push ecx
mov ecx, esi
call fcn.00501b70
lea ecx, [esp + 0x64]
call fcn.0056bc10
mov eax, dword [edi + 0x10]
push eax
lea edx, [esp + 0x68]
push 0x5b84d4
push edx
mov byte [esp + 0x60], 0xb
call fcn.0056c790
mov edx, dword [esp + 0x70]
add esp, 0xc
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00501c20
push 0x80
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00501cd0
lea ecx, [esp + 0x64]
mov byte [esp + 0x54], 0xa
call fcn.0056bd20
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, 0x18
add ecx, eax
add ebp, eax
add edx, eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edx
call fcn.0056bc10
lea ecx, [esp + 0x68]
push ecx
push 0x12
mov ecx, ebx
mov dword [esp + 0x5c], 0xc
call fcn.00434200
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00501b70
lea ecx, [esp + 0x64]
call fcn.0056bc10
mov eax, dword [edi + 0x10]
test eax, eax
mov byte [esp + 0x54], 0xd
jle 0x50663a
mov eax, dword [edi + 0x14]
mov edx, dword [str._3d__3d]
push 0x64
push eax
push edx
lea eax, [esp + 0x70]
push eax
call fcn.0056c790
add esp, 0x10
jmp 0x506651
push 0x12
mov ecx, ebx
call fcn.00434090
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.00433d60
add esp, 8
mov ecx, dword [esp + 0x64]
push 1
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00501c20
push 0x80
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00501cd0
lea ecx, [esp + 0x64]
mov byte [esp + 0x54], 0xc
call fcn.0056bd20
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, 0x18
add ecx, eax
add ebp, eax
add edx, eax
mov eax, dword [edi + 0x50]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x68], eax
call fcn.0056bc10
mov eax, dword [esp + 0x68]
cmp eax, 0x14
mov dword [esp + 0x54], 0xe
jl 0x5066e7
cmp eax, 0x1a
jg 0x5066e7
lea ecx, [esp + 0x64]
push ecx
push 0x29
jmp 0x5066ee
lea edx, [esp + 0x64]
push edx
push 0x2a
mov ecx, ebx
call fcn.00434200
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.00501b70
mov eax, dword [esp + 0x68]
push eax
call fcn.0043f570
add esp, 4
push eax
mov ecx, ebx
call fcn.0044a280
push eax
lea ecx, [esp + 0x18]
call fcn.0056bdb0
mov eax, dword [esp + 0x14]
push 2
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x64], 0xf
call fcn.00501c20
push 0x80
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00501cd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0xe
call fcn.0056bd20
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, 0x18
add ecx, eax
add ebp, eax
add edx, eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edx
call fcn.0056bc10
lea edx, [esp + 0x10]
push edx
push 0x1d
mov ecx, ebx
mov dword [esp + 0x5c], 0x10
call fcn.00434200
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.00501b70
lea ecx, [esp + 0x5c]
call fcn.0056bc10
mov edi, dword [edi + 0x34]
push edi
lea eax, [esp + 0x60]
push 0x5b84d4
push eax
mov byte [esp + 0x60], 0x11
call fcn.0056c790
add esp, 0xc
push 1
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.00501c20
push 0x80
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00501cd0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0x10
call fcn.0056bd20
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x4c]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10