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

Disassembly:
push 0xffffffffffffffff
push 0x4124d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x54], 0
lea eax, [esi + 0x24]
lea ebx, [esi + 0x14]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x78]
push ecx
push ebx
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
je 0x40fd08
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x88]
push edx
push eax
jmp 0x40fd0e
lea ecx, [esp + 0x78]
push ecx
push ebx
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__]
and eax, 0xff
add esp, 8
test eax, eax
je 0x40fd33
mov eax, dword [esp + 0x10]
add esi, 0x38
add ebx, 0x38
add eax, 0x38
mov dword [esp + 0x10], eax
jmp 0x40fce6
lea edi, [ebp + 0x14]
sub edi, 0x38
lea edx, [esp + 0x78]
push edi
push edx
sub ebp, 0x38
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
je 0x40fd5d
lea eax, [edi + 0x10]
lea ecx, [esp + 0x88]
push eax
push ecx
jmp 0x40fd63
lea edx, [esp + 0x78]
push edi
push edx
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__]
and eax, 0xff
add esp, 8
test eax, eax
jne 0x40fd36
cmp ebp, esi
jbe 0x40fe3e
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x28]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 1
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x54], 2
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
push 0
push ebx
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 eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
push 0
push edi
lea ecx, [esp + 0x44]
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_]
push ebp
mov ecx, esi
mov byte [esp + 0x58], 3
call fcn.004078a0
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
call fcn.004078a0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
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 1
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x38
add ebx, 0x38
add edi, 0x38
mov dword [esp + 0x10], edi
jmp 0x40fce6
push 1
lea ecx, [esp + 0x8c]
mov dword [esp + 0x58], 0xffffffff
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 eax, dword [esp + 0x7c]
test eax, eax
je 0x40fe7a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fe71
cmp al, 0xff
je 0x40fe71
dec al
mov byte [ecx], al
jmp 0x40fe7a
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret