Function at 0x14004c184
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2f]
sub rsp, 0x90
and qword [rbp - 1], 0
mov r12, r9
and qword [rbp - 9], 0
mov r13d, r8d
xor r14d, r14d
mov rsi, rcx
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x14004c1f5
test byte [rcx + 0x1c], 1
je 0x14004c1f5
cmp byte [rcx + 0x19], 4
jb 0x14004c1f5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x22f
call fcn.140004c54
lea rcx, [rbp - 1]
call fcn.140050494
mov ebx, eax
test eax, eax
jns 0x14004c246
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14004c23d
test byte [rcx + 0x1c], 1
je 0x14004c23d
cmp byte [rcx + 0x19], 2
jb 0x14004c23d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x230
mov r9d, eax
call fcn.140004c78
mov rdi, qword [rbp - 1]
jmp 0x14004c483
mov rdi, qword [rbp - 1]
jmp 0x14004c48a
mov rdi, qword [rbp - 1]
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 8]
call qword [case.0x140005adb.0]
mov rdx, qword [rbp + 0x97]
lea r15, [rdi + 8]
mov rcx, r15
call fcn.140005a94
mov rdx, qword [rbp + 0x9f]
mov rcx, r15
call fcn.140005684
mov ebx, eax
test eax, eax
js 0x14004c47c
mov rax, qword [rdi]
lea r8, [rbp - 9]
lea rdx, [0x14015b1e8]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140005adb.0]
mov ebx, eax
test eax, eax
jns 0x14004c2ee
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x14004c48a
test byte [rcx + 0x1c], 1
je 0x14004c48a
cmp byte [rcx + 0x19], 2
jb 0x14004c48a
mov edx, 0x231
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov r9d, eax
call fcn.140004c78
jmp 0x14004c483
mov eax, dword [rbp + 0xb7]
mov rdx, rsi
mov r9, qword [rbp + 0x3f]
mov rcx, rdi
mov r8, qword [rbp + 0x87]
mov dword [rsp + 0x70], eax
mov rax, qword [rbp + 0xaf]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0xa7]
mov dword [rsp + 0x60], eax
mov eax, dword [rbp + 0x8f]
mov dword [rsp + 0x58], eax
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x67]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x5f]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x57]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
call fcn.1400788d4
xor r12d, r12d
mov ebx, eax
test eax, eax
jns 0x14004c3a3
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x14004c48a
test byte [rcx + 0x1c], 1
je 0x14004c48a
cmp byte [rcx + 0x19], 2
jb 0x14004c48a
mov edx, 0x232
jmp 0x14004c2d6
mov qword [rsp + 0x28], r12
lea r8, [0x140059e50]
mov r9, rdi
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
jne 0x14004c41f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x14004c40f
test byte [rcx + 0x1c], 1
je 0x14004c40f
cmp byte [rcx + 0x19], 2
jb 0x14004c40f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x233
mov r9d, eax
call fcn.140004c78
mov rcx, qword [0x140170048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14004c48a
mov byte [rsi + 0x18], 1
cmp qword [rsi + 0x28], r12
jne 0x14004c42f
cmp qword [rsi + 0x30], r12
je 0x14004c447
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x2dd1
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008388c
mov rcx, qword [rbp - 9]
mov rdi, r12
mov qword [rsi + 0x28], r15
mov qword [rsi + 0x30], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140005adb.0]
mov rax, qword [rbp - 9]
mov rcx, qword [rbp + 0xbf]
mov dword [rsi + 0x38], 2
mov qword [rbp - 9], r12
mov qword [rcx], rax
lea r15, [0x140170048]
mov rcx, qword [0x140170048]
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x14004c4aa
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [case.0x140005adb.0]
mov rcx, qword [0x140170048]
test r14, r14
je 0x14004c4bf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
test rdi, rdi
je 0x14004c4db
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140005adb.0]
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14004c501
test byte [rcx + 0x1c], 1
je 0x14004c501
cmp byte [rcx + 0x19], 4
jb 0x14004c501
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014bb48]
mov edx, 0x234
call fcn.140004c54
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret