Function at 0x40a680
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rsi, rcx
mov eax, dword [rcx + 0x408]
xor r15d, r15d
cmp eax, r15d
jne 0x40a748
lea rcx, str._by_on_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r11d, dword [rsi + 0x408]
cmp dword [rsi + 0x40c], r11d
je 0x40aaca
lea rdx, [0x0043314b]
lea rcx, [rsp + 0xd0]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea edx, [r15 + 0x1e]
lea rcx, [rsp + 0x40]
call fcn.004095e0
nop
lea r8, [rsp + 0xd0]
mov rdx, rax
lea rcx, [rsp + 0xd8]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
lea rcx, [rsi + 0x288]
mov rdx, qword [rax]
call sub.MFC42u.dll_COleControlSite::CreateControl
nop
lea rcx, [rsp + 0xd8]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0xd0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x40aaca
mov dword [rcx + CDocObjectServer::XOleDocument::AddRef], eax
cmp dword [0x0045a980], r15d
jg 0x40a7dc
lea rdx, str.__2_
lea rcx, [rsp + 0xd0]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
mov edx, 0x1e
lea rcx, [rsp + 0x40]
call fcn.004095e0
nop
lea r8, [rsp + 0xd0]
mov rdx, rax
lea rcx, [rsp + 0xd8]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
lea rcx, [rsi + 0x288]
mov rdx, qword [rax]
call sub.MFC42u.dll_COleControlSite::CreateControl
nop
lea rcx, [rsp + 0xd8]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0xd0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rcx, rsi
call fcn.0040a624
jmp 0x40aaca
add rcx, 0xc0
call fcn.0040b800
movsxd r14, eax
lea rcx, [rsp + 0xc0]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov edx, 0xa1
lea rcx, [rsp + 0xd0]
call fcn.004095e0
nop
mov r9d, r14d
mov r8, qword [rax]
lea rdx, str._s:__d___
lea rcx, [rsp + 0xc0]
call sub.MFC42u.dll_CPtrList::FreeNode
nop
lea rcx, [rsp + 0xd0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_time]
mov rbx, rax
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xd4], 0x21
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0xe8]
call fcn.0040a110
mov r11, qword [rsp + 0x40]
mov dword [r11 + 0x1c], r14d
mov r12d, r15d
mov ecx, dword [0x0045a8f0]
cmp ecx, r15d
cmovl ecx, r15d
mov eax, 0x1f
cmp ecx, eax
cmovg ecx, eax
mov dword [0x0045a8f0], ecx
lea ebp, [rcx + 1]
imul ebp, ebp, 0x3c
mov eax, dword [0x0045aa10]
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
mov ecx, 0x32
cmp eax, ecx
cmovg eax, ecx
mov dword [0x0045aa10], eax
mov edi, r15d
cmp ebp, r15d
jle 0x40a934
mov dword [rsp + 0xd4], 0x21
mov dword [rsp + 0xd0], ebx
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0xe8]
call fcn.0040a110
mov r11d, dword [0x0045aa10]
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x1c], r11d
jge 0x40a934
inc r12d
mov dword [rsp + 0xd8], ebx
mov dword [rsp + 0xdc], 0x21
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0x58]
lea rcx, [rsi + 0xe8]
call fcn.0040a110
inc edi
dec ebx
cmp edi, ebp
jl 0x40a8cc
mov edx, 0x431
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor r9d, r9d
mov r8, r14
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0xc8]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov r8d, dword [0x0045aa10]
lea rdx, [0x00434534]
lea rcx, [rsp + 0xc8]
call sub.MFC42u.dll_CPtrList::FreeNode
mov edx, 0x30
lea rcx, [rsp + 0xd8]
call fcn.004095e0
mov rbx, rax
mov edi, 0xa1
mov edx, edi
lea rcx, [rsp + 0xd0]
call fcn.004095e0
nop
sub ebp, r12d
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9d, r14d
mov r8, qword [rax]
lea rdx, [0x00434500]
lea rcx, [rsp + 0xc0]
call sub.MFC42u.dll_CPtrList::FreeNode
nop
lea rcx, [rsp + 0xd0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0xd8]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp ebp, r15d
jg 0x40aa9a
mov dword [rsi + 0xe4], 0xa
mov rcx, rsi
call fcn.0040a624
mov edx, 0x7d0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
mov edx, 0x7d1
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
lea r11, [rsp + 0xd0]
mov qword [rsp + 0xd8], r11
mov ecx, edi
call fcn.00421aa0
mov rdx, rax
lea rcx, [rsp + 0xd0]
call sub.MFC42u.dll_CDaoException::CDaoException
mov rdi, rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CControlBar::CControlBar
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rsi + 0x348]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call fcn.0041b328
lea rcx, [rsi + 0x288]
mov rdx, qword [rsp + 0xc0]
call sub.MFC42u.dll_COleControlSite::CreateControl
nop
lea rcx, [rsp + 0xc8]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0xc0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret