Function at 0x1401004d0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1401b8010]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rdi, rcx
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x4c], 0x5b
xor r15d, r15d
lea r9, [r15 - 1]
lea r8, str.On_Init_Dialog
mov edx, 0x102
lea rcx, [rbp - 0x4a]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x140183930]
mov edx, 0x104
lea rcx, [rbp - 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r9, [r15 - 1]
lea r8, str.CMainDialog::OnInitDialog
mov edx, 0x104
lea rcx, [rbp + 0x1bc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
lea r12d, [r15 + 1]
add ecx, eax
je 0x14010061d
mov dword [rsp + 0x50], r15d
call fcn.140005ad0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1401005aa
call fcn.140005ad0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x60], 0x20
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x30], rax
lea rax, str.____s
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1bc]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rsp + 0x60]
movsx edx, r12w
call fcn.140004c90
nop
mov qword [rsp + 0x48], r15
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x140100618
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x140100603
lock inc dword [rsp + 0x50]
mov rcx, rdi
call fcn.140079b20
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x58]
call qword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
jne 0x140100640
cmp dword [rsp + 0x58], 1
je 0x140100660
mov rbx, qword [rdi + 0x30]
call fcn.140008c80
xor r8d, r8d
lea edx, [r8 + 0xc]
mov rcx, rbx
mov rax, qword [rax + 0xa8]
call qword [case.0x140077645.0]
lea r8, str.IDS_APPNAME
lea rdx, [rbp - 0x78]
call fcn.140045e30
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x1401006ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401006c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401006c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e2a0
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r15w
mov rbx, qword [rsp + 0x68]
mov rax, qword [rdi + 0x28]
lea rcx, [rdi + 0x28]
mov rax, qword [rax]
call qword [case.0x140077645.0]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x170]
call qword [case.0x140077645.0]
mov rcx, rdi
call fcn.140100ce0
mov rcx, rdi
call fcn.1400fa980
mov rcx, rdi
call fcn.1400d35c0
mov rcx, rdi
call fcn.1400d2640
mov rcx, rdi
call fcn.1400d20f0
mov rcx, rdi
call fcn.1400ea780
mov rcx, rdi
call fcn.1400fbd80
xor sil, sil
mov rbx, r15
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], r15d
mov qword [rbp - 0x80], r15
lea rcx, [0x1401c15e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1401c15e0], 0
jne 0x140100783
lea rcx, [0x1401c15c0]
call fcn.140047ce0
lea rcx, [0x1401c15e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1401c15e0]
test rcx, rcx
je 0x1401007b7
mov rax, qword [rcx]
lea r8, [0x14016e598]
mov edx, 0xcb
mov rax, qword [rax + 0x30]
call qword [case.0x140077645.0]
jmp 0x1401007be
lea rax, str._error_interface_not_inited_
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, r12d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401007ef
mov eax, r15d
mov rbx, qword [rsp + 0x58]
test eax, eax
jne 0x140100844
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.IsUpsell
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140100844
cmp dword [rsp + 0x44], 4
jne 0x140100844
movzx esi, sil
cmp dword [rsp + 0x40], 1
cmove esi, r12d
test rbx, rbx
je 0x140100855
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
test rbx, rbx
je 0x140100863
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rdi + 0x822], sil
mov rcx, rdi
call fcn.1400e4900
mov byte [rdi + 0x835], al
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x44], r15d
mov rax, qword [rdi]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov rax, qword [rax + 0x168]
call qword [case.0x140077645.0]
cmp dword [rsp + 0x40], 0
je 0x1401008bf
xor edx, edx
mov rcx, rdi
call fcn.14007b440
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd qword [rdi + 0x4c0], xmm1
lea rdx, str.MAINICON
mov rcx, qword [rdi + 0x270]
call qword [sym.imp.USER32.dll_LoadIconW]
test rax, rax
je 0x1401008ea
mov r8, rax
mov edx, 0xfffffff2
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.USER32.dll_SetClassLongPtrW]
mov rcx, rdi
call fcn.1400e80f0
mov rax, qword [rdi + 0x28]
lea rcx, [rdi + 0x28]
mov rax, qword [rax]
call qword [case.0x140077645.0]
mov qword [rdi + 0x790], 0x659
mov qword [rdi + 0x788], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
lea r9, [rdi + 0x780]
lea r8, [0x140036a20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x780], rax
mov rdx, qword [rdi + 0x878]
mov rax, qword [rdi + 0x30]
mov qword [rdx + 8], rax
mov rcx, qword [rdi + 0x878]
call fcn.1400b81b0
mov rax, qword [rdi + 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xdfe
lea rcx, [rdi + 0x28]
mov rax, qword [rax + 0x30]
call qword [case.0x140077645.0]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x50]
call fcn.140004e30
mov eax, r12d
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.14007e250
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret