Function at 0x404ac0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x40a754
lea ecx, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 4], 0
call sub.MFC42u.DLL_CTime::GetTickCount
mov ecx, eax
call sub.MFC42u.DLL_CTime::Format
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [0x40a6c8]
mov byte [ebp - 4], 2
test eax, eax
jne 0x404b22
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 3
mov ecx, 0x40af10
mov eax, dword [edx - 8]
test eax, eax
je 0x404b42
mov ecx, 0x40a750
test eax, eax
mov eax, 0x40af10
je 0x404b50
mov eax, 0x40a74c
push ecx
push edx
push eax
lea edx, [ebp - 0x14]
push 0x40a73c
push edx
call sub.MFC42u.DLL_CString::Format
mov edi, dword [ebp + 0xc]
add esp, 0x14
cmp di, 2
je 0x404b7a
push 0x40a738
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [0x40a6cc]
test eax, eax
je 0x404bb6
mov eax, dword [0x40af5c]
xor esi, esi
test eax, eax
jle 0x404ba7
push 0x40a730
lea ecx, [ebp - 0x14]
call fcn.00407052
mov eax, dword [0x40af5c]
inc esi
cmp esi, eax
jl 0x404b8e
test eax, eax
je 0x404bb6
push 0x40a738
lea ecx, [ebp - 0x14]
call fcn.00407052
and edi, 0xffff
mov eax, edi
dec eax
je 0x404be0
mov edx, dword [ebp - 0x14]
dec eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
je 0x404bd9
push str._T__s__s_s_r_n
jmp 0x404bf3
push str._S__s__s_s_r_n
jmp 0x404bf3
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
push str._E__s__s_s_r_n
lea ecx, [ebp - 0x18]
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [ebp - 0x18]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [0x40af58]
mov byte [ebp - 4], 5
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404ce8
mov eax, dword [ebp - 0x18]
test eax, eax
mov ebx, eax
jne 0x404c32
xor esi, esi
jmp 0x404c61
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004072d0
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x38]
call fcn.00406ffe
mov ecx, dword [0x40af58]
push 0
push 0x41
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CFile::Open
test eax, eax
jne 0x404ca9
mov edx, dword [0x40af58]
push eax
push 0x1041
push edx
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Open
lea eax, [ebp - 0x38]
push 0
push eax
push 0
call fcn.00404d50
add esp, 0xc
mov edx, dword [ebp - 0x38]
push 2
push 0
lea ecx, [ebp - 0x38]
call dword [edx + 0x30]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Write
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Flush
lea ecx, [ebp - 0x38]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CFile::CFile
mov dword [ebp - 4], 3
call sub.MFC42u.DLL_AfxTryCleanup
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret