Function at 0x401828
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
lea rdx, [rsp + 0x38]
lea rcx, [0x00458588]
call fcn.0041f6d0
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
movzx r9d, byte [rsp + 0x3a]
movzx r8d, byte [rsp + 0x38]
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
lea rdx, str.AC:_d_PR:_d_____d_Min.
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CPtrList::FreeNode
xor edi, edi
cmp byte [rsp + 0x38], dil
je 0x4018e0
lea rdx, str.__AC_
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CCtrlView::CCtrlView
mov rbx, rax
mov ecx, 0x97
call fcn.00421aa0
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x78]
call sub.MFC42u.dll_AfxThrowUserException
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0x78]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x401906
movzx ebx, byte [rsp + 0x3a]
mov ecx, 0x97
call fcn.00421aa0
mov r8, rax
mov r9d, ebx
lea rdx, str._s__d___
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CPtrList::FreeNode
cmp dword [rsi + 0x2c8], edi
jne 0x401944
lea rcx, str._by_on_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x1e
call fcn.00421aa0
mov rdx, rax
lea rcx, [rsi + 0xc8]
call sub.MFC42u.dll_COleControlSite::CreateControl
nop
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x401afc
cmp dword [0x0045bb30], edi
jne 0x401975
mov ecx, 0x1e
call fcn.00421aa0
mov rdx, rax
lea rcx, [rsi + 0xc8]
call sub.MFC42u.dll_COleControlSite::CreateControl
nop
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x401afc
cmp byte [rsp + 0x38], 1
je 0x401af2
movzx ebx, byte [rsp + 0x3a]
mov dword [rsi + 0xc4], ebx
cmp ebx, 0xff
jne 0x4019aa
lea ecx, [rbx - 0x67]
call fcn.00421aa0
mov rdx, rax
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_AfxDeleteObject
jmp 0x4019cb
mov ecx, 0x97
call fcn.00421aa0
mov r8, rax
mov r9d, ebx
lea rdx, str._s__d___
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CPtrList::FreeNode
cmp qword [rsi + 0x40], rdi
je 0x4019e2
lea rcx, [rsi + 0xc8]
mov rdx, qword [rsp + 0x70]
call sub.MFC42u.dll_COleControlSite::CreateControl
cmp dword [rsi + 0x2c8], edi
je 0x401af2
mov eax, dword [rsi + 0xc4]
cmp eax, dword [rsi + 0xc0]
jge 0x401aec
cmp eax, dword [0x0045baa0]
jg 0x401af2
call qword [sym.imp.msvcrt.dll_clock]
mov ecx, eax
sub ecx, dword [0x00458580]
cmp ecx, 0xea60
jge 0x401af2
mov dword [0x00458580], eax
mov ebx, 0x7d0
mov rdx, rbx
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
xor r9d, r9d
mov r8d, 0x3e8
mov rdx, rbx
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x0045bb30], edi
je 0x401a70
mov dword [0x0045bb30], edi
xor edx, edx
lea rcx, [0x0045bb34]
call fcn.0041fc00
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
mov rcx, qword [rsi + 0x188]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rsp + 0x78]
mov qword [rsp + 0x80], r11
mov ecx, 0xa1
call fcn.00421aa0
mov rdx, rax
lea rcx, [rsp + 0x78]
call sub.MFC42u.dll_CDaoException::CDaoException
mov rdi, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x88]
call sub.MFC42u.dll_CControlBar::CControlBar
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rsi + 0x288]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call fcn.0041b328
jmp 0x401af2
mov dword [rsi + 0xc0], eax
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret