Function at 0x140031610
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 [0x140067010]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor r15d, r15d
mov qword [rsp + 0x6b8], r14
mov r14, qword [0x1400691c0]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
mov edi, r15d
call fcn.140034ac0
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.140034ac0
lea edx, [r15 + 0x5c]
lea rcx, [rsp + 0x50]
call fcn.1400345e8
test rax, rax
je 0x1400316c0
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.140040a08
xor edx, edx
mov qword [rsp + 0x6b0], rbx
mov r8d, 0x208
lea rcx, [rbp + 0x370]
call fcn.140034ac0
xor edx, edx
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.140027750
mov esi, 1
test eax, eax
je 0x14003176f
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x370]
lea rdx, str.InstalledDir
call fcn.1400278a0
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 0x14003176f
lea rax, [rbp + 0x160]
lea r9, [rbp + 0x370]
sub r9, rax
movzx r8d, word [rax]
movzx edx, word [rax + r9]
sub r8d, edx
jne 0x140031746
add rax, 2
test edx, edx
jne 0x140031730
test r8d, r8d
je 0x14003177d
movzx eax, word [rbp + 0x370]
mov edx, 0x1388
cmp ax, word [0x14005693c]
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.140027e10
mov edi, esi
xor edx, edx
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.140027750
test eax, eax
je 0x140031820
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 0x1400317d9
mov ebx, dword [rsp + 0x44]
mov r14d, esi
jmp 0x1400317e0
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 0x140031820
test ebx, ebx
jne 0x140031820
mov qword [rsp + 0x28], r15
lea r8, [0x140031900]
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 0x140031820
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.140027750
mov r14, qword [rsp + 0x6b8]
test eax, eax
je 0x1400318c7
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 0x140031881
mov ebx, dword [rsp + 0x40]
jmp 0x140031888
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 0x1400318c7
test ebx, ebx
jne 0x1400318c7
mov qword [rsp + 0x28], r15
lea r8, [0x14002fe30]
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 0x1400318c7
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.140032e60
mov rsi, qword [rsp + 0x6c0]
add rsp, 0x690
pop r15
pop rdi
pop rbp
ret