Function at 0x14004cc80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r15d, r15d
mov rax, r9
and qword [rbp - 0x28], r15
mov rdi, r8
xor r13d, r13d
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x10], r13
mov r14, rcx
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
mov bl, 1
cmp rcx, rsi
je 0x14004ccff
test byte [rcx + 0x1c], bl
je 0x14004ccff
cmp byte [rcx + 0x19], 4
jb 0x14004ccff
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x21a
call fcn.140004c6c
mov rcx, qword [0x1401782b0]
mov rax, qword [rbp + 0x58]
mov r12, qword [rbp + 0x90]
test r12, r12
jne 0x14004cd18
mov esi, 0x80004003
mov r14b, r13b
jmp 0x14004cffa
test rax, rax
je 0x14004cd0b
and qword [r12], r13
lea rcx, [0x140179190]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x30], bl
cmp qword [r14 + 0x10], r13
jne 0x14004cd44
mov esi, 0x8078000a
mov r14b, bl
jmp 0x14004cff3
test rdi, rdi
cmove rdi, qword [r14 + 0x10]
cmp byte [r14 + 0x18], r13b
je 0x14004cd9e
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x14004cd91
test byte [rcx + 0x1c], bl
je 0x14004cd91
cmp byte [rcx + 0x19], 2
jb 0x14004cd91
mov eax, dword [r14 + 8]
lea r8, [0x140152588]
mov r9d, dword [r14 + 0x38]
mov edx, 0x21b
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.1400103bc
mov rcx, qword [0x1401782b0]
mov esi, 0x80780017
mov r14b, bl
jmp 0x14004cffa
lea rcx, [rbp - 0x20]
call fcn.140051a94
mov esi, eax
test eax, eax
jns 0x14004cdf6
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14004cdea
test byte [rcx + 0x1c], bl
je 0x14004cdea
cmp byte [rcx + 0x19], 2
jb 0x14004cdea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x21c
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
mov r15, qword [rbp - 0x20]
mov r14b, bl
jmp 0x14004d001
mov r15, qword [rbp - 0x20]
lea r13, [r15 + 0x88]
mov rax, qword [r13]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r13
call rbx
mov rdx, rdi
mov rcx, r15
call fcn.140005b20
mov rdx, qword [rbp + 0x80]
mov rcx, r15
call fcn.140005708
mov esi, eax
test eax, eax
js 0x14004cfeb
mov rax, qword [r13]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x14014cce0]
lea r8, [rbp - 0x28]
mov rcx, r13
lea rdx, [0x140162038]
call rbx
mov esi, eax
test eax, eax
jns 0x14004ceac
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14004ce9f
test byte [rcx + 0x1c], 1
je 0x14004ce9f
cmp byte [rcx + 0x19], 2
jb 0x14004ce9f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x21d
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
mov r13, qword [rbp - 0x10]
mov r14b, byte [rbp - 0x30]
jmp 0x14004d001
mov rax, qword [rbp + 0x48]
lea r8, [rbp - 0x20]
mov r9, qword [rbp + 0x58]
mov rdx, r14
mov rcx, r15
movups xmm0, xmmword [rax]
mov eax, dword [rbp + 0x88]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x70]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x78]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140071f8c
mov esi, eax
test eax, eax
js 0x14004cfeb
and qword [rsp + 0x28], 0
lea r8, [0x140073ed0]
and dword [rsp + 0x20], 0
mov r9, r15
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
jne 0x14004cf76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14004cf63
test byte [rcx + 0x1c], 1
je 0x14004cf63
cmp byte [rcx + 0x19], 2
jb 0x14004cf63
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x21e
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
jmp 0x14004cea3
cmp qword [r14 + 0x28], 0
mov byte [r14 + 0x18], 1
jne 0x14004cf89
cmp qword [r14 + 0x30], 0
je 0x14004cfa1
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x2bf2
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008624c
mov rdi, qword [rbp - 0x28]
mov qword [r14 + 0x28], r15
xor r15d, r15d
mov qword [r14 + 0x30], rdi
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, rdi
call rbx
mov rax, qword [rbp - 0x28]
lea rcx, [0x140179190]
and qword [rbp - 0x28], r15
mov dword [r14 + 0x38], 6
xor r14b, r14b
mov qword [r12], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14004cff3
mov r13, qword [rbp - 0x10]
mov r14b, byte [rbp - 0x30]
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14004d026
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, rdi
call rbx
mov rcx, qword [0x1401782b0]
test r13, r13
je 0x14004d03b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
test r15, r15
je 0x14004d063
lea rdi, [r15 + 0x88]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, rdi
call rbx
mov rcx, qword [0x1401782b0]
test esi, esi
jns 0x14004d097
cmp rcx, r12
je 0x14004d0bd
test byte [rcx + 0x1c], 1
je 0x14004d097
cmp byte [rcx + 0x19], 2
jb 0x14004d097
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x21f
mov r9d, esi
call fcn.140004c90
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14004d0bd
test byte [rcx + 0x1c], 1
je 0x14004d0bd
cmp byte [rcx + 0x19], 4
jb 0x14004d0bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x220
call fcn.140004c6c
test r14b, r14b
je 0x14004d0cf
lea rcx, [0x140179190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret