Function at 0x407930
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40c9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x70]
xor edx, edx
mov esi, dword [ebp + 0x48]
mov eax, ecx
sar eax, 0x10
mov ebx, ecx
and ecx, 0xffff
shl eax, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov eax, dword [esi + eax]
lea esi, [ebp + 0x10]
shl ecx, 5
mov dword [esp + 0x20], ecx
push edi
mov ecx, dword [eax + ecx + 0xc]
mov dword [esp + 0x34], ebp
and ecx, 0xffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], edx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, esi
mov edi, dword [edx]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Split_void_]
mov eax, dword [esi + 8]
cmp eax, edi
jae 0x4079b2
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jbe 0x4079f3
mov ecx, dword [esi + 4]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esi + 8]
add esp, 0xc
sub eax, edi
mov ecx, esi
push 0
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4079f1
mov eax, dword [esp + 0x2c]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x40], ecx
push 6
lea ecx, [esp + 0x3c]
call fcn.004082b0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x40]
jmp 0x407a24
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
shl ecx, 5
add ecx, eax
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00408850
add esp, 8
xor edi, edi
cmp eax, 1
mov dword [esp + 0x28], eax
jne 0x407bd2
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x2c]
cmp ecx, eax
jne 0x407a5c
push edi
mov ecx, ebp
call fcn.00407460
mov esi, dword [ebp + 0x2c]
mov eax, dword [esp + 0x18]
test eax, eax
lea edx, [esi + 1]
mov dword [esp + 0x10], esi
mov dword [ebp + 0x2c], edx
jne 0x407a75
mov dword [esp + 0x18], esi
mov ecx, dword [ebp + 0x48]
mov eax, esi
mov edx, esi
sar eax, 0x10
and edx, 0xffff
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x74]
shl edx, 5
add eax, edx
mov edx, ecx
sar edx, 0x10
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], 0
mov ebx, dword [ebp + 0x48]
and ecx, 0xffff
shl ecx, 5
mov edx, dword [ebx + edx*4]
lea edx, [edx + ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x407b0c
mov edx, ecx
and ecx, 0xffff
sar edx, 0x10
shl edx, 2
shl ecx, 5
mov edi, dword [edx + ebx]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + ecx + 0x1c]
mov edi, ecx
mov dword [esp + 0x2c], ecx
sar edi, 0x10
and ecx, 0xffff
mov edi, dword [ebx + edi*4]
shl ecx, 5
mov dword [edi + ecx + 0x18], esi
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0x48]
mov edx, dword [ecx + edx]
mov ecx, dword [esp + 0x28]
mov dword [edx + ecx + 0x1c], esi
mov dword [eax + 0xc], 0
jmp 0x407b18
mov dword [edx], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0xc], 0x80000
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [eax + 0xc]
and ecx, 0xffff0000
mov dword [eax + 0x14], 0
or edx, ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
shl edx, 5
mov edx, dword [edx + ecx + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
shl ecx, 5
mov ecx, dword [ecx + edx + 8]
mov edx, dword [eax + 8]
and edx, 0xffd00000
add edx, ecx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov edi, ecx
shl edi, 5
test byte [edi + ebx + 0xe], 1
je 0x407ba1
mov ecx, dword [esp + 0x74]
and edx, 0x2fffff
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
shl edx, 5
mov edx, dword [edx + ecx + 8]
mov dword [eax + 4], edx
jmp 0x407a1c
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
inc edi
inc ecx
cmp ecx, eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], ecx
jne 0x407a20
lea eax, [eax + eax + 6]
lea ecx, [esp + 0x38]
push eax
call fcn.004082b0
jmp 0x407a1c
test eax, eax
jne 0x407da7
mov edi, dword [esp + 0x14]
mov esi, ebx
mov eax, edi
test eax, eax
je 0x407c44
shl eax, 5
mov dword [esp + 0x1c], eax
jmp 0x407bf3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ecx - 0xc]
test eax, eax
jne 0x407c04
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x78]
push eax
call fcn.004081f0
test al, al
jne 0x407c3c
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x48]
mov edx, esi
sub ecx, 0x20
sar edx, 0x10
and esi, 0xffff
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + edx*4]
dec edi
shl esi, 5
test edi, edi
mov esi, dword [ecx + esi + 0x10]
jne 0x407bef
jmp 0x407c44
test edi, edi
jne 0x407d4c
mov edx, dword [ebp + 0x48]
mov eax, dword [esp + 0x20]
mov ecx, dword [edx + eax]
mov edx, dword [esp + 0x24]
lea eax, [ecx + edx + 0xc]
mov edx, dword [ecx + edx + 0xc]
or edx, 0x800000
mov dword [eax], edx
mov ecx, dword [ebp + 0x48]
mov eax, ebx
mov edx, ebx
sar eax, 0x10
and edx, 0xffff
mov eax, dword [ecx + eax*4]
shl edx, 5
mov ecx, dword [eax + edx + 0xc]
lea eax, [eax + edx + 0xc]
or ecx, 0x200000
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x407a16
mov edi, dword [esp + 0x78]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
sub ecx, eax
add ecx, 0x65
push ecx
call sub.MFC42.DLL_operatornew
lea edx, [esp + 0x58]
mov esi, eax
push edi
push edx
mov dword [esp + 0x34], esi
call fcn.00408590
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x407cc7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
shl ecx, 5
mov ecx, dword [ecx + edx + 4]
push ecx
push eax
push str.No_start_tag_for_end_tag__s_at_offset__d
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x54]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [ebp + 0x10]
push edi
mov dword [esp + 0x34], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x407d3a
mov eax, dword [ebp + 0x14]
mov ecx, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x28]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x44]
add esp, 4
jmp 0x407a24
mov edx, dword [ebp + 0x48]
mov ecx, esi
sar ecx, 0x10
and esi, 0xffff
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
shl ecx, 5
shl esi, 5
add ecx, edx
add eax, esi
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 4]
add edx, esi
mov esi, dword [eax]
sub edx, esi
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
shl ecx, 5
mov ecx, dword [ecx + edx + 8]
mov edx, dword [eax + 8]
and edx, 0x2fffff
shl ecx, 0x16
add edx, ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x28]
jmp 0x407e2e
cmp eax, 0xffffffff
jne 0x407e25
mov eax, dword [ebp + 0x48]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + ecx]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax + 0xc]
lea eax, [edx + eax + 0xc]
or ecx, 0x800000
mov dword [eax], ecx
mov edx, dword [ebp + 0x48]
mov ecx, ebx
mov eax, ebx
sar ecx, 0x10
and eax, 0xffff
mov ecx, dword [edx + ecx*4]
shl eax, 5
lea eax, [ecx + eax + 0xc]
mov ecx, dword [eax]
or ecx, 0x200000
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x407a16
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
shl edx, 5
lea eax, [edx + eax + 0x10]
mov edx, dword [ecx]
push edx
push 0
push eax
lea ecx, [ebp + 0x10]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x40]
jmp 0x407a24
cmp eax, 0xfffffffe
jne 0x407a16
mov ecx, dword [esp + 0x14]
cmp ecx, edi
jle 0x4081a0
mov eax, dword [ebp + 0x48]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + edx]
mov edx, dword [esp + 0x24]
lea eax, [eax + edx + 0xc]
mov edx, dword [eax]
or edx, 0x800000
mov dword [eax], edx
mov eax, ecx
sub eax, edi
sub ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
jmp 0x407e6a
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x48]
mov eax, ebx
sar eax, 0x10
and ebx, 0xffff
mov esi, dword [ecx + eax*4]
shl ebx, 5
add esi, ebx
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
and edi, 0x2fffff
or ecx, 0x100000
mov eax, edi
mov dword [esp + 0x74], ebx
and eax, 0x2fffff
mov dword [esi + 8], edi
test ecx, 0x200000
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 4], eax
je 0x407eea
xor ecx, 0x200000
mov eax, ebx
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x48]
mov edi, ebx
sar eax, 0x10
and edi, 0xffff
mov eax, dword [ecx + eax*4]
shl edi, 5
mov ecx, dword [eax + edi + 0xc]
lea eax, [eax + edi + 0xc]
or ecx, 0x200000
mov dword [eax], ecx
test edx, edx
je 0x407f4c
mov edi, dword [ebp + 0x48]
mov eax, edx
mov ecx, edx
sar eax, 0x10
shl eax, 2
and ecx, 0xffff
mov edi, dword [eax + edi]
shl ecx, 5
mov dword [edi + ecx + 0x10], ebx
mov edi, dword [ebp + 0x48]
mov ebx, dword [edi + eax]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [ebx + ecx + 0x1c], edi
mov ebp, dword [ebp + 0x48]
mov ebx, edi
and edi, 0xffff
sar ebx, 0x10
shl edi, 5
mov ebx, dword [ebp + ebx*4]
mov ebp, dword [esp + 0x34]
mov dword [ebx + edi + 0x18], edx
mov edi, dword [ebp + 0x48]
mov ebx, dword [esp + 0x74]
mov edx, dword [eax + edi]
mov edx, dword [edx + ecx + 0x18]
test edx, edx
jne 0x407ef1
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp + 0x18]
dec ecx
mov dword [esp + 0x10], ebx
test eax, eax
mov dword [esp + 0x40], ecx
jne 0x408156
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40806b
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
shl ecx, 5
mov edx, dword [ebx + 4]
mov edi, dword [ebx]
mov ecx, dword [ecx + eax + 0x18]
sub edx, edi
lea eax, [edx + ecx + 0x65]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
shl ecx, 5
mov edi, eax
add esp, 4
lea eax, [ecx + edx + 0x10]
mov dword [esp + 0x1c], edi
mov eax, dword [eax + 4]
test eax, eax
jne 0x407fb4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x44]
push ebx
push ecx
mov dword [esp + 0x7c], eax
call fcn.00408590
mov eax, dword [eax + 4]
add esp, 8
test eax, eax
jne 0x407fd2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esi]
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [ebx]
dec edx
push ecx
push edx
push eax
push str.End_tag__s_at_offset__d_does_not_match_start_tag__s_at_offset__d
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x60]
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x408015
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40800c
cmp al, 0xff
je 0x40800c
dec al
mov byte [ecx], al
jmp 0x408015
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov ebx, ecx
lea esi, [ebp + 0x10]
push 1
push ebx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408061
mov edi, dword [esi + 4]
mov esi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], ebx
add ebx, eax
mov byte [ebx], 0
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x40814a
mov edx, dword [esp + 0x38]
shl ecx, 5
mov ecx, dword [ecx + edx + 0x18]
add ecx, 0x64
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 4
shl eax, 5
add eax, ecx
mov dword [esp + 0x74], esi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4080a2
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [eax + 4]
push edx
push ecx
push str.Element__s_at_offset__d_not_ended
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x4080cf
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 0x14]
lea edi, [ebp + 0x10]
test ecx, ecx
je 0x4080f8
mov al, byte [ecx - 1]
test al, al
je 0x4080f8
cmp al, 0xff
je 0x4080f8
test ebx, ebx
jne 0x40811e
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x408149
test ebx, ebx
jne 0x408108
push 1
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x408149
mov eax, dword [edi + 0xc]
cmp eax, 0x1f
ja 0x408114
cmp eax, ebx
jae 0x408127
push 1
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [edi + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14]
mov esi, dword [esp + 0x74]
mov dword [ebp + 0x18], ebx
add ebx, eax
mov byte [ebx], 0
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x407e66
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp eax, 0xfffffffe
je 0x4081a6
mov eax, dword [ebp + 0x48]
mov edx, ebx
sar edx, 0x10
and ebx, 0xffff
mov edx, dword [eax + edx*4]
shl ebx, 5
dec ecx
mov eax, dword [edx + ebx + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], eax
dec dword [esp + 0x14]
jmp 0x407a20
mov ecx, dword [esp + 0x40]
jmp 0x40816d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
test eax, eax
je 0x4081d3
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x4022a0
push ecx
push 0x20
push eax
call fcn.0040c01f
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8