Function at 0x405c50
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40e7aa
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
mov eax, dword [esp + 0x58]
mov byte [esp + 0x48], 1
cmp eax, ebx
jne 0x405cae
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 0x405e29
push 1
lea eax, [esp + 0x54]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
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::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401cd0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x405ce4
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.0040da24
mov ecx, esi
call fcn.00405f50
cmp eax, ebx
je 0x405dc7
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.0040da24
mov ecx, esi
call fcn.00406280
cmp eax, ebx
je 0x405dc7
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405d5c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x405d53
cmp al, 0xff
je 0x405d53
dec al
mov byte [ecx], al
jmp 0x405d5c
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 0x405daf
mov al, byte [ecx - 1]
cmp al, bl
je 0x405da5
cmp al, 0xff
je 0x405da5
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 0x405dec
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x405de3
cmp al, 0xff
je 0x405de3
dec al
mov byte [ecx], al
jmp 0x405dec
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 0x405e29
mov al, byte [ecx - 1]
cmp al, bl
je 0x405e1f
cmp al, 0xff
je 0x405e1f
dec al
mov byte [ecx - 1], al
jmp 0x405e29
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