Function at 0x140056e50
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, qword [rbp + 0xd0]
lea rax, [0x14014cf30]
xor r12d, r12d
mov qword [rsp + 0x48], r9
mov rbx, rdx
mov qword [rsp + 0x50], rax
lea rdx, [0x1401746f0]
mov byte [rsp + 0x60], r12b
mov qword [rsp + 0x58], rdx
mov r14, r8
mov rsi, rcx
mov byte [rsp + 0x30], r12b
mov edi, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov r13d, r12d
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140056f03
test byte [rcx + 0x1c], 1
je 0x140056f03
cmp byte [rcx + 0x19], 4
jb 0x140056f03
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0xf9
call fcn.14000c328
mov rcx, qword [0x140173048]
lea rdx, [0x1401746f0]
test r15, r15
jne 0x140056f15
mov ebx, 0x80004003
mov r12b, dil
jmp 0x140057236
mov rcx, rdx
mov qword [r15], r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov byte [rsp + 0x60], 1
cmp qword [rsi + 0x10], r12
jne 0x140056f3f
mov ebx, 0x8078000a
mov r12b, dil
jmp 0x14005722f
test r14, r14
cmove r14, qword [rsi + 0x10]
cmp byte [rsi + 0x18], r12b
je 0x140056fa0
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
cmp rcx, r15
je 0x140056f93
test byte [rcx + 0x1c], 1
je 0x140056f93
cmp byte [rcx + 0x19], 2
jb 0x140056f93
mov eax, dword [rsi + 8]
lea r8, [0x140153368]
mov r9d, dword [rsi + 0x38]
mov edx, 0xfa
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14004099c
mov rcx, qword [0x140173048]
mov ebx, 0x80780017
mov r12b, dil
jmp 0x14005723d
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xd0
call sub.msvcrt.dll_memset
movups xmm0, xmmword [rbx]
mov rax, qword [r14]
movdqu xmmword [rsp + 0x70], xmm0
movabs r10, 0xf81d3e6538d5fb70
mov rax, qword [rax + 0x58]
lea r8, [rbp - 0x80]
mov r9b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
js 0x14005722a
mov r12b, 1
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x30], r12b
call fcn.1400467c8
mov ebx, eax
test eax, eax
jns 0x140057054
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
cmp rcx, r15
je 0x14005704a
test byte [rcx + 0x1c], r12b
je 0x14005704a
cmp byte [rcx + 0x19], 2
jb 0x14005704a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0xfb
mov r9d, eax
call fcn.14000c354
mov rcx, qword [0x140173048]
mov rdi, qword [rsp + 0x40]
jmp 0x14005723d
mov rdi, qword [rsp + 0x40]
jmp 0x14005723d
mov rdi, qword [rsp + 0x40]
mov rax, qword [rdi]
movabs r10, 0xfd41b67356dad870
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [vtable.H_MA8HI.0]
lea r12, [rdi + 8]
mov rdx, r14
mov rcx, r12
call fcn.14000bcb8
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call fcn.14000bd18
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x14005722a
mov rax, qword [rdi]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rsp + 0x38]
lea rdx, [0x140162d38]
mov rcx, rdi
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
jns 0x14005710f
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
cmp rcx, r15
je 0x140057105
test byte [rcx + 0x1c], 1
je 0x140057105
cmp byte [rcx + 0x19], 2
jb 0x140057105
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0xfc
mov r9d, eax
call fcn.14000c354
mov rcx, qword [0x140173048]
mov r12b, byte [rsp + 0x30]
jmp 0x14005723d
lea r8, [rbp - 0x80]
mov rdx, rsi
mov rcx, rdi
call fcn.1400622d8
mov ebx, eax
test eax, eax
js 0x14005722a
mov qword [rsp + 0x28], r14
lea r8, [0x140061810]
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 0x1400571bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
cmp rcx, r15
je 0x1400571a0
test byte [rcx + 0x1c], 1
je 0x1400571a0
cmp byte [rcx + 0x19], 2
jb 0x1400571a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0xfd
mov r9d, eax
call fcn.14000c47c
mov rcx, qword [0x140173048]
mov r12b, byte [rsp + 0x30]
test ebx, ebx
jle 0x14005723d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14005723d
cmp qword [rsi + 0x28], r14
lea r14, [rsi + 0x30]
mov byte [rsi + 0x18], 1
jne 0x1400571cf
cmp qword [r14], 0
je 0x1400571e7
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x13fd
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.1400906e0
mov rcx, qword [rsp + 0x38]
xor edi, edi
mov qword [rsi + 0x28], r12
mov qword [r14], rcx
mov rax, qword [rcx]
movabs r10, 0xfd41b67356dad870
mov rax, qword [rax + 8]
call qword [vtable.H_MA8HI.0]
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
and qword [rsp + 0x38], rdi
mov dword [rsi + 0x38], 3
mov qword [r15], rax
call fcn.140054cc4
mov r12b, byte [rsp + 0x30]
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140057268
mov rax, qword [rdx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
mov rcx, rdx
call qword [vtable.H_MA8HI.0]
mov rcx, qword [0x140173048]
test r13, r13
je 0x140057283
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test rdi, rdi
je 0x1400572a9
mov rax, qword [rdi]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
mov rcx, rdi
call qword [vtable.H_MA8HI.0]
mov rcx, qword [0x140173048]
test r12b, r12b
je 0x1400572be
lea rcx, [rbp - 0x80]
call fcn.1400a30ac
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x1400572f2
cmp rcx, r15
je 0x140057318
test byte [rcx + 0x1c], 1
je 0x1400572f2
cmp byte [rcx + 0x19], 2
jb 0x1400572f2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0xfe
mov r9d, ebx
call fcn.14000c354
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140057318
test byte [rcx + 0x1c], 1
je 0x140057318
cmp byte [rcx + 0x19], 4
jb 0x140057318
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0xff
call fcn.14000c328
lea rcx, [rsp + 0x50]
call fcn.140041bbc
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140007410
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret