Function at 0x140056c10
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 [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, qword [rbp + 0xd0]
lea rax, [0x140144f30]
xor r12d, r12d
mov qword [rsp + 0x48], r9
mov rbx, rdx
mov qword [rsp + 0x50], rax
lea rdx, [0x14016b200]
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 [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x140056cc3
test byte [rcx + 0x1c], 1
je 0x140056cc3
cmp byte [rcx + 0x19], 4
jb 0x140056cc3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0xf9
call fcn.14000c0e8
mov rcx, qword [0x14016a048]
lea rdx, [0x14016b200]
test r15, r15
jne 0x140056cd5
mov ebx, 0x80004003
mov r12b, dil
jmp 0x140056ff6
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 0x140056cff
mov ebx, 0x8078000a
mov r12b, dil
jmp 0x140056fef
test r14, r14
cmove r14, qword [rsi + 0x10]
cmp byte [rsi + 0x18], r12b
je 0x140056d60
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rcx, r15
je 0x140056d53
test byte [rcx + 0x1c], 1
je 0x140056d53
cmp byte [rcx + 0x19], 2
jb 0x140056d53
mov eax, dword [rsi + 8]
lea r8, [0x14014b118]
mov r9d, dword [rsi + 0x38]
mov edx, 0xfa
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14004075c
mov rcx, qword [0x14016a048]
mov ebx, 0x80780017
mov r12b, dil
jmp 0x140056ffd
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 0x140056fea
mov r12b, 1
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x30], r12b
call fcn.140046588
mov ebx, eax
test eax, eax
jns 0x140056e14
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rcx, r15
je 0x140056e0a
test byte [rcx + 0x1c], r12b
je 0x140056e0a
cmp byte [rcx + 0x19], 2
jb 0x140056e0a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0xfb
mov r9d, eax
call fcn.14000c114
mov rcx, qword [0x14016a048]
mov rdi, qword [rsp + 0x40]
jmp 0x140056ffd
mov rdi, qword [rsp + 0x40]
jmp 0x140056ffd
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.14000ba78
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call fcn.14000bad8
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x140056fea
mov rax, qword [rdi]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rsp + 0x38]
lea rdx, [0x14015a668]
mov rcx, rdi
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
jns 0x140056ecf
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rcx, r15
je 0x140056ec5
test byte [rcx + 0x1c], 1
je 0x140056ec5
cmp byte [rcx + 0x19], 2
jb 0x140056ec5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0xfc
mov r9d, eax
call fcn.14000c114
mov rcx, qword [0x14016a048]
mov r12b, byte [rsp + 0x30]
jmp 0x140056ffd
lea r8, [rbp - 0x80]
mov rdx, rsi
mov rcx, rdi
call fcn.140062098
mov ebx, eax
test eax, eax
js 0x140056fea
mov qword [rsp + 0x28], r14
lea r8, [0x1400615d0]
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 0x140056f7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rcx, r15
je 0x140056f60
test byte [rcx + 0x1c], 1
je 0x140056f60
cmp byte [rcx + 0x19], 2
jb 0x140056f60
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0xfd
mov r9d, eax
call fcn.14000c23c
mov rcx, qword [0x14016a048]
mov r12b, byte [rsp + 0x30]
test ebx, ebx
jle 0x140056ffd
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140056ffd
cmp qword [rsi + 0x28], r14
lea r14, [rsi + 0x30]
mov byte [rsi + 0x18], 1
jne 0x140056f8f
cmp qword [r14], 0
je 0x140056fa7
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x13fd
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.140088f60
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.140054a84
mov r12b, byte [rsp + 0x30]
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140057028
mov rax, qword [rdx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
mov rcx, rdx
call qword [vtable.H_MA8HI.0]
mov rcx, qword [0x14016a048]
test r13, r13
je 0x140057043
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test rdi, rdi
je 0x140057069
mov rax, qword [rdi]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
mov rcx, rdi
call qword [vtable.H_MA8HI.0]
mov rcx, qword [0x14016a048]
test r12b, r12b
je 0x14005707e
lea rcx, [rbp - 0x80]
call fcn.14009b92c
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x1400570b2
cmp rcx, r15
je 0x1400570d8
test byte [rcx + 0x1c], 1
je 0x1400570b2
cmp byte [rcx + 0x19], 2
jb 0x1400570b2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0xfe
mov r9d, ebx
call fcn.14000c114
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400570d8
test byte [rcx + 0x1c], 1
je 0x1400570d8
cmp byte [rcx + 0x19], 4
jb 0x1400570d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0xff
call fcn.14000c0e8
lea rcx, [rsp + 0x50]
call fcn.14004197c
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret