Function at 0x14004d6d8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
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
and qword [rbp - 1], 0
mov r13, r9
and qword [rbp - 9], 0
mov r15, rcx
xor r12d, r12d
mov rcx, qword [0x1401782b0]
lea rbx, [0x1401782b0]
cmp rcx, rbx
je 0x14004d744
test byte [rcx + 0x1c], 1
je 0x14004d744
cmp byte [rcx + 0x19], 4
jb 0x14004d744
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x229
call fcn.140004c6c
lea rcx, [rbp - 1]
call fcn.140051cb4
mov esi, eax
test eax, eax
jns 0x14004d795
mov rcx, qword [0x1401782b0]
cmp rcx, rbx
je 0x14004d78c
test byte [rcx + 0x1c], 1
je 0x14004d78c
cmp byte [rcx + 0x19], 2
jb 0x14004d78c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x22a
mov r9d, eax
call fcn.140004c90
mov r14, qword [rbp - 1]
jmp 0x14004d9ed
mov r14, qword [rbp - 1]
jmp 0x14004d9f4
mov r14, qword [rbp - 1]
mov rax, qword [r14]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r14
call rbx
mov rdx, qword [rbp + 0xa7]
lea rdi, [r14 + 8]
mov rcx, rdi
call fcn.140005b20
mov rdx, qword [rbp + 0xaf]
mov rcx, rdi
call fcn.140005708
mov esi, eax
test eax, eax
js 0x14004d9ed
mov rax, qword [r14]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x14014cce0]
lea r8, [rbp - 9]
mov rcx, r14
lea rdx, [0x140162048]
call rbx
mov esi, eax
test eax, eax
jns 0x14004d834
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x14004d9fb
test byte [rcx + 0x1c], 1
je 0x14004d9fb
cmp byte [rcx + 0x19], 2
jb 0x14004d9fb
mov edx, 0x22b
jmp 0x14004d8e9
mov eax, dword [rbp + 0xc7]
mov rdx, r15
mov r9, qword [rbp + 0x4f]
mov rcx, r14
mov r8, qword [rbp + 0x97]
mov dword [rsp + 0x70], eax
mov rax, qword [rbp + 0xbf]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0xb7]
mov dword [rsp + 0x60], eax
mov eax, dword [rbp + 0x9f]
mov dword [rsp + 0x58], eax
mov rax, qword [rbp + 0x8f]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x87]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x67]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x57]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
call fcn.14007b018
mov esi, eax
test eax, eax
jns 0x14004d908
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x14004d9fb
test byte [rcx + 0x1c], 1
je 0x14004d9fb
cmp byte [rcx + 0x19], 2
jb 0x14004d9fb
mov edx, 0x22c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
jmp 0x14004d9fb
and qword [rsp + 0x28], r12
lea r8, [0x14005b5f0]
and dword [rsp + 0x20], r12d
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, rax
test rax, rax
jne 0x14004d984
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x14004d974
test byte [rcx + 0x1c], 1
je 0x14004d974
cmp byte [rcx + 0x19], 2
jb 0x14004d974
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x22d
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
jmp 0x14004d9fb
cmp qword [r15 + 0x28], 0
mov byte [r15 + 0x18], 1
jne 0x14004d997
cmp qword [r15 + 0x30], 0
je 0x14004d9af
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x2d9f
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008624c
mov qword [r15 + 0x28], rdi
xor r14d, r14d
mov rdi, qword [rbp - 9]
mov qword [r15 + 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 - 9]
mov rcx, qword [rbp + 0xcf]
and qword [rbp - 9], r14
mov dword [r15 + 0x38], 2
mov qword [rcx], rax
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x14004da20
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 0x14004da35
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
test r14, r14
je 0x14004da56
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r14
call rbx
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14004da7c
test byte [rcx + 0x1c], 1
je 0x14004da7c
cmp byte [rcx + 0x19], 4
jb 0x14004da7c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152588]
mov edx, 0x22e
call fcn.140004c6c
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