Function at 0x10001a538
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 0x10001ad19
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [rbx + 1]
cmp qword [rdi + 0x40], rbx
je 0x10001a5f1
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 0x10001a5ee
mov rax, rsi
mov bl, al
jmp 0x10001a5f1
mov rax, rsi
test al, sil
je 0x10001a600
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor esi, esi
cmp bl, sil
je 0x10001a60f
mov rcx, rdi
call fcn.10001ae28
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 0x10001a864
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 0x10001a6e0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
jb 0x10001a6d7
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 0x10001a6d7
cmp dword [rsp + 0x50], 4
jne 0x10001a6d7
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 0x10001a70c
mov edx, 0x18e
mov r8d, 0x75
mov rcx, rdi
call fcn.10001af90
nop
mov ebx, 0x80004005
jmp 0x10001aded
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 0x10001a75b
mov edx, 0x4d8
lea r8d, [rax + 0x76]
mov rcx, rdi
call fcn.10001af90
nop
mov ebx, 0x80004005
jmp 0x10001aded
mov ecx, 0x18
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rsi, rax
xor ecx, ecx
cmp rax, rcx
je 0x10001a782
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ecx
lea rax, [0x100001ea0]
mov qword [rsi], rax
jmp 0x10001a785
mov rsi, rcx
mov ebx, 0x80004005
cmp rsi, rcx
je 0x10001a7d3
mov qword [rsp + 0x40], rcx
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
call fcn.1000126b0
mov ebp, eax
test eax, eax
js 0x10001a7ba
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x10001a7ba
mov qword [rsi + 8], rax
test ebp, ebp
jns 0x10001a7cd
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
jmp 0x10001a7d5
mov qword [rdi + 0x40], rsi
jmp 0x10001a7d5
mov ebp, ebx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp ebp, esi
jge 0x10001aceb
lea ecx, [rsi + 0x18]
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rsi, rax
xor ecx, ecx
cmp rax, rcx
je 0x10001a80f
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ecx
lea rax, [0x100001eb8]
mov qword [rsi], rax
jmp 0x10001a812
mov rsi, rcx
cmp rsi, rcx
jne 0x10001a81e
mov ebp, ebx
jmp 0x10001ad12
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.10000b874
mov ebp, eax
test eax, eax
jns 0x10001a859
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
mov edx, 0x4d8
mov r8d, 0x75
mov rcx, rdi
call fcn.10001af90
xor esi, esi
jmp 0x10001ace7
mov qword [rdi + 0x40], rsi
xor esi, esi
jmp 0x10001ace7
lea rdx, [0x100008078]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, esi
jne 0x10001accf
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.100019284
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov r11, qword [rsp + 0x58]
cmp dword [r11 - 8], esi
je 0x10001aca6
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, [0x100018688]
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 0x10001aca6
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 0x10001aaad
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 0x10001aa00
mov word [rsp + 0x2e6], bp
cmp dword [rsp + 0x50], esi
jne 0x10001a9c9
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_AfxDeleteObject
jmp 0x10001aaa2
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 0x10001aded
mov ebx, 2
cmp eax, ebx
jne 0x10001aaa2
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 0x10001aaa2
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.100018fb4
cmp qword [rsp + 0xa8], rbp
je 0x10001abea
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.10001a538
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 0x10001aded
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.100018730
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx - 8]
cmp ecx, ebp
je 0x10001ac91
lea r8d, [rcx - 1]
movsxd rax, r8d
cmp rax, rbp
je 0x10001ac59
cmp rax, rbp
jl 0x10001ac41
cmp r8d, ecx
jge 0x10001ac41
mov r9w, word [rdx + rax*2]
jmp 0x10001ac44
mov r9d, ebp
cmp r9w, 0x2e
je 0x10001ac59
mov r9d, 1
sub r8d, r9d
sub rax, r9
jne 0x10001ac30
cmp r8d, ebp
je 0x10001ac91
inc r8d
mov rcx, rdi
call fcn.10001a538
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 0x10001aded
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.10001af90
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov ebx, 0x80004005
jmp 0x10001aded
mov edx, 0x166
mov r8d, 0x75
mov rcx, rdi
call fcn.10001af90
mov ebp, 0x80004005
cmp ebp, esi
jl 0x10001ad12
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x10001ad05
cmp rcx, qword [rdi + 0x40]
je 0x10001ad05
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rdx, qword [rdi + 0x40]
mov rcx, rdi
call fcn.10001ba7c
nop
mov ebx, ebp
jmp 0x10001aded
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 0x10001adb5
mov ecx, 0x802
call fcn.1000202dc
mov rsi, rax
cmp rax, rbp
je 0x10001ad95
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0x400
mov r9, rax
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call fcn.10001aec0
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 0x10001adba
mov ebx, 2
mov rdx, qword [rsp + 0x48]
cmp dword [rdx - 8], ebp
je 0x10001add7
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.100020710
mov rbx, qword [rsp + 0x378]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret