Function at 0x41dd24
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x004583d0]
mov qword [rsp + 0x250], rax
mov rbp, rdx
mov rsi, rcx
cmp dword [0x0045d320], 0
jne 0x41ddf9
mov edx, 0x3ea
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov edi, 0x40
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.0042e2a2
mov rdx, rax
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [rdi - 0x41]
lea rcx, [rsp + 0x20]
call fcn.0042e2ae
mov edi, reloc.OLEAUT32.dll_SafeArrayGetElement
mov ecx, edi
call fcn.00421aa0
mov rdx, qword [rsp + 0x20]
sub rax, rdx
movzx r8d, word [rdx]
movzx r9d, word [rdx + rax]
sub r8d, r9d
jne 0x41ddd1
add rdx, 2
test r9d, r9d
jne 0x41ddba
test r8d, r8d
je 0x41ddea
mov ecx, edi
call fcn.00421aa0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x41dfd6
cmp dword [rcx + 0x258], 0
jne 0x41de29
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x0045d320], 0
jmp 0x41dfd6
call fcn.0041d0c8
mov r13, rax
cmp rax, 0xa
jge 0x41de7a
cmp dword [rsi + 0xc4], 0
jne 0x41de7a
mov dword [rsi + 0xc4], 1
mov dword [rsi + 0xc8], 0xa
mov ebx, 0x7d0
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.USER32.dll_KillTimer]
xor r9d, r9d
mov r8d, 0x3e8
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetTimer]
mov dword [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x1fc
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll_memset
cvtsi2sd xmm0, r13
lea rdx, [rsp + 0x50]
call fcn.0041ce6c
mov edx, 0x3ea
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowTextW]
test r13, r13
jne 0x41dfa5
cmp dword [0x0045d320], r13d
je 0x41df79
mov edx, 0xa035
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rcx, [rsi + 0x150]
lea rdx, [rsp + 0x20]
call sub.MFC42u.dll_CDialogTemplate::Load
lea r11, [rsp + 0x28]
mov qword [rsp + 0x40], r11
lea ecx, [r13 + 0xd]
call fcn.00421aa0
mov rdx, rax
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDaoException::CDaoException
mov rdi, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CControlBar::CControlBar
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rsi + 0x190]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call fcn.0041b328
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov dword [0x0045d320], 0
mov edx, 0xa035
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
call qword [sym.imp.USER32.dll_SendMessageW]
test r13, r13
jns 0x41dfd6
mov dword [0x0045d320], 0
mov edx, 0xa035
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x250]
call fcn.0042ec20
add rsp, 0x260
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret