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

Disassembly:
push 0xffffffffffffffff
push 0x441de9
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 0x404db6
mov ecx, dword [eax + 0x38]
add eax, 0x24
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x20], eax
jb 0x404a37
mov eax, dword [eax + 4]
jmp 0x404a3a
add eax, 4
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403d90
add esp, 0xc
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x404db6
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp eax, 4
jb 0x404dad
cmp eax, ebx
ja 0x404a79
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0xf7
jne 0x404d9a
push 2
sub esp, 0x10
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00402420
call fcn.004041a0
movzx esi, ax
add esp, 0x14
cmp esi, 4
jb 0x404d8e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp eax, ebx
jne 0x404abb
xor ecx, ecx
jmp 0x404abf
mov ecx, edx
sub ecx, eax
mov edi, esi
mov dword [esp + 0x10], edi
cmp ecx, edi
jb 0x404da6
mov esi, eax
cmp eax, edx
jbe 0x404ae1
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 0x404af3
cmp esi, eax
jae 0x404b01
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 0x404b0d
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.004034d0
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 0x404bb9
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x48]
call fcn.00402420
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404b68
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x404b72
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.004024f0
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x404bab
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 0x404bbb
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.00403450
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 0x404c66
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x58]
call fcn.00402420
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404c15
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x404c1f
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.004024f0
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x404c58
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 0x404c68
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.00403450
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 [0x451a38]
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 0x404ce5
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 0x404cfd
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 0x404d11
cmp esi, ecx
jae 0x404d17
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.004034d0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 9
call fcn.004024f0
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, esi
je 0x404d52
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 0x404d77
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 0x404a50
mov edx, dword [edi + 0x30]
mov byte [edx + 0x18], 1
jmp 0x404a50
mov eax, dword [edi + 0x30]
mov byte [eax + 0x18], 1
jmp 0x404a50
cmp eax, ebx
je 0x404db6
push eax
jmp 0x404dae
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