Function at 0x403e10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46eef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov edi, dword [esp + 0x40]
push 0x473bb0
push edi
mov dword [esp + 0x40], 1
call fcn.004481c9
mov ebx, eax
mov eax, dword [esp + 0x4c]
push 0x473e98
push eax
mov dword [esp + 0x2c], ebx
call fcn.004481c9
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
add esp, 0x10
push 0
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
push edx
push eax
call fcn.004485f0
lea esi, [eax*4 + 4]
push esi
mov dword [ebp + 0xc], eax
call fcn.00447215
mov dword [0x494a64], eax
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.00447215
mov dword [0x494a6c], eax
mov edx, dword [ebp + 0x20]
shl edx, 1
push edx
call fcn.00447215
mov edx, dword [0x494a64]
add esp, 0xc
test edx, edx
mov dword [0x494a70], eax
je 0x4042d6
mov ecx, dword [0x494a6c]
test ecx, ecx
je 0x4042d6
test eax, eax
je 0x4042d6
mov edi, edx
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
push edi
push 0x18
push ebx
call fcn.00448124
mov eax, dword [0x494a64]
push ebx
push esi
push 1
push eax
call fcn.00448049
add esp, 0x1c
cmp eax, esi
je 0x403f3d
push edi
push edi
push 0x473f08
call fcn.00463fa9
mov ecx, ebp
call fcn.004037a0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404329
mov ecx, dword [eax]
push eax
jmp 0x404324
mov edx, dword [esp + 0x4c]
push edx
mov ecx, ebp
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
call fcn.004037d0
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
mov esi, eax
add esi, edi
test ebx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
je 0x403f7b
push 0
mov ecx, ebx
call fcn.00401b90
cmp edi, esi
mov dword [esp + 0x4c], edi
jge 0x40418e
mov dword [esp + 0x10], 0
jmp 0x403fa0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
lea ecx, [ecx]
test ebx, ebx
je 0x403ff8
mov eax, dword [esp + 0x10]
sub esi, edi
xor edx, edx
div esi
mov esi, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0x408
mov edi, eax
mov eax, dword [ebx + 0x1c]
push eax
call esi
cmp eax, edi
jge 0x403ff8
push edi
lea ecx, [esp + 0x48]
push 0x473f00
push ecx
call fcn.00402a00
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
add esp, 0xc
push edx
call fcn.0045f49d
mov eax, dword [ebx + 0x1c]
push 0
push edi
push 0x402
push eax
call esi
push 0x38
push 0x473de4
lea eax, [ebp + 0x28]
push 0xfffffffffffffff1
push eax
call fcn.0042e4b0
add esp, 0x10
test eax, eax
jne 0x404228
mov ecx, dword [esp + 0x4c]
mov eax, dword [0x494a64]
mov edx, dword [eax + ecx*4]
movzx ecx, byte [ebp + 0x25]
mov esi, edx
and edx, 0x7fffffff
mov edi, edx
and esi, 0x80000000
shl edi, cl
test esi, esi
mov dword [esp + 0x2c], 0
je 0x404048
mov ebx, dword [ebp + 0x20]
jmp 0x40405b
mov ebx, dword [esp + 0x4c]
mov eax, dword [eax + ebx*4 + 4]
and eax, 0x7fffffff
sub eax, edx
shl eax, cl
mov ebx, eax
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call fcn.00448124
mov edx, dword [0x494a70]
push edi
push ebx
push 1
push edx
call fcn.00448049
add esp, 0x1c
xor ecx, ecx
cmp eax, ebx
mov dword [ebp + 0x2c], eax
jne 0x403f0f
xor eax, eax
cmp ecx, eax
jne 0x403f0f
test esi, esi
je 0x4040b4
mov esi, dword [0x494a70]
mov edi, dword [0x494a6c]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4040f4
mov ecx, dword [0x494a6c]
mov edx, dword [ebp + 0x20]
lea eax, [ebp + 0x28]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x38], edx
mov ecx, dword [0x494a70]
push 3
push eax
mov dword [eax], ecx
call fcn.0042e6c0
add esp, 8
cmp eax, 1
jne 0x4042bb
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x38]
mov ebx, eax
sub ebx, edx
cmp ebx, eax
jne 0x4042bb
mov eax, ebx
cdq
mov edi, eax
mov eax, dword [esp + 0x24]
mov esi, edx
cmp eax, esi
ja 0x404128
jb 0x40410b
cmp dword [esp + 0x20], edi
jae 0x404128
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x494a6c]
push edx
push eax
push 1
push ecx
call fcn.0044853d
add esp, 0x10
jmp 0x40415a
mov edx, dword [esp + 0x14]
mov eax, dword [0x494a6c]
push edx
push ebx
push 1
push eax
call fcn.0044853d
add esp, 0x10
cmp eax, ebx
jne 0x4042bb
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, edi
sbb eax, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea eax, [ebp + 0x28]
push eax
call fcn.0042fcf0
add esp, 4
test eax, eax
jne 0x4042bb
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
add edx, 0x64
cmp eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], edx
jl 0x403f91
mov eax, dword [esp + 0x1c]
push eax
call fcn.00447f0f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00447f0f
mov edx, dword [0x494a64]
push edx
call fcn.00447227
mov eax, dword [0x494a6c]
push eax
call fcn.00447227
mov ecx, dword [0x494a70]
push ecx
call fcn.00447227
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404211
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x18
call fcn.00460104
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x48], eax
mov ebp, dword [ebp + 0x40]
test ebp, ebp
mov byte [esp + 0x38], 2
jne 0x40424c
mov ebp, 0x473de0
push ebp
lea eax, [esp + 0x4c]
push 0x473ecc
push eax
call fcn.00402a00
mov esi, dword [esp + 0x54]
add esp, 0xc
push 0
push 0
push esi
call fcn.00463fa9
mov ecx, dword [0x494a64]
push ecx
call fcn.00447227
mov edx, dword [0x494a6c]
push edx
call fcn.00447227
mov eax, dword [0x494a70]
push eax
call fcn.00447227
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x403f16
mov ecx, ebp
call fcn.004037a0
lea ecx, [esp + 0x40]
call fcn.00401620
lea ecx, [esp + 0x44]
call fcn.00401620
jmp 0x40434f
push 0
push 0
push 0x473e9c
call fcn.00463fa9
mov eax, dword [0x494a64]
push eax
call fcn.00447227
mov ecx, dword [0x494a6c]
push ecx
call fcn.00447227
mov edx, dword [0x494a70]
push edx
call fcn.00447227
add edi, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x38], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404329
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40434f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x18