Function at 0x406f18
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x41fd68
call fcn.0041ef90
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x218]
test eax, eax
push edi
lea edi, [esi + 0x218]
jne 0x406fb8
push str._by_on_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x21c]
cmp eax, dword [edi]
je 0x4072ac
push 0x440304
lea ecx, [ebp - 0x20]
call fcn.0041eb9a
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push 0x1e
push eax
call fcn.004066f2
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operator
push dword [eax]
lea ecx, [esi + 0x158]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
jmp 0x4072a7
mov dword [esi + 0x21c], eax
cmp dword [0x4403a0], 0
jg 0x40703b
push str.__2_
lea ecx, [ebp - 0x20]
call fcn.0041eb9a
lea eax, [ebp - 0x1c]
push 0x1e
push eax
mov dword [ebp - 4], 3
call fcn.004066f2
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_operator
push dword [eax]
lea ecx, [esi + 0x158]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString
mov ecx, esi
call fcn.00406e8e
jmp 0x4072ac
lea ecx, [esi + 0x60]
call fcn.00407ad9
lea ecx, [ebp - 0x10]
mov ebx, eax
call sub.MFC42u.DLL_CString::CString_3
mov edi, 0xa1
lea eax, [ebp - 0x28]
push edi
push eax
mov dword [ebp - 4], 6
call fcn.004066f2
pop ecx
pop ecx
push ebx
push dword [eax]
lea eax, [ebp - 0x10]
push str._s:__d___
push eax
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
push 0
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
lea ecx, [esi + 0x88]
push eax
mov dword [ebp - 0x28], 0x21
call fcn.004073e2
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x10], ebx
mov eax, dword [0x440428]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], ecx
jge 0x4070d0
xor eax, eax
mov dword [0x440428], eax
cmp eax, 0x1f
jle 0x4070dd
push 0x1f
pop eax
mov dword [0x440428], eax
inc eax
imul eax, eax, 0x3c
push 1
mov dword [ebp - 0x1c], eax
pop eax
cmp dword [0x440318], eax
jge 0x4070f4
mov dword [0x440318], eax
push 0x32
pop eax
cmp dword [0x440318], eax
jle 0x407104
mov dword [0x440318], eax
cmp dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
jle 0x40717c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x88]
mov dword [ebp - 0x30], 0x21
call fcn.004073e2
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, dword [0x440318]
jge 0x40717a
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x88]
mov dword [ebp - 0x38], 0x21
call fcn.004073e2
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x10]
add dword [ebp - 0x28], eax
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
dec dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x407112
xor ecx, ecx
push ecx
push ebx
push 0x402
push 0x431
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString_3
push dword [0x440318]
lea eax, [ebp - 0x24]
push 0x42a8f0
push eax
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::Format
lea eax, [ebp - 0x14]
push 0x30
push eax
call fcn.004066f2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 4], 9
call fcn.004066f2
add esp, 0x1c
push dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push dword [edx]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xa
push ecx
push ebx
push dword [eax]
lea eax, [ebp - 0x10]
push str._s:__d_____03d__s____s___
push eax
mov dword [ebp - 0x20], ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x1c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp - 0x20], 0
jg 0x407286
mov ecx, esi
mov dword [esi + 0x84], 0xa
call fcn.00406e8e
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
push 0x7d0
push dword [esi + 0x20]
call ebx
push 0x7d1
push dword [esi + 0x20]
call ebx
push edi
call fcn.0041716a
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call sub.MFC42u.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 8
call fcn.004017ae
push eax
call fcn.00412816
add esp, 0xc
push dword [ebp - 0x10]
lea ecx, [esi + 0x158]
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret