Function at 0x40de70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x567ed9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push esi
push edi
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], al
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 ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
mov edi, dword [ecx + 8]
cmp edi, eax
mov dword [esp + 8], edi
ja 0x40ded7
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0xc]
mov eax, dword [edx]
push eax
push edi
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_]
jmp 0x40dee8
mov ecx, edi
push 0
sub ecx, eax
push ecx
lea ecx, [esp + 0x14]
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__::append_unsigned_int__char_]
xor esi, esi
test edi, edi
jle 0x40dfce
push ebp
mov edx, dword [esp + 0x34]
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 ecx, ebp
mov eax, dword [edx + 4]
test eax, eax
je 0x40df09
lea ecx, [eax + esi]
cmp byte [ecx], 0x61
jl 0x40df74
test eax, eax
mov ecx, ebp
je 0x40df17
lea ecx, [eax + esi]
cmp byte [ecx], 0x7a
jg 0x40df74
test eax, eax
mov edi, ebp
je 0x40df25
lea edi, [eax + esi]
mov edx, dword [esp + 0x18]
cmp edx, esi
jb 0x40df69
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40df69
mov cl, byte [eax - 1]
test cl, cl
je 0x40df52
cmp cl, 0xff
je 0x40df52
push 0
push edx
lea ecx, [esp + 0x18]
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_]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40df5e
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x14]
mov cl, byte [edi]
add eax, esi
sub cl, 0x20
mov byte [eax], cl
jmp 0x40dfc0
mov cl, byte [edi]
mov eax, ebp
sub cl, 0x20
mov byte [eax], cl
jmp 0x40dfc0
test eax, eax
mov edi, ebp
je 0x40df7d
lea edi, [eax + esi]
mov edx, dword [esp + 0x18]
cmp edx, esi
jb 0x40dfba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40dfba
mov cl, byte [eax - 1]
test cl, cl
je 0x40dfaa
cmp cl, 0xff
je 0x40dfaa
push 0
push edx
lea ecx, [esp + 0x18]
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_]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40dfb6
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x14]
add eax, esi
jmp 0x40dfbc
mov eax, ebp
mov dl, byte [edi]
mov byte [eax], dl
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jl 0x40def3
pop ebp
mov esi, dword [esp + 0x2c]
mov al, byte [esp + 0xc]
push 0
mov ecx, esi
mov byte [esi], al
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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0xc]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
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 + 0x10]
test ecx, ecx
je 0x40e02f
mov al, byte [ecx - 1]
test al, al
je 0x40e025
cmp al, 0xff
je 0x40e025
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret