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

Disassembly:
push 0xffffffffffffffff
push 0x441899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x30]
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp eax, ebx
je 0x404906
mov ecx, dword [eax + 0x38]
add eax, 0x24
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x20], eax
jb 0x404587
mov eax, dword [eax + 4]
jmp 0x40458a
add eax, 4
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004038e0
add esp, 0xc
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x404906
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp eax, 4
jb 0x4048fd
cmp eax, ebx
ja 0x4045c9
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0xf7
jne 0x4048ea
push 2
sub esp, 0x10
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00401f70
call fcn.00403cf0
movzx esi, ax
add esp, 0x14
cmp esi, 4
jb 0x4048de
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp eax, ebx
jne 0x40460b
xor ecx, ecx
jmp 0x40460f
mov ecx, edx
sub ecx, eax
mov edi, esi
mov dword [esp + 0x10], edi
cmp ecx, edi
jb 0x4048f6
mov esi, eax
cmp eax, edx
jbe 0x404631
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
add esi, edi
lea ebp, [esp + 0x24]
cmp esi, edx
ja 0x404643
cmp esi, eax
jae 0x404651
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edi, eax
cmp eax, edx
jbe 0x40465d
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x20]
push ecx
push esi
push ebp
lea eax, [esp + 0x30]
push edi
push eax
lea ecx, [esp + 0x48]
call fcn.00403020
push 0x18
mov byte [esp + 0x9c], 1
call sub.MSVCR80.DLL_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x98], 2
cmp esi, ebx
je 0x404709
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x48]
call fcn.00401f70
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4046b8
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x4046c2
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 1]
lea ecx, [esi + 4]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [esi], eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x9c], 4
mov byte [esi + 0x14], 0xf7
call fcn.00402040
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4046fb
push eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
jmp 0x40470b
xor esi, esi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x3c]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x1c], esi
call fcn.00402fa0
push 0x18
call sub.MSVCR80.DLL_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x98], 5
cmp esi, ebx
je 0x4047b6
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x58]
call fcn.00401f70
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404765
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x40476f
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 1]
lea ecx, [esi + 4]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [esi], eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x9c], 7
mov byte [esi + 0x14], 0xf7
call fcn.00402040
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4047a8
push eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
jmp 0x4047b8
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x64]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x1c], esi
call fcn.00402fa0
inc dword [edi + 0x9c]
mov edx, dword [sym.imp.MSVCP80.DLL_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.DLL_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
mov ecx, esi
mov byte [esp + 0x9c], 8
call dword [sym.imp.MSVCP80.DLL_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x74]
mov byte [esp + 0x98], 1
call dword [sym.imp.MSVCP80.DLL_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebp, eax
cmp ecx, eax
jbe 0x404835
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea ebx, [esp + 0x24]
mov esi, ecx
cmp ecx, eax
jbe 0x40484d
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
add esi, dword [esp + 0x10]
lea edi, [esp + 0x24]
cmp esi, eax
ja 0x404861
cmp esi, ecx
jae 0x404867
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
push eax
push ebp
push ebx
push esi
push edi
lea ecx, [esp + 0x78]
call fcn.00403020
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 9
call fcn.00402040
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, esi
je 0x4048a2
push eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov byte [esp + 0x98], 0
cmp eax, esi
je 0x4048c7
push eax
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
xor ebx, ebx
jmp 0x4045a0
mov edx, dword [edi + 0x30]
mov byte [edx + 0x18], 1
jmp 0x4045a0
mov eax, dword [edi + 0x30]
mov byte [eax + 0x18], 1
jmp 0x4045a0
cmp eax, ebx
je 0x404906
push eax
jmp 0x4048fe
push ecx
call sub.MSVCR80.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret