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

Disassembly:
push 0xffffffffffffffff
push 0x441df9
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 0x404cf6
mov ecx, dword [eax + 0x38]
add eax, 0x24
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x20], eax
jb 0x404977
mov eax, dword [eax + 4]
jmp 0x40497a
add eax, 4
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403cd0
add esp, 0xc
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x404cf6
mov eax, dword [esp + 0x2c]
sub eax, ecx
cmp eax, 4
jb 0x404ced
cmp eax, ebx
ja 0x4049b9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0xf7
jne 0x404cda
push 2
sub esp, 0x10
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00402360
call fcn.004040e0
movzx esi, ax
add esp, 0x14
cmp esi, 4
jb 0x404cce
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4049fb
xor ecx, ecx
jmp 0x4049ff
mov ecx, edx
sub ecx, eax
mov edi, esi
mov dword [esp + 0x10], edi
cmp ecx, edi
jb 0x404ce6
mov esi, eax
cmp eax, edx
jbe 0x404a21
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 0x404a33
cmp esi, eax
jae 0x404a41
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 0x404a4d
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.00403410
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 0x404af9
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x48]
call fcn.00402360
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404aa8
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x404ab2
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.00402430
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x404aeb
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 0x404afb
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.00403390
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 0x404ba6
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x58]
call fcn.00402360
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404b55
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 1
ja 0x404b5f
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.00402430
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x404b98
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 0x404ba8
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.00403390
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 [0x451204]
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 0x404c25
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 0x404c3d
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 0x404c51
cmp esi, ecx
jae 0x404c57
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.00403410
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 9
call fcn.00402430
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, esi
je 0x404c92
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 0x404cb7
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 0x404990
mov edx, dword [edi + 0x30]
mov byte [edx + 0x18], 1
jmp 0x404990
mov eax, dword [edi + 0x30]
mov byte [eax + 0x18], 1
jmp 0x404990
cmp eax, ebx
je 0x404cf6
push eax
jmp 0x404cee
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