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

Disassembly:
push 0xffffffffffffffff
push 0x44c599
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 0x404926
mov ecx, dword [eax + 0x38]
add eax, 0x24
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x20], eax
jb 0x4045a7
mov eax, dword [eax + 4]
jmp 0x4045aa
add eax, 4
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403900
add esp, 0xc
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x404926
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp eax, 4
jb 0x40491d
cmp eax, ebx
ja 0x4045e9
call dword [sym.imp.MSVCR80.DLL__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0xf7
jne 0x40490a
push 2
sub esp, 0x10
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00401f90
call fcn.00403d10
movzx esi, ax
add esp, 0x14
cmp esi, 4
jb 0x4048fe
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp eax, ebx
jne 0x40462b
xor ecx, ecx
jmp 0x40462f
mov ecx, edx
sub ecx, eax
mov edi, esi
mov dword [esp + 0x10], edi
cmp ecx, edi
jb 0x404916
mov esi, eax
cmp eax, edx
jbe 0x404651
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 0x404663
cmp esi, eax
jae 0x404671
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 0x40467d
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.00403040
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 0x404729
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x48]
call fcn.00401f90
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4046d8
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x4046e2
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.00402060
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x40471b
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 0x40472b
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.00402fc0
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 0x4047d6
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x58]
call fcn.00401f90
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404785
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x40478f
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.00402060
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4047c8
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 0x4047d8
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.00402fc0
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 0x404855
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 0x40486d
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 0x404881
cmp esi, ecx
jae 0x404887
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.00403040
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 9
call fcn.00402060
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, esi
je 0x4048c2
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 0x4048e7
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 0x4045c0
mov edx, dword [edi + 0x30]
mov byte [edx + 0x18], 1
jmp 0x4045c0
mov eax, dword [edi + 0x30]
mov byte [eax + 0x18], 1
jmp 0x4045c0
cmp eax, ebx
je 0x404926
push eax
jmp 0x40491e
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