Function at 0x140080d94
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x500
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r15, rdx
mov rbx, rcx
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rbp + 0x1e0]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x78], 0x104
xor r12d, r12d
mov dword [rsp + 0x60], r12d
mov dword [rbp - 0x7c], r12d
mov dword [rbp - 0x80], r12d
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x74], r12d
mov dword [rsp + 0x70], r12d
mov ecx, 0x90
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140080e3e
lea rdx, [rbx + 0x28]
mov rcx, rax
call fcn.140080be4
mov rbx, rax
jmp 0x140080e41
mov rbx, r12
mov edi, r12d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x1e0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140081052
lea edi, [rax + 1]
cmp dword [rsp + 0x60], r12d
je 0x140081052
call fcn.140019128
mov qword [rbp - 0x68], rax
mov byte [rax + 0x49], dil
mov rax, qword [rbp - 0x68]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x68]
mov qword [rax], rax
mov rax, qword [rbp - 0x68]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x60], r12
mov r14d, r12d
mov esi, r12d
cmp dword [rsp + 0x60], r12d
jbe 0x140081015
or r13, 0xffffffffffffffff
mov dword [rbp - 0x74], 0xff
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x74]
lea r8, [rbp - 0x20]
mov edx, esi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140081009
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
lea rax, [rbp - 0x20]
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x140080f59
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.14000c844
nop
lea rdx, [rbp - 0x48]
mov rcx, rbx
call fcn.140081468
nop
cmp qword [rbp - 0x28], 8
jb 0x140080f95
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140081b9c
test eax, eax
jne 0x140080fca
mov dword [rsp + 0x68], r14d
add r14d, edi
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400823d0
lea rcx, [rbp - 0x20]
mov r8, r13
inc r8
cmp word [rcx + r8*2], r12w
jne 0x140080fbe
jmp 0x140080ffd
mov rcx, rbx
call fcn.140080cdc
test eax, eax
je 0x140081009
mov dword [rsp + 0x68], r14d
add r14d, edi
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400823d0
lea rcx, [rbp - 0x20]
mov r8, r13
inc r8
cmp word [rcx + r8*2], r12w
jne 0x140080ff3
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.14000c844
add esi, edi
cmp esi, dword [rsp + 0x60]
jb 0x140080f01
mov esi, r12d
test r14d, r14d
je 0x140081049
mov dword [rsp + 0x68], esi
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400823d0
mov rdx, rax
mov rcx, rbx
call fcn.140081468
mov rcx, rbx
call fcn.140082120
add esi, edi
cmp esi, r14d
jb 0x14008101d
lea rcx, [rbp - 0x70]
call fcn.1400822fc
test rbx, rbx
je 0x14008105f
mov rcx, rbx
call fcn.14007d268
mov eax, edi
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140093810
mov rbx, qword [rsp + 0x550]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret