Function at 0x140055140
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 [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, qword [rbp + 0xb0]
xor esi, esi
and qword [rsp + 0x38], rsi
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], rsi
mov rdi, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400551ce
test byte [rcx + 0x1c], 1
je 0x1400551ce
cmp byte [rcx + 0x19], 4
jb 0x1400551ce
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aeb8]
mov edx, 0xf9
call fcn.140006b98
mov rcx, qword [0x14017a048]
test r15, r15
jne 0x1400551dd
mov ebx, 0x80004003
jmp 0x14005550b
and qword [r15], rsi
lea rcx, [0x14017b300]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov r12b, 1
mov byte [rsp + 0x30], r12b
cmp qword [rdi + 0x10], rsi
jne 0x14005520b
mov ebx, 0x8078000a
jmp 0x140055504
test r14, r14
cmove r14, qword [rdi + 0x10]
cmp byte [rdi + 0x18], sil
je 0x140055269
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x14005525f
test byte [rcx + 0x1c], r12b
je 0x14005525f
cmp byte [rcx + 0x19], 2
jb 0x14005525f
mov eax, dword [rdi + 8]
lea r8, [0x14015aeb8]
mov r9d, dword [rdi + 0x38]
mov edx, 0xfa
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14003dbf0
mov rcx, qword [0x14017a048]
mov ebx, 0x80780017
jmp 0x140055512
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0xd0
call sub.msvcrt.dll_memset
movups xmm0, xmmword [rbx]
mov rax, qword [r14]
movdqu xmmword [rsp + 0x50], xmm0
movabs r10, 0xf81d3e6538d5fb70
mov rax, qword [rax + 0x58]
lea r8, [rsp + 0x60]
mov r9b, r12b
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
js 0x140055504
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x31], r12b
call fcn.1400441f4
mov ebx, eax
test eax, eax
jns 0x14005531c
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x140055312
test byte [rcx + 0x1c], r12b
je 0x140055312
cmp byte [rcx + 0x19], 2
jb 0x140055312
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aeb8]
mov edx, 0xfb
mov r9d, eax
call fcn.140006bc4
mov rcx, qword [0x14017a048]
mov rsi, qword [rsp + 0x40]
jmp 0x140055512
mov rsi, qword [rsp + 0x40]
jmp 0x140055512
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsi]
movabs r10, 0xfd41b67356dad870
mov rax, qword [rax + 8]
mov rcx, rsi
call qword [vtable.H_MA8HI.0]
lea r12, [rsi + 8]
mov rdx, r14
mov rcx, r12
call fcn.140006528
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call fcn.140006588
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x1400554ff
mov rax, qword [rsi]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rsp + 0x38]
lea rdx, [0x14016a4d8]
mov rcx, rsi
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
jns 0x1400553d7
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x1400553cd
test byte [rcx + 0x1c], 1
je 0x1400553cd
cmp byte [rcx + 0x19], 2
jb 0x1400553cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aeb8]
mov edx, 0xfc
mov r9d, eax
call fcn.140006bc4
mov rcx, qword [0x14017a048]
mov r12b, byte [rsp + 0x30]
jmp 0x140055512
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
call fcn.140060c50
mov ebx, eax
test eax, eax
js 0x1400554ff
mov qword [rsp + 0x28], r14
lea r8, [0x140060180]
mov r9, rsi
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 0x140055484
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rcx, r15
je 0x140055469
test byte [rcx + 0x1c], 1
je 0x140055469
cmp byte [rcx + 0x19], 2
jb 0x140055469
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aeb8]
mov edx, 0xfd
mov r9d, eax
call fcn.140006cec
mov rcx, qword [0x14017a048]
mov r12b, byte [rsp + 0x30]
test ebx, ebx
jle 0x140055512
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140055512
mov byte [rdi + 0x18], 1
cmp qword [rdi + 0x28], r14
jne 0x140055494
cmp qword [rdi + 0x30], r14
je 0x1400554ac
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x13fd
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008ac24
mov rcx, qword [rsp + 0x38]
mov rsi, r14
mov qword [rdi + 0x28], r12
mov qword [rdi + 0x30], 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, [0x14017b300]
mov dword [rdi + 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 0x140055504
mov r12b, byte [rsp + 0x30]
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14005553d
mov rax, qword [rdx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
mov rcx, rdx
call qword [vtable.H_MA8HI.0]
mov rcx, qword [0x14017a048]
test r13, r13
je 0x140055558
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test rsi, rsi
je 0x14005557e
mov rax, qword [rsi]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
mov rcx, rsi
call qword [vtable.H_MA8HI.0]
mov rcx, qword [0x14017a048]
cmp byte [rsp + 0x31], 0
je 0x140055596
lea rcx, [rsp + 0x60]
call fcn.14009dfe0
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x1400555ca
cmp rcx, r15
je 0x1400555f0
test byte [rcx + 0x1c], 1
je 0x1400555ca
cmp byte [rcx + 0x19], 2
jb 0x1400555ca
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aeb8]
mov edx, 0xfe
mov r9d, ebx
call fcn.140006bc4
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x1400555f0
test byte [rcx + 0x1c], 1
je 0x1400555f0
cmp byte [rcx + 0x19], 4
jb 0x1400555f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015aeb8]
mov edx, 0xff
call fcn.140006b98
test r12b, r12b
je 0x140055608
lea rcx, [0x14017b300]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140001d90
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret