Function at 0x1400422a0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0xa8]
xor ebx, ebx
mov r14, qword [rbp + 0xb0]
mov esi, ebx
mov r15, qword [rbp + 0xb8]
mov r13, r8
mov qword [rsp + 0x68], rax
mov r12, rdx
mov byte [rsp + 0x41], bl
mov rdi, rcx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], r9
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x140042341
test byte [rcx + 0x1c], 1
je 0x140042341
cmp byte [rcx + 0x19], 4
jb 0x140042341
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0xee
call fcn.140004b74
mov rcx, qword [0x1401720a0]
test r14, r14
jne 0x140042359
mov ebx, 0x80004003
mov r13, rsi
mov dil, sil
mov r12b, sil
jmp 0x1400426f6
movups xmm0, xmmword [0x140154f60]
movdqu xmmword [r14], xmm0
test r15, r15
jne 0x14004237d
mov ebx, 0x80004003
mov r13, rsi
mov dil, sil
mov r12b, sil
jmp 0x1400426ef
lea rcx, [0x1401732f0]
mov qword [r15], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
mov byte [rsp + 0x40], 1
call fcn.14004bbc0
mov ebx, eax
test eax, eax
js 0x1400426e0
cmp byte [rdi + 0x18], sil
je 0x140042405
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x1400423f0
test byte [rcx + 0x1c], 1
je 0x1400423f0
cmp byte [rcx + 0x19], 2
jb 0x1400423f0
mov eax, dword [rdi + 8]
lea r8, [0x14014c7e8]
mov r9d, dword [rdi + 0x38]
mov edx, 0xef
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14000ffdc
mov rcx, qword [0x1401720a0]
mov ebx, 0x80780017
mov dil, byte [rsp + 0x40]
mov r13, rsi
mov r12b, sil
jmp 0x1400426fd
cmp byte [rdi + 0x20], sil
je 0x140042451
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x14004244a
test byte [rcx + 0x1c], 1
je 0x14004244a
cmp byte [rcx + 0x19], 2
jb 0x14004244a
mov r9d, dword [rdi + 8]
lea r8, [0x14014c7e8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
call fcn.140004b98
mov rcx, qword [0x1401720a0]
mov ebx, 0x8078011c
jmp 0x1400423f5
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, SysAllocStringByteLen
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x10]
lea r8, [rbp - 0x70]
movups xmm0, xmmword [r12]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
movdqu xmmword [rsp + 0x70], xmm0
mov rax, qword [rax + 0x18]
call qword [case.0x1400059ff.0]
mov ebx, eax
test eax, eax
js 0x1400426e0
mov r12b, 1
lea rcx, [rbp - 0x80]
mov byte [rsp + 0x41], r12b
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rcx, [rsp + 0x58]
call fcn.14004f780
mov ebx, eax
test eax, eax
jns 0x140042505
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x1400424f1
test byte [rcx + 0x1c], r12b
je 0x1400424f1
cmp byte [rcx + 0x19], 2
jb 0x1400424f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0xf1
mov r9d, eax
call fcn.140004b98
mov rcx, qword [0x1401720a0]
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov dil, byte [rsp + 0x40]
jmp 0x1400426fd
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rax, qword [rsi]
mov rax, qword [rax + 8]
call qword [case.0x1400059ff.0]
mov rdx, qword [rdi + 0x10]
lea r12, [rsi + 0x18]
mov rcx, r12
call fcn.1400059b8
mov rdx, r13
mov rcx, r12
call fcn.1400055a8
mov ebx, eax
test eax, eax
js 0x1400426e0
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
lea rdx, [0x14015be98]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x1400059ff.0]
mov ebx, eax
test eax, eax
jns 0x1400425b0
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x14004259e
test byte [rcx + 0x1c], 1
je 0x14004259e
cmp byte [rcx + 0x19], 2
jb 0x14004259e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0xf2
mov r9d, eax
call fcn.140004b98
mov rcx, qword [0x1401720a0]
mov r13, qword [rsp + 0x48]
mov dil, byte [rsp + 0x40]
mov r12b, dil
jmp 0x1400426fd
mov eax, dword [rbp + 0xa0]
lea r9, [rbp - 0x80]
mov r8, qword [rsp + 0x68]
mov rdx, rdi
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call fcn.140014d54
mov ebx, eax
test eax, eax
js 0x1400426e0
and qword [rsp + 0x28], 0
lea r8, [0x140035640]
and dword [rsp + 0x20], 0
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
jne 0x14004266b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x140042658
test byte [rcx + 0x1c], 1
je 0x140042658
cmp byte [rcx + 0x19], 2
jb 0x140042658
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0xf3
mov r9d, eax
call fcn.140004b98
mov rcx, qword [0x1401720a0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400425a3
cmp qword [rdi + 0x28], 0
mov byte [rdi + 0x18], 1
jne 0x14004267d
cmp qword [rdi + 0x30], 0
je 0x140042695
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x1308
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008410c
mov rcx, qword [rsp + 0x50]
xor esi, esi
mov qword [rdi + 0x28], r12
mov qword [rdi + 0x30], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400059ff.0]
mov rax, qword [rsp + 0x50]
lea rcx, [0x1401732f0]
movups xmm0, xmmword [rbp - 0x80]
and qword [rsp + 0x50], rsi
mov dword [rdi + 0x38], 1
xor dil, dil
movdqu xmmword [r14], xmm0
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400426ea
mov r13, qword [rsp + 0x48]
mov dil, byte [rsp + 0x40]
mov r12b, byte [rsp + 0x41]
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14004271e
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [case.0x1400059ff.0]
mov rcx, qword [0x1401720a0]
test r13, r13
je 0x140042733
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401720a0]
test rsi, rsi
je 0x14004274f
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x10]
call qword [case.0x1400059ff.0]
mov rcx, qword [0x1401720a0]
test r12b, r12b
je 0x140042764
lea rcx, [rbp - 0x70]
call fcn.14009c30c
mov rcx, qword [0x1401720a0]
test ebx, ebx
jns 0x140042798
cmp rcx, r14
je 0x1400427be
test byte [rcx + 0x1c], 1
je 0x140042798
cmp byte [rcx + 0x19], 2
jb 0x140042798
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0xf4
mov r9d, ebx
call fcn.140004b98
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x1400427be
test byte [rcx + 0x1c], 1
je 0x1400427be
cmp byte [rcx + 0x19], 4
jb 0x1400427be
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0xf5
call fcn.140004b74
test dil, dil
je 0x1400427d0
lea rcx, [0x1401732f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140141cf0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret