Function at 0x417830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d298
push eax
mov eax, dword [esp + 0x28]
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
cmp ebx, eax
push edi
je 0x417ab4
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov esi, ebx
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
add esi, 0x10
cmp esi, eax
mov dword [esp + 0x18], esi
jne 0x4178a3
mov eax, dword [ebp + 4]
add ebp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov esi, eax
cmp esi, dword [esp + 0x78]
je 0x417ab4
mov eax, dword [esi + 4]
test eax, eax
jne 0x4178b9
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 dword [esp + 0x60], eax
mov cl, byte [esp + 0x60]
mov byte [esp + 0x20], cl
push 0
lea ecx, [esp + 0x24]
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, dword [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
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_char_const___unsigned_int_]
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x417974
mov ebp, dword [esp + 0x24]
sub esp, 0x10
test ebp, ebp
mov dword [esp + 0x70], esp
mov esi, esp
jne 0x417921
mov ebp, 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 cl, byte [esp + 0x70]
push 0
mov byte [esi], cl
mov ecx, esi
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, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
mov ecx, esi
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_char_const___unsigned_int_]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00417620
add esp, 0x20
jmp 0x417a6d
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebp
call fcn.00416b30
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], edx
cmp ebx, eax
mov dword [esp + 0x64], ecx
je 0x4179f4
cmp esi, edi
jne 0x4179d7
mov edi, dword [ebp - 4]
sub ebp, 4
lea esi, [edi + 0x1000]
lea ecx, [esp + 0x40]
sub esi, 0x10
call fcn.00416e00
mov eax, dword [eax + 8]
push esi
push eax
call fcn.0040fb60
add esp, 8
cmp ebx, esi
jne 0x4179c7
mov eax, dword [ebx + 4]
mov edx, 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]
test eax, eax
jne 0x417a03
mov eax, edx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x417a0d
mov edx, ecx
cmp eax, edx
je 0x417a71
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, ebx
mov eax, dword [edx]
push eax
push 0
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__::erase_unsigned_int__unsigned_int_]
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x417a32
mov esi, 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 edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
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 0x417a6d
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
add eax, ebp
mov byte [eax], 0
mov ecx, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x58], 0xffffffff
cmp ecx, esi
je 0x417a9b
mov al, byte [ecx - 1]
test al, al
je 0x417a91
cmp al, 0xff
je 0x417a91
dec al
mov byte [ecx - 1], al
jmp 0x417a9b
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x18]
jmp 0x417876
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret