Function at 0x14000390c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x220
mov qword [rax - 0xe0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rsi, str.base_stor_vssmoduleswriters_regwriter.cxx
mov qword [rsp + 0x40], rsi
lea r14, str.CRegistryWriter::CreateWriter
mov qword [rsp + 0x48], r14
lea r15, str.WRTREGRC
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x1e9
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
xor edi, edi
mov dword [rax - 0x168], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.140010990
nop
cmp qword [0x14015ace8], rdi
jne 0x1400468fa
lea rdx, [0x14015a53c]
lea ecx, [rdi + 0x28]
call fcn.1400307f4
mov qword [rsp + 0x258], rax
test rax, rax
je 0x14004690e
mov qword [rax + 8], rdi
lea rcx, fcn.14000c3c0
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
lea rcx, [0x1400f2350]
mov qword [rax + 0x10], rcx
mov qword [0x14015ace8], rax
test rax, rax
je 0x140046916
lea rax, [rsp + 0x250]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140003c00]
mov edx, 0x40000
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x140046977
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [0x14015ab90]
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], edi
jl 0x1400469f8
mov ebx, dword [rsp + 0xf8]
lea rcx, [rsp + 0xf0]
call fcn.140010ab0
mov eax, ebx
mov rbx, qword [rsp + 0x260]
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [rsp + 0xf0]
call fcn.140010ab0
xor eax, eax
jmp 0x140003a6e
mov rax, rdi
jmp 0x1400039e5
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x1f5
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rsp + 0xe0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r9, str.Allocation_of_CRegistryWriter_object_failed.
mov r8d, 0x8007000e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.1400ce7c0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x206
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rsp + 0xe0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateThread_failed_with_error__d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.1400d020c
nop
xor edi, edi
lea r15, str.WRTREGRC
lea r14, str.CRegistryWriter::CreateWriter
lea rsi, str.base_stor_vssmoduleswriters_regwriter.cxx
jmp 0x140003a4b
mov r12, qword [0x14015ace8]
test r12, r12
je 0x140046a25
mov rax, qword [r12]
mov rbx, qword [rax]
mov rcx, rbx
call qword [fcn.140031010]
mov edx, 1
mov rcx, r12
call rbx
mov qword [0x14015ace8], rdi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], 0x219
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
mov dword [rsp + 0xe0], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0xf8]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x40]
call fcn.1400ccd58
mov r9d, 1
mov r8, rax
mov edx, 0x3036
lea rcx, [rsp + 0xf0]
call fcn.140010bcc
lea rcx, [rsp + 0x40]
call fcn.140019ca4
nop
jmp 0x140003a58