Function at 0x140044410
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f]
sub rsp, 0x90
xor esi, esi
mov rbx, r9
mov r13b, sil
mov qword [rbp - 0x11], rsi
mov r15d, esi
mov qword [rbp - 0x19], rsi
mov r12d, esi
mov qword [rbp - 0x21], rsi
mov byte [rbp - 0x28], sil
mov r14, rcx
mov qword [rbp - 9], rsi
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140044499
test byte [rcx + 0x1c], 1
je 0x140044499
cmp byte [rcx + 0x19], 4
jb 0x140044499
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x10a
call fcn.140004c6c
mov rcx, qword [0x1401782b0]
test rbx, rbx
jne 0x1400444a8
mov esi, 0x80004003
jmp 0x140044931
mov r12, qword [rbp + 0x67]
test r12, r12
jne 0x1400444be
mov esi, 0x80004003
mov r12, r15
jmp 0x140044931
cmp qword [rbp + 0x77], rsi
je 0x1400444b1
mov r13, qword [rbp + 0xaf]
test r13, r13
jne 0x1400444e0
mov r12, r15
mov esi, 0x80004003
mov r13b, r12b
jmp 0x140044931
lea rcx, [0x140179190]
mov qword [r13], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x29], 1
cmp qword [r14 + 0x10], rsi
jne 0x140044508
mov esi, 0x8078000a
mov r12, r15
jmp 0x140044926
mov rdi, qword [rbp + 0x97]
test rdi, rdi
cmove rdi, qword [r14 + 0x10]
cmp byte [r14 + 0x18], sil
je 0x140044571
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140044564
test byte [rcx + 0x1c], 1
je 0x140044564
cmp byte [rcx + 0x19], 2
jb 0x140044564
mov eax, dword [r14 + 8]
lea r8, [0x140152588]
mov r9d, dword [r14 + 0x38]
mov edx, 0x10b
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.1400103bc
mov rcx, qword [0x1401782b0]
mov esi, 0x80780017
mov r12, r15
jmp 0x14004492d
lea rcx, [rbp - 0x11]
call fcn.140050cd0
mov esi, eax
test eax, eax
jns 0x1400445cf
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x1400445be
test byte [rcx + 0x1c], 1
je 0x1400445be
cmp byte [rcx + 0x19], 2
jb 0x1400445be
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x10c
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
mov r15, qword [rbp - 0x11]
mov r12, qword [rbp - 0x21]
mov r13b, byte [rbp - 0x29]
jmp 0x140044938
mov r15, qword [rbp - 0x11]
mov rax, qword [r15]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r15
call rbx
lea rbx, [r15 + 0x10]
mov rdx, rdi
mov rcx, rbx
mov qword [rbp - 0x11], rbx
call fcn.140005b20
mov rdx, qword [rbp + 0x9f]
mov rcx, rbx
call fcn.140005708
xor edi, edi
mov esi, eax
test eax, eax
js 0x140044923
mov rax, qword [r15]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x14014cce0]
lea r8, [rbp - 0x19]
mov rcx, r15
lea rdx, [0x140162068]
call rbx
mov esi, eax
test eax, eax
jns 0x140044681
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x140044679
test byte [rcx + 0x1c], 1
je 0x140044679
cmp byte [rcx + 0x19], 2
jb 0x140044679
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x10d
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
mov r12, rdi
jmp 0x1400445c6
lea rdx, [rbp - 9]
mov rcx, r12
call fcn.140086e28
mov r12, qword [rbp - 9]
mov esi, eax
test eax, eax
jns 0x1400446df
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x140044904
test byte [rcx + 0x1c], 1
je 0x140044904
cmp byte [rcx + 0x19], 2
jb 0x140044904
mov edx, 0x10e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov r9d, eax
call fcn.140004c90
jmp 0x1400448fd
mov rax, qword [r14]
mov rbx, qword [rax + 0x68]
mov rcx, rbx
call qword [0x14014cce0]
lea r9, [rbp - 0x28]
mov qword [rsp + 0x20], rdi
mov r8d, 5
mov rdx, r12
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
jns 0x14004474b
cmp eax, 0x80780057
jne 0x14004483a
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14004474b
test byte [rcx + 0x1c], 1
je 0x14004474b
cmp byte [rcx + 0x19], 4
jb 0x14004474b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x10f
call fcn.140004c6c
mov rax, qword [rbp + 0x4f]
lea r8, [rbp - 9]
mov r9d, dword [rbp + 0x57]
mov rdx, r14
mov rcx, r15
movups xmm0, xmmword [rax]
mov eax, dword [rbp + 0xa7]
mov dword [rsp + 0x58], eax
mov al, byte [rbp + 0x8f]
mov byte [rsp + 0x50], al
mov eax, dword [rbp + 0x87]
mov dword [rsp + 0x48], eax
mov al, byte [rbp + 0x7f]
mov byte [rsp + 0x40], al
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x38], rax
mov al, byte [rbp + 0x6f]
mov byte [rsp + 0x30], al
mov rax, qword [rbp + 0x5f]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
movdqu xmmword [rbp - 9], xmm0
call fcn.14006ddf0
mov esi, eax
test eax, eax
js 0x1400448f6
mov qword [rsp + 0x28], rdi
lea r8, [0x1400701b0]
mov r9, r15
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x21], rax
test rax, rax
jne 0x14004486f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x140044827
test byte [rcx + 0x1c], 1
je 0x140044827
cmp byte [rcx + 0x19], 2
jb 0x140044827
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, VarUI4FromDisp
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
jmp 0x140044904
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x140044904
test byte [rcx + 0x1c], 1
je 0x140044904
cmp byte [rcx + 0x19], 2
jb 0x140044904
mov edx, 0x110
jmp 0x1400446c7
mov byte [r14 + 0x18], 1
cmp qword [r14 + 0x28], rdi
jne 0x140044880
cmp qword [r14 + 0x30], rdi
je 0x140044898
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x163c
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008624c
mov rax, qword [rbp - 0x11]
mov r15, rdi
mov rdi, qword [rbp - 0x19]
mov qword [r14 + 0x28], rax
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 - 0x19]
lea rcx, [0x140179190]
xor edi, edi
mov dword [r14 + 0x38], 5
mov qword [r13], rax
mov r13b, dil
mov qword [rbp - 0x19], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
jmp 0x140044908
lea r14, [0x1401782b0]
mov rcx, qword [0x1401782b0]
mov r13b, byte [rbp - 0x29]
test r12, r12
je 0x14004491d
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
mov r12, qword [rbp - 0x21]
jmp 0x140044938
mov r12, rdi
mov rcx, qword [0x1401782b0]
mov r13b, byte [rbp - 0x29]
lea r14, [0x1401782b0]
mov rdi, qword [rbp - 0x19]
test rdi, rdi
je 0x14004495d
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 0x140044972
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
test r15, r15
je 0x140044993
mov rax, qword [r15]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r15
call rbx
mov rcx, qword [0x1401782b0]
test esi, esi
jns 0x1400449c7
cmp rcx, r14
je 0x1400449ed
test byte [rcx + 0x1c], 1
je 0x1400449c7
cmp byte [rcx + 0x19], 2
jb 0x1400449c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, VarUI4FromDisp
mov r9d, esi
call fcn.140004c90
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x1400449ed
test byte [rcx + 0x1c], 1
je 0x1400449ed
cmp byte [rcx + 0x19], 4
jb 0x1400449ed
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, VarUI4FromDisp
call fcn.140004c6c
test r13b, r13b
je 0x1400449ff
lea rcx, [0x140179190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret