Function at 0x10001a554
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x340
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1000341e0]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov dword [rsp + 0x50], r8d
mov rbp, rdx
mov qword [rsp + 0x48], rdx
mov rdi, rcx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x70], ebx
lea rcx, [r11 - 0x2d8]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x10001ad35
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [rbx + 1]
cmp qword [rdi + 0x40], rbx
je 0x10001a60d
lea rcx, [rdi + 0x18]
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x40]
call sub.MFC42u.dll_CFormView::SetOccDialogInfo
lea esi, [rbx + 1]
lea rdx, [0x100008060]
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, ebx
jne 0x10001a60a
mov rax, rsi
mov bl, al
jmp 0x10001a60d
mov rax, rsi
test al, sil
je 0x10001a61c
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor esi, esi
cmp bl, sil
je 0x10001a62b
mov rcx, rdi
call fcn.10001ae44
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x68], rax
mov rbx, qword [0x1000383e0]
call sub.MFC42u.dll_Ordinal_1463
mov qword [rax + 0x18], rbx
movsxd rax, dword [rsp + 0x50]
lea rbx, [rbp + rax*2]
lea rdx, [0x100008070]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, esi
jne 0x10001a880
mov rdx, rbp
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDaoException::CDaoException
mov ebx, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov eax, 3
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, eax
mov edx, 0x80000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x10001a6fc
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
jb 0x10001a6f3
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8d, 4
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001a6f3
cmp dword [rsp + 0x50], 4
jne 0x10001a6f3
cmp dword [rsp + 0x70], 0xe011cfd0
mov eax, 1
cmove ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
test ebx, ebx
je 0x10001a728
mov edx, 0x18e
mov r8d, 0x75
mov rcx, rdi
call fcn.10001afac
nop
mov ebx, 0x80004005
jmp 0x10001ae09
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x10001a777
mov edx, 0x4d8
lea r8d, [rax + 0x76]
mov rcx, rdi
call fcn.10001afac
nop
mov ebx, 0x80004005
jmp 0x10001ae09
mov ecx, 0x18
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rsi, rax
xor ecx, ecx
cmp rax, rcx
je 0x10001a79e
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ecx
lea rax, [0x100001ea0]
mov qword [rsi], rax
jmp 0x10001a7a1
mov rsi, rcx
mov ebx, 0x80004005
cmp rsi, rcx
je 0x10001a7ef
mov qword [rsp + 0x40], rcx
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
call fcn.1000126ac
mov ebp, eax
test eax, eax
js 0x10001a7d6
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x10001a7d6
mov qword [rsi + 8], rax
test ebp, ebp
jns 0x10001a7e9
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
jmp 0x10001a7f1
mov qword [rdi + 0x40], rsi
jmp 0x10001a7f1
mov ebp, ebx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp ebp, esi
jge 0x10001ad07
lea ecx, [rsi + 0x18]
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rsi, rax
xor ecx, ecx
cmp rax, rcx
je 0x10001a82b
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ecx
lea rax, [0x100001eb8]
mov qword [rsi], rax
jmp 0x10001a82e
mov rsi, rcx
cmp rsi, rcx
jne 0x10001a83a
mov ebp, ebx
jmp 0x10001ad2e
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.10000b874
mov ebp, eax
test eax, eax
jns 0x10001a875
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
mov edx, 0x4d8
mov r8d, 0x75
mov rcx, rdi
call fcn.10001afac
xor esi, esi
jmp 0x10001ad03
mov qword [rdi + 0x40], rsi
xor esi, esi
jmp 0x10001ad03
lea rdx, [0x100008078]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, esi
jne 0x10001aceb
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rdx, [0x100001e7c]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
lea r8, [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1000192a0
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov r11, qword [rsp + 0x58]
cmp dword [r11 - 8], esi
je 0x10001acc2
mov rdx, rbp
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
lea rdx, [rsp + 0x58]
lea rcx, [0x10003a8a8]
call sub.MFC42u.dll_AfxDaoGetEngine
xor r9d, r9d
lea r8, [0x1000186a4]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
xor ebp, ebp
mov ebx, ebp
cmp eax, ebp
setne bl
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp ebx, ebp
je 0x10001acc2
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea esi, [rbp + 1]
mov r9d, esi
xor r8d, r8d
lea rdx, [0x100008080]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10001aac9
mov dword [rsp + 0x70], 0x208
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000ffff
lea r8, [0x1000080d0]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, ebp
jne 0x10001aa1c
mov word [rsp + 0x2e6], bp
cmp dword [rsp + 0x50], esi
jne 0x10001a9e5
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_AfxDeleteObject
jmp 0x10001aabe
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov ebx, 0x80004005
jmp 0x10001ae09
mov ebx, 2
cmp eax, ebx
jne 0x10001aabe
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, [0x100008080]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10001aabe
lea rdx, [0x1000080f8]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
mov rax, qword [rsp + 0x48]
mov edx, dword [rax - 8]
lea ebx, [rdx + rdx]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDatabase::GetConnectInfo
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, [0x1000080d0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_AfxDaoGetEngine
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CControlBar::CControlBar
mov rbx, rax
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x90]
call sub.MFC42u.dll_CControlBar::CControlBar
mov rsi, rax
mov qword [rsp + 0x48], rax
mov edx, 0xa
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_CDaoQueryDef::CDaoQueryDef
nop
lea r8, [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.100018fd0
cmp qword [rsp + 0xa8], rbp
je 0x10001ac06
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_COleControl::XOleInPlaceActiveObject::AddRef
nop
mov rcx, rsi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, rbx
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [0x100008114]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_Ordinal_1284
mov rbx, qword [rsp + 0x60]
lea rdx, [0x100008060]
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CRichEditView::FindTextW
mov r8d, 1
add r8d, eax
mov rdx, rbx
mov rcx, rdi
call fcn.10001a554
nop
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov ebx, ebp
jmp 0x10001ae09
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_COleControl::XOleInPlaceActiveObject::AddRef
nop
mov rcx, rsi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, rbx
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.10001874c
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx - 8]
cmp ecx, ebp
je 0x10001acad
lea r8d, [rcx - 1]
movsxd rax, r8d
cmp rax, rbp
je 0x10001ac75
cmp rax, rbp
jl 0x10001ac5d
cmp r8d, ecx
jge 0x10001ac5d
mov r9w, word [rdx + rax*2]
jmp 0x10001ac60
mov r9d, ebp
cmp r9w, 0x2e
je 0x10001ac75
mov r9d, 1
sub r8d, r9d
sub rax, r9
jne 0x10001ac4c
cmp r8d, ebp
je 0x10001acad
inc r8d
mov rcx, rdi
call fcn.10001a554
mov ebx, eax
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
jmp 0x10001ae09
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov edx, 0x15e
mov r8d, 0x75
mov rcx, rdi
call fcn.10001afac
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov ebx, 0x80004005
jmp 0x10001ae09
mov edx, 0x166
mov r8d, 0x75
mov rcx, rdi
call fcn.10001afac
mov ebp, 0x80004005
cmp ebp, esi
jl 0x10001ad2e
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x10001ad21
cmp rcx, qword [rdi + 0x40]
je 0x10001ad21
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rdx, qword [rdi + 0x40]
mov rcx, rdi
call fcn.10001ba98
nop
mov ebx, ebp
jmp 0x10001ae09
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
xor ebp, ebp
cmp eax, ebp
cmovle ebx, eax
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov edx, 0x18f
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CPropertySheet::OnCtlColor
lea edx, [rbp + 0x75]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CPropertySheet::OnCtlColor
cmp ebx, ebp
je 0x10001add1
mov ecx, 0x802
call fcn.1000202b4
mov rsi, rax
cmp rax, rbp
je 0x10001adb1
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0x400
mov r9, rax
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call fcn.10001aedc
lea rdx, [0x100008054]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_Ordinal_1287
mov rdx, rsi
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_Ordinal_1287
jmp 0x10001add6
mov ebx, 2
mov rdx, qword [rsp + 0x48]
cmp dword [rdx - 8], ebp
je 0x10001adf3
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.1000206f0
mov rbx, qword [rsp + 0x378]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret