Function at 0x405bd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44fef8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461cb4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
imul esi, esi, 0xf3
mov dword [esp + 0x18], 1
mov edi, dword [esi + 0x466491]
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
lea ecx, [esp + 0x1c]
push ecx
push 0x2a7
push 0x5c
push edi
mov dword [esp + 0x2c], 0
call edx
test eax, eax
jge 0x405c41
push 0x4582d4
push edi
push eax
call fcn.0044a580
or edi, 0xffffffff
cmp dword [esp + 0x44], edi
jne 0x405c51
push 0x1f4
jmp 0x405c78
call fcn.00432b22
mov ecx, dword [esi + 0x4664ba]
cdq
sub ecx, 0x1f3
idiv ecx
mov eax, dword [esi + 0x466481]
add eax, 1
add edx, 0x1f4
imul eax, edx
push eax
call ebp
fld qword [0x458468]
sub esp, 8
fstp qword [esp]
push 0
push ecx
mov ebx, esp
mov dword [esp + 0x2c], esp
push str.000000
call fcn.00401260
push ecx
mov dword [esp + 0x4c], 1
mov ebx, esp
mov dword [esp + 0x38], esp
push str.cargohold.bmp
call fcn.00401260
push 0x2ee
push 0x3e8
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x60], edi
mov ecx, dword [esi + 0x466491]
call fcn.00401940
mov dword [esp + 0x38], 2
mov edx, dword [esp + 0x14]
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x28], esp
je 0x405cfb
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esp + 0x2c]
push eax
call fcn.00412cc0
mov ebx, dword [esp + 0x4c]
add esp, 8
cmp ebx, edi
jne 0x405d17
push 0x3e8
jmp 0x405d3e
call fcn.00432b22
mov ecx, dword [esi + 0x4664ba]
cdq
sub ecx, 0x3e7
idiv ecx
mov eax, dword [esi + 0x466481]
add eax, 1
add edx, 0x3e8
imul eax, edx
push eax
call ebp
cmp dword [esp + 0x28], 0
jg 0x405eda
cmp byte [esp + 0x40], 0
je 0x405f7d
mov edi, dword [esi + 0x466491]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x7c]
lea edx, [esp + 0x1c]
push edx
push 0x28b
push 0x19c
push edi
mov dword [esp + 0x2c], 0
call eax
test eax, eax
jge 0x405d8b
push 0x4582d4
push edi
push eax
call fcn.0044a580
cmp ebx, 0xffffffff
jne 0x405d94
push 0x64
jmp 0x405db5
call fcn.00432b22
mov ecx, dword [esi + 0x4664ba]
cdq
sub ecx, 0x63
idiv ecx
mov eax, dword [esi + 0x466481]
add eax, 1
add edx, 0x64
imul eax, edx
push eax
call ebp
mov edi, dword [esi + 0x466491]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x5c]
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], 0
call eax
test eax, eax
jge 0x405de2
push 0x4582d4
push edi
push eax
call fcn.0044a580
cmp ebx, 0xffffffff
jne 0x405dee
push 0x3e8
jmp 0x405e15
call fcn.00432b22
mov ecx, dword [esi + 0x4664ba]
cdq
sub ecx, 0x3e7
idiv ecx
mov eax, dword [esi + 0x466481]
add eax, 1
add edx, 0x3e8
imul eax, edx
push eax
call ebp
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405e69
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x405e61
test edi, edi
je 0x405e61
mov eax, dword [edi]
test eax, eax
je 0x405e48
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x405e58
push eax
call fcn.00423ef9
add esp, 4
push edi
call fcn.00423ef9
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 5
mov dword [esp + 0x18], eax
jle 0x405c0f
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x456724
call fcn.0041ed40
mov dword [esp + 0x3c], 0
mov esi, dword [esi + 0x466499]
push ecx
sub esi, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00420060
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x40], 0xffffffff
call fcn.0041af00
add esp, 8
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp byte [esp + 0x40], 0
jne 0x405f7d
mov edi, dword [esi + 0x466491]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x7c]
lea edx, [esp + 0x20]
push edx
push 0x2a7
push 0x5c
xor ebp, ebp
push edi
mov dword [esp + 0x30], ebp
call eax
cmp eax, ebp
jge 0x405f15
push 0x4582d4
push edi
push eax
call fcn.0044a580
mov eax, ebx
mov edi, 0x1f4
call fcn.004071e0
mov edi, dword [esi + 0x466491]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x5c]
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], ebp
call eax
cmp eax, ebp
jge 0x405f48
push 0x4582d4
push edi
push eax
call fcn.0044a580
mov eax, ebx
mov edi, 0x1f4
call fcn.004071e0
mov esi, dword [esi + 0x466491]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x50]
lea edx, [esp + 0x20]
push edx
push 0x23
push esi
mov dword [esp + 0x2c], ebp
call eax
cmp eax, ebp
jge 0x405f7d
push 0x4582d4
push esi
push eax
call fcn.0044a580
mov esi, dword [esp + 0x14]
test esi, esi
je 0x405fbd
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x405fbd
test esi, esi
je 0x405fbd
mov eax, dword [esi]
test eax, eax
je 0x405fa4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x405fb4
push eax
call fcn.00423ef9
add esp, 4
push esi
call fcn.00423ef9
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret