Function at 0x1400307fc
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x220
mov qword [rax - 0xd8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
lea rdi, str.base_stor_vssmoduleswriters_regwriter.cxx
mov qword [rsp + 0x40], rdi
lea rsi, str.CRegistryWriter::CreateWriter
mov qword [rsp + 0x48], rsi
lea r14, str.WRTREGRC
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x1e4
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x60], 0xff
xor ebx, ebx
mov dword [rax - 0x158], 0x1000000
xor edx, edx
lea r8d, [rbx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.14001cce0
nop
cmp qword [0x14016bce8], rbx
jne 0x14005ce74
lea rdx, [0x140102ed8]
lea ecx, [rbx + 0x28]
call fcn.14003264c
mov qword [rsp + 0x248], rax
test rax, rax
je 0x14005ce88
mov qword [rax + 8], rbx
lea rcx, [0x1400f8498]
mov qword [rax], rcx
mov qword [rax + 0x18], rbx
lea rcx, [0x1400f83f8]
mov qword [rax + 0x10], rcx
mov qword [0x14016bce8], rax
test rax, rax
je 0x14005ce90
lea rax, [rsp + 0x240]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x140030d80]
mov edx, 0x40000
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov r15, rax
test rax, rax
je 0x14005cef1
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [0x14016bcf0]
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], ebx
jl 0x14005cf72
mov ebx, dword [rsp + 0xf8]
lea rcx, [rsp + 0xf0]
call fcn.14001ce00
mov eax, ebx
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [rsp + 0xf0]
call fcn.14001ce00
xor eax, eax
jmp 0x14003095f
mov rax, rbx
jmp 0x1400308d6
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x1f0
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.1400dc25c
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x201
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_0.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateThread_failed_with_error__d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.1400ddc40
nop
xor ebx, ebx
lea r14, str.WRTREGRC
lea rsi, str.CRegistryWriter::CreateWriter
lea rdi, str.base_stor_vssmoduleswriters_regwriter.cxx
jmp 0x14003093c
mov rcx, qword [0x14016bce8]
test rcx, rcx
je 0x14005cf96
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [0x1400f9ec0]
mov qword [0x14016bce8], rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x214
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.1400d9c4c
mov r9d, 1
mov r8, rax
mov edx, 0x3036
lea rcx, [rsp + 0xf0]
call fcn.1400db328
lea rcx, [rsp + 0x40]
call fcn.14000ae60
nop
jmp 0x140030949