Function at 0x140089ec8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, reloc.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
sub rsp, 0x510
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rbp + 0x1f0]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x68], 0x104
xor r12d, r12d
mov dword [rsp + 0x60], r12d
mov dword [rbp - 0x6c], r12d
mov dword [rbp - 0x70], r12d
mov dword [rbp - 0x74], r12d
mov dword [rbp - 0x78], r12d
mov dword [rbp - 0x7c], r12d
mov dword [rbp - 0x80], r12d
lea ecx, [r12 + 0x70]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140089f65
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.1400896d4
mov rdi, rax
jmp 0x140089f68
mov rdi, r12
mov r15d, r12d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x68]
lea rdx, [rbp + 0x1f0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14008a234
lea r15d, [rax + 1]
cmp dword [rsp + 0x60], r12d
je 0x14008a234
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
call fcn.14001ce70
mov rcx, rax
mov qword [rsp + 0x70], rax
mov r14d, r12d
mov ebx, r12d
cmp dword [rsp + 0x60], r12d
jbe 0x14008a14f
or r13, 0xffffffffffffffff
mov dword [rbp - 0x64], 0xff
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x64]
lea r8, [rbp - 0x10]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008a13d
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r12
mov word [rbp - 0x58], r12w
cmp word [rbp - 0x10], r12w
jne 0x14008a071
mov r8, r12
jmp 0x14008a082
lea rax, [rbp - 0x10]
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x14008a078
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x58]
call fcn.140010c5c
nop
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.14008b050
nop
cmp qword [rbp - 0x40], 8
jb 0x14008a0b4
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rcx, rdi
call fcn.14008aebc
test eax, eax
jne 0x14008a0f1
mov dword [rsp + 0x68], r14d
add r14d, r15d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.14008996c
cmp word [rbp - 0x10], r12w
je 0x14008a11b
lea rcx, [rbp - 0x10]
mov r8, r13
inc r8
cmp word [rcx + r8*2], r12w
jne 0x14008a0e5
jmp 0x14008a131
mov rcx, rdi
call fcn.14008ae04
test eax, eax
je 0x14008a13d
mov dword [rsp + 0x68], r14d
add r14d, r15d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.14008996c
cmp word [rbp - 0x10], r12w
jne 0x14008a120
mov r8, r12
jmp 0x14008a131
lea rcx, [rbp - 0x10]
mov r8, r13
inc r8
cmp word [rcx + r8*2], r12w
jne 0x14008a127
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.140010c5c
add ebx, r15d
cmp ebx, dword [rsp + 0x60]
jb 0x14008a014
mov rcx, qword [rsp + 0x70]
mov esi, r12d
test r14d, r14d
je 0x14008a22a
mov rax, qword [rcx + 8]
mov rbx, rcx
jmp 0x14008a175
cmp dword [rax + 0x20], esi
jge 0x14008a16f
mov rax, qword [rax + 0x10]
jmp 0x14008a175
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x14008a164
cmp rbx, rcx
je 0x14008a185
cmp esi, dword [rbx + 0x20]
jge 0x14008a204
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r12
mov word [rbp - 0x58], r12w
mov dword [rbp - 0x38], esi
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.1400116f0
nop
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x70]
call fcn.140088964
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140088c40
mov rbx, qword [rsp + 0x68]
cmp qword [rbp - 0x18], 8
jb 0x14008a1ed
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x40], 8
jb 0x14008a204
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea rdx, [rbx + 0x28]
mov rcx, rdi
call fcn.14008b050
mov rcx, rdi
call fcn.14008a284
add esi, r15d
cmp esi, r14d
jae 0x14008a22a
mov rcx, qword [rsp + 0x70]
jmp 0x14008a15b
lea rcx, [rsp + 0x70]
call fcn.14008978c
test rdi, rdi
je 0x14008a250
mov rcx, rdi
call fcn.1400898ec
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, r15d
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret