Function at 0x406b90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40e8ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], ebx
call fcn.00401a20
lea eax, [esp + 0x50]
push 0x414de8
push eax
mov byte [esp + 0x50], 1
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___char_const__]
add esp, 8
test al, al
je 0x406bfd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], bl
call fcn.00401a30
push 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 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_]
jmp 0x406d78
push 1
lea edx, [esp + 0x54]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
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::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
call fcn.00401cd0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x406c33
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]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.0040db04
mov ecx, esi
call fcn.00406ea0
cmp eax, ebx
je 0x406d16
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.0040db04
mov ecx, esi
call fcn.004071e0
cmp eax, ebx
je 0x406d16
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406cab
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406ca2
cmp al, 0xff
je 0x406ca2
dec al
mov byte [ecx], al
jmp 0x406cab
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x48], bl
call fcn.00401a30
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x406cfe
mov al, byte [ecx - 1]
cmp al, bl
je 0x406cf4
cmp al, 0xff
je 0x406cf4
dec al
mov byte [ecx - 1], al
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x44
ret 0x10
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x44
ret 0x10
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406d3b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406d32
cmp al, 0xff
je 0x406d32
dec al
mov byte [ecx], al
jmp 0x406d3b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x48], bl
call fcn.00401a30
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x406d78
mov al, byte [ecx - 1]
cmp al, bl
je 0x406d6e
cmp al, 0xff
je 0x406d6e
dec al
mov byte [ecx - 1], al
jmp 0x406d78
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 0x10