Function at 0x140048b34
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 8], 0
mov r13, r9
and qword [rbp - 0x10], 0
mov r15, rcx
xor r12d, r12d
mov rcx, qword [0x1401782b0]
lea rbx, [0x1401782b0]
cmp rcx, rbx
je 0x140048b9c
test byte [rcx + 0x1c], 1
je 0x140048b9c
cmp byte [rcx + 0x19], 4
jb 0x140048b9c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x18c
call fcn.140004c6c
lea rcx, [rbp - 8]
call fcn.1400510cc
mov esi, eax
test eax, eax
jns 0x140048bed
mov rcx, qword [0x1401782b0]
cmp rcx, rbx
je 0x140048be4
test byte [rcx + 0x1c], 1
je 0x140048be4
cmp byte [rcx + 0x19], 2
jb 0x140048be4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x18d
mov r9d, eax
call fcn.140004c90
mov r14, qword [rbp - 8]
jmp 0x140048de6
mov r14, qword [rbp - 8]
jmp 0x140048ded
mov r14, qword [rbp - 8]
mov rax, qword [r14]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r14
call rbx
mov rdx, qword [rbp + 0x88]
lea rdi, [r14 + 8]
mov rcx, rdi
call fcn.140005b20
mov rdx, qword [rbp + 0x90]
mov rcx, rdi
call fcn.140005708
mov esi, eax
test eax, eax
js 0x140048de6
mov rax, qword [r14]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x14014cce0]
lea r8, [rbp - 0x10]
mov rcx, r14
lea rdx, [0x140162048]
call rbx
mov esi, eax
test eax, eax
jns 0x140048ca6
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140048df4
test byte [rcx + 0x1c], 1
je 0x140048df4
cmp byte [rcx + 0x19], 2
jb 0x140048df4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x18e
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
jmp 0x140048df4
mov cl, byte [rbp + 0x80]
mov rdx, r15
mov eax, dword [rbp + 0x98]
and cl, 1
mov r9, qword [rbp + 0x48]
mov r8, qword [rbp + 0x78]
mov dword [rsp + 0x58], eax
mov rax, qword [rbp + 0x70]
mov byte [rsp + 0x50], cl
mov rcx, r14
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x50]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
call fcn.1400572b0
mov esi, eax
test eax, eax
js 0x140048de6
and qword [rsp + 0x28], r12
lea r8, [0x14005b5f0]
and dword [rsp + 0x20], r12d
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, rax
test rax, rax
jne 0x140048d7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140048d6d
test byte [rcx + 0x1c], 1
je 0x140048d6d
cmp byte [rcx + 0x19], 2
jb 0x140048d6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x18f
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
jmp 0x140048df4
cmp qword [r15 + 0x28], 0
mov byte [r15 + 0x18], 1
jne 0x140048d90
cmp qword [r15 + 0x30], 0
je 0x140048da8
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x1eff
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008624c
mov qword [r15 + 0x28], rdi
xor r14d, r14d
mov rdi, qword [rbp - 0x10]
mov qword [r15 + 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 - 0x10]
mov rcx, qword [rbp + 0xa0]
and qword [rbp - 0x10], r14
mov dword [r15 + 0x38], 2
mov qword [rcx], rax
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
mov rdi, qword [rbp - 0x10]
test rdi, rdi
je 0x140048e19
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 r12, r12
je 0x140048e2e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
test r14, r14
je 0x140048e4f
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r14
call rbx
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x140048e75
test byte [rcx + 0x1c], 1
je 0x140048e75
cmp byte [rcx + 0x19], 4
jb 0x140048e75
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x190
call fcn.140004c6c
mov eax, esi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret