Function at 0x140043ea0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, qword [rbp + 0xb0]
xor edi, edi
and qword [rsp + 0x38], rdi
xor r12b, r12b
xor r13d, r13d
mov qword [rsp + 0x48], r9
mov r14, r8
mov byte [rsp + 0x31], r12b
mov rbx, rdx
mov qword [rsp + 0x40], rdi
mov rsi, rcx
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x140043f2e
test byte [rcx + 0x1c], 1
je 0x140043f2e
cmp byte [rcx + 0x19], 4
jb 0x140043f2e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156d68]
mov edx, 0xf9
call fcn.140004c10
mov rcx, qword [0x14017b048]
test r15, r15
jne 0x140043f3d
mov ebx, 0x80004003
jmp 0x14004423b
and qword [r15], rdi
lea rcx, [0x14017c300]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov r12b, 1
mov byte [rsp + 0x30], r12b
cmp qword [rsi + 0x10], rdi
jne 0x140043f6b
mov ebx, 0x8078000a
jmp 0x140044234
test r14, r14
cmove r14, qword [rsi + 0x10]
cmp byte [rsi + 0x18], dil
je 0x140043fc9
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x140043fbf
test byte [rcx + 0x1c], r12b
je 0x140043fbf
cmp byte [rcx + 0x19], 2
jb 0x140043fbf
mov eax, dword [rsi + 8]
lea r8, [0x140156d68]
mov r9d, dword [rsi + 0x38]
mov edx, 0xfa
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.140010290
mov rcx, qword [0x14017b048]
mov ebx, 0x80780017
jmp 0x140044242
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0xd0
call sub.msvcrt.dll_memset
mov rax, qword [r14]
lea r8, [rsp + 0x60]
movups xmm0, xmmword [rbx]
mov r9b, r12b
lea rdx, [rsp + 0x50]
mov rcx, r14
mov rax, qword [rax + 0x58]
movdqu xmmword [rsp + 0x50], xmm0
call qword [case.0x140005bb3.0]
mov ebx, eax
test eax, eax
js 0x140044234
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x31], r12b
call fcn.1400519fc
mov ebx, eax
test eax, eax
jns 0x140044072
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x140044068
test byte [rcx + 0x1c], r12b
je 0x140044068
cmp byte [rcx + 0x19], 2
jb 0x140044068
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156d68]
mov edx, 0xfb
mov r9d, eax
call fcn.140004c3c
mov rcx, qword [0x14017b048]
mov rdi, qword [rsp + 0x40]
jmp 0x140044242
mov rdi, qword [rsp + 0x40]
jmp 0x140044242
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 8]
call qword [case.0x140005bb3.0]
lea r12, [rdi + 8]
mov rdx, r14
mov rcx, r12
call fcn.140005b6c
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call fcn.140005738
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x14004422f
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
lea rdx, [0x140166468]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140005bb3.0]
mov ebx, eax
test eax, eax
jns 0x140044119
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14004410f
test byte [rcx + 0x1c], 1
je 0x14004410f
cmp byte [rcx + 0x19], 2
jb 0x14004410f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156d68]
mov edx, 0xfc
mov r9d, eax
call fcn.140004c3c
mov rcx, qword [0x14017b048]
mov r12b, byte [rsp + 0x30]
jmp 0x140044242
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.14005deb0
mov ebx, eax
test eax, eax
js 0x14004422f
mov qword [rsp + 0x28], r14
lea r8, [0x14005f1b0]
mov r9, rdi
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov r13, rax
test rax, rax
jne 0x1400441be
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x1400441ab
test byte [rcx + 0x1c], 1
je 0x1400441ab
cmp byte [rcx + 0x19], 2
jb 0x1400441ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156d68]
mov edx, 0xfd
mov r9d, eax
call fcn.140004c3c
mov rcx, qword [0x14017b048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14004410f
mov byte [rsi + 0x18], 1
cmp qword [rsi + 0x28], r14
jne 0x1400441ce
cmp qword [rsi + 0x30], r14
je 0x1400441e6
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x13fd
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.140087b08
mov rcx, qword [rsp + 0x38]
mov rdi, r14
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x30], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140005bb3.0]
mov rax, qword [rsp + 0x38]
lea rcx, [0x14017c300]
mov dword [rsi + 0x38], 3
mov r12b, r14b
mov qword [r15], rax
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
jmp 0x140044234
mov r12b, byte [rsp + 0x30]
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140044263
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [case.0x140005bb3.0]
mov rcx, qword [0x14017b048]
test r13, r13
je 0x14004427e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
test rdi, rdi
je 0x14004429a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140005bb3.0]
mov rcx, qword [0x14017b048]
cmp byte [rsp + 0x31], 0
je 0x1400442b2
lea rcx, [rsp + 0x60]
call fcn.140099d7c
mov rcx, qword [0x14017b048]
test ebx, ebx
jns 0x1400442e6
cmp rcx, r15
je 0x14004430c
test byte [rcx + 0x1c], 1
je 0x1400442e6
cmp byte [rcx + 0x19], 2
jb 0x1400442e6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156d68]
mov edx, 0xfe
mov r9d, ebx
call fcn.140004c3c
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x14004430c
test byte [rcx + 0x1c], 1
je 0x14004430c
cmp byte [rcx + 0x19], 4
jb 0x14004430c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156d68]
mov edx, 0xff
call fcn.140004c10
test r12b, r12b
je 0x140044324
lea rcx, [0x14017c300]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14014bb60
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret