Function at 0x406340
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4354f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x444d08]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x38], ebp
call fcn.0040d2e3
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406387
push 0x80004005
call fcn.00405150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x38], 1
mov ecx, dword [0x44a648]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Customer
call fcn.00407f20
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x43c6d4
mov byte [esp + 0x48], 2
call fcn.00407f20
mov byte [esp + 0x44], 1
call fcn.00406060
add esp, 0xc
mov dword [0x44a648], eax
jmp 0x4063e4
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
mov edi, dword [esi - 0x10]
lea eax, [esi - 0x10]
je 0x406437
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406411
cmp dword [esi - 8], 0
jl 0x406536
xor edx, edx
mov dword [esi - 0xc], 0
mov word [esi], dx
jmp 0x406437
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406427
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
lea ecx, [esp + 0x18]
push str.ReturnCode_d
push ecx
call fcn.00408060
mov edx, dword [ebp*8 + 0x44a32c]
mov esi, dword [esp + 0x20]
add esp, 0xc
push edx
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x406484
cmp eax, dword [esi]
jne 0x406484
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4064bf
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x406540
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0041a5dd
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.ErrorList
mov byte [esp + 0x48], 3
call fcn.00407f20
mov byte [esp + 0x44], 1
call fcn.00406060
mov dword [ebp*8 + 0x44a32c], eax
inc ebp
add esp, 0xc
cmp ebp, 0x64
jl 0x4063e0
mov ebx, 0x44a330
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x40656b
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x406545
cmp dword [ecx - 8], 0
jl 0x406536
xor edx, edx
mov dword [ecx - 0xc], 0
mov word [ecx], dx
jmp 0x40656b
push 0x80070057
call fcn.00405150
call fcn.0040b790
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40655b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push str.Message_d
push edx
call fcn.00408060
mov esi, dword [ebx]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
add esp, 8
mov dword [esp + 0x28], esp
mov ebp, esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4065b1
cmp eax, dword [esi]
jne 0x4065b1
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4065ec
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x406540
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0041a5dd
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x3c], 4
mov esi, dword [esp + 0x18]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x406629
cmp eax, dword [esi]
jne 0x406629
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x406664
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x406540
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0041a5dd
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.ErrorList
mov byte [esp + 0x48], 5
call fcn.00407f20
lea edi, [esp + 0x2c]
mov byte [esp + 0x44], 1
call fcn.00406100
add esp, 0xc
mov byte [esp + 0x38], 6
mov eax, dword [eax]
mov edi, dword [ebx]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x40674a
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x406738
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x406738
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4066dc
cmp eax, dword [esi]
jne 0x4066dc
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x406717
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x406540
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0041a5dd
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40672d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ebp, 0x10
mov dword [ecx], ebp
jmp 0x406746
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00404fe0
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40676f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x1c]
add ebx, 8
cmp ebx, 0x44a648
mov dword [esp + 0x18], ebx
jl 0x406509
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret