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

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor r15d, r15d
mov qword [rsp + 0x6b8], r14
mov r14, qword [0x14007b298]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
mov edi, r15d
call fcn.1400423d0
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.1400423d0
lea edx, [r15 + 0x5c]
lea rcx, [rsp + 0x50]
call fcn.140042120
test rax, rax
je 0x14003e3b0
lea rcx, [rsp + 0x50]
mov edx, 0x104
sub rax, rcx
lea r8, [rsp + 0x50]
sar rax, 1
lea rcx, [rbp + 0x160]
inc eax
movsxd r9, eax
call fcn.14004e390
xor edx, edx
mov qword [rsp + 0x6b0], rbx
mov r8d, 0x208
lea rcx, [rbp + 0x370]
call fcn.1400423d0
xor edx, edx
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.140031c50
mov esi, 1
test eax, eax
je 0x14003e45f
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x370]
lea rdx, str.InstalledDir
call fcn.140031da0
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x14003e45f
lea rax, [rbp + 0x160]
lea r9, [rbp + 0x370]
sub r9, rax
movzx r8d, word [rax]
movzx edx, word [rax + r9]
sub r8d, edx
jne 0x14003e436
add rax, 2
test edx, edx
jne 0x14003e420
test r8d, r8d
je 0x14003e46d
movzx eax, word [rbp + 0x370]
mov edx, 0x1388
cmp ax, word [0x140064c30]
mov ecx, 0x1f4
cmove edx, ecx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea rcx, [rbp + 0x160]
call fcn.1400322c0
mov edi, esi
xor edx, edx
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.140031c50
test eax, eax
je 0x14003e510
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstalledTaskScheduler
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003e4c9
mov ebx, dword [rsp + 0x44]
mov r14d, esi
jmp 0x14003e4d0
mov ebx, dword [rsp + 0x30]
mov r14d, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r14d, r14d
je 0x14003e510
test ebx, ebx
jne 0x14003e510
mov qword [rsp + 0x28], r15
lea r8, [0x14003e5f0]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14003e510
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor edx, edx
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.140031c50
mov r14, qword [rsp + 0x6b8]
test eax, eax
je 0x14003e5b7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstalledConfigAction
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003e571
mov ebx, dword [rsp + 0x40]
jmp 0x14003e578
mov ebx, dword [rsp + 0x30]
mov esi, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x14003e5b7
test ebx, ebx
jne 0x14003e5b7
mov qword [rsp + 0x28], r15
lea r8, [0x14003cbe0]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14003e5b7
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbx, qword [rsp + 0x6b0]
mov eax, edi
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1400406e0
mov rsi, qword [rsp + 0x6c0]
add rsp, 0x690
pop r15
pop rdi
pop rbp
ret