Function at 0x40e800
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a5308
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d32ac]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x88]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [0x4a7454]
lea edx, [esp + 0x30]
xor ebx, ebx
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [0x4a7448]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x60]
push edx
call dword [0x4a744c]
test eax, eax
je 0x40eb8e
movsx eax, si
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
xor edi, edi
jmp 0x40e890
mov ecx, dword [ebp + 0x40]
cmp ecx, ebx
je 0x40ea9b
mov eax, dword [ebp + 0x44]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40ea9b
cmp ecx, ebx
je 0x40e8bb
mov eax, dword [ebp + 0x44]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40e8c0
call fcn.0047ebfb
mov edx, dword [ebp + 0x40]
mov esi, dword [edx + edi*4]
cmp esi, ebx
je 0x40e8ea
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0x4c]
jne 0x40e8ea
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esi + 0x18]
push eax
call dword [0x4a744c]
test eax, eax
jne 0x40e8ef
add edi, 1
jmp 0x40e890
mov eax, dword [ebp + 0x60]
cmp eax, ebx
mov dword [ebp + 0x90], edi
mov dword [esp + 0x18], 1
je 0x40ea9b
cmp edi, dword [ebp + 0x8c]
je 0x40ea9b
push ebx
mov edi, eax
call fcn.00431440
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
add eax, 0x10
mov dword [esp + 0x88], eax
lea ecx, [esi + 8]
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x84], ebx
push edx
mov ebx, 0x4aa6a8
call fcn.004038a0
lea ecx, [esi + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, eax
mov byte [esp + 0x90], 1
call fcn.00405430
add esp, 0x10
lea edi, [esp + 0x88]
mov byte [esp + 0x80], 2
call fcn.00403b10
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x68]
lea edi, [ebp + 4]
push ecx
push edx
call dword [0x4a7454]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call fcn.004047b0
mov ecx, dword [ebp + 0x84]
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x40ea61
mov edx, dword [esp + 0x88]
push edx
lea ebx, [esp + 0x24]
lea edi, [esp + 0x20]
call fcn.0042ddd0
test eax, eax
je 0x40ea61
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40ea61
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x40ea61
mov esi, dword [esi + 4]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x4c]
push edx
push esi
mov esi, dword [ebp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x9c]
call fcn.00430e10
mov edi, dword [ebp + 0x60]
push 1
call fcn.00431440
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
push 0x7f89
push ebx
mov dword [ebp + 0x5c], 1
call dword [0x4a743c]
push eax
call dword [0x4a7440]
mov ecx, dword [ebp + 4]
xor eax, eax
lea esi, [ebp + 4]
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], ecx
call dword [0x4a7438]
mov eax, dword [ebp + 0x90]
cmp eax, dword [ebp + 0x8c]
jne 0x40eb75
cmp dword [esp + 0x18], ebx
jne 0x40eb83
mov dword [ebp + 0x8c], 0xffffffff
mov ebp, dword [ebp + 0x60]
cmp ebp, ebx
je 0x40eb56
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40eb56
push eax
call dword [0x4a73e4]
test eax, eax
je 0x40eb56
mov eax, dword [ebp + 8]
mov edi, dword [0x4a7484]
push 0x3e9
push eax
mov dword [ebp + 0xc4], ebx
mov dword [ebp + 0xac], ebx
call edi
mov ecx, dword [ebp + 8]
push 0x3ea
push ecx
call edi
mov edx, dword [ebp + 8]
push ebx
push edx
call dword [0x4a73ec]
mov eax, dword [esi]
push ebx
push ebx
push eax
call dword [0x4a7434]
mov ecx, dword [esi]
push ecx
call dword [0x4a7430]
mov edx, dword [esp + 0x8c]
mov dword [edx], ebx
jmp 0x40eb97
cmp dword [esp + 0x18], ebx
je 0x40eb00
mov dword [ebp + 0x8c], eax
jmp 0x40eb56
mov eax, dword [esp + 0x8c]
mov dword [eax], ebx
jmp 0x40eb97
mov ecx, dword [esp + 0x8c]
mov dword [ecx], ebx
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8