Function at 0x416640
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, rsp
sub rsp, 0x200
mov qword [rsp + 0xc0], 0xfffffffffffffffe
movdqa xmmword [rax - 0x10], xmm6
mov rax, qword [0x004583d0]
mov qword [rsp + 0x1e0], rax
mov r14d, edx
mov rbx, rcx
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], rcx
cmp rax, qword [0x0045c730]
je 0x4166d7
cmp dword [rax + 0x18], r14d
jge 0x4166bf
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
jmp 0x4166a2
mov rcx, rax
mov qword [rsp + 0x98], rax
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x4166a2
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx + 0x18]
cmp rcx, rax
je 0x4166f2
cmp r14d, dword [rcx + 0x18]
jl 0x4166f2
lea rax, [rsp + 0x60]
jmp 0x4166fc
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x68]
mov rax, qword [rax]
cmp qword [rbx + 0x18], rax
jne 0x416718
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xorpd xmm0, xmm0
jmp 0x416ab2
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x248]
call fcn.00416570
mov rdx, rax
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_AfxDaoGetEngine
mov edi, 0xa000
mov rcx, rdi
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rsi, rax
mov dword [rsp + 0x34], edi
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov r8d, 0x1fe
lea rdx, [0x00434534]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CPtrList::FreeNode
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000004
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4167df
cmp eax, 0xea
jne 0x4167bd
add dword [rsp + 0x34], edi
mov rcx, rsi
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
mov ecx, dword [rsp + 0x34]
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rsi, rax
jmp 0x41676c
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
movlpd xmm0, qword [0x00434738]
jmp 0x416ab2
mov edi, dword [rsi + 0x18]
add rdi, rsi
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x50], r8d
cmp r8d, dword [rsi + 0x1c]
jge 0x416a8a
cmp dword [rdi + 0xc], 0x1fe
jne 0x416a70
mov r15d, 0xffffffff
mov dword [rsp + 0x70], r15d
mov ecx, dword [rdi + 8]
add rcx, rdi
mov qword [rsp + 0xb0], rcx
xor edx, edx
mov dword [rsp + 0x30], edx
cmp edx, dword [rdi + 0x20]
jge 0x41685e
mov eax, dword [rbx + 0x74]
cmp dword [rcx + 4], eax
jne 0x416849
mov r15d, dword [rcx + 0x24]
mov dword [rsp + 0x70], r15d
mov eax, dword [rcx]
add rcx, rax
mov qword [rsp + 0xb0], rcx
inc edx
mov dword [rsp + 0x30], edx
jmp 0x416833
cmp r15d, 0xffffffff
jne 0x41688f
mov rcx, rsi
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
movlpd xmm0, qword [0x00434738]
jmp 0x416ab2
mov r13d, dword [rdi + 4]
add r13, rdi
mov qword [rsp + 0x90], r13
xor r12d, r12d
mov dword [rsp + 0x30], r12d
cmp r12d, dword [rdi + 0x28]
jge 0x416a6b
mov ecx, dword [r13 + 0x10]
add rcx, r13
mov eax, dword [r13]
add rax, r13
mov qword [rsp + 0x60], rax
mov r8d, 0xff
lea rdx, [rsp + 0xe0]
call fcn.00414e08
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov r8, qword [rsp + 0x48]
lea rdx, [0x00432f80]
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CPtrList::FreeNode
mov rcx, qword [rbx + 0x58]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0xa8], rcx
cmp rax, qword [0x0045c738]
je 0x416940
cmp dword [rax + 0x18], r12d
jae 0x41692b
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x78], rax
jmp 0x416911
mov rcx, rax
mov qword [rsp + 0xa8], rax
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
jmp 0x416911
mov qword [rsp + 0x48], rcx
mov rax, qword [rbx + 0x58]
cmp rcx, rax
je 0x41695b
cmp r12d, dword [rcx + 0x18]
jb 0x41695b
lea rax, [rsp + 0x48]
jmp 0x41696b
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x88]
mov rax, qword [rax]
cmp rax, qword [rbx + 0x58]
je 0x4169b5
mov eax, r15d
mov rcx, qword [rsp + 0x60]
mov eax, dword [rax + rcx]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], 0
lea rcx, [rbx + 0x50]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0xc8]
call fcn.00416304
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
movzx edx, word [rax]
movzx r8d, word [rax + rcx]
sub edx, r8d
jne 0x4169d8
add rax, 2
test r8d, r8d
jne 0x4169c2
test edx, edx
jne 0x416a3e
mov eax, r15d
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rax + rcx]
cvtsi2sd xmm0, rcx
cmp dword [rbx + 0x70], r14d
je 0x416a01
movsd qword [rbx + 8], xmm0
xorpd xmm6, xmm6
mov dword [rbx + 0x70], r14d
jmp 0x416a0f
movsd xmm6, xmm0
subsd xmm6, qword [rbx + 8]
movsd qword [rbx + 8], xmm0
mov rcx, rsi
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
movsd xmm0, xmm6
jmp 0x416ab2
mov ecx, dword [r13]
mov eax, dword [rcx + r13]
add rax, rcx
add r13, rax
mov qword [rsp + 0x90], r13
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
inc r12d
mov dword [rsp + 0x30], r12d
jmp 0x4168a6
mov r8d, dword [rsp + 0x50]
mov eax, dword [rdi]
add rdi, rax
mov qword [rsp + 0xa0], rdi
inc r8d
mov dword [rsp + 0x50], r8d
jmp 0x4167fd
mov rcx, rsi
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xorpd xmm0, xmm0
jmp 0x416ab2
mov rcx, qword [rsp + 0x1e0]
call fcn.0042ec20
movdqa xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret