Function at 0x140047bf0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 8], 0
mov r12, r9
and qword [rbp - 0x10], 0
mov r13d, r8d
xor r14d, r14d
mov rsi, rcx
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x140047c5d
test byte [rcx + 0x1c], 1
je 0x140047c5d
cmp byte [rcx + 0x19], 4
jb 0x140047c5d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0x18f
call fcn.140004b74
lea rcx, [rbp - 8]
call fcn.14004f8c4
mov ebx, eax
test eax, eax
jns 0x140047cae
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x140047ca5
test byte [rcx + 0x1c], 1
je 0x140047ca5
cmp byte [rcx + 0x19], 2
jb 0x140047ca5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0x190
mov r9d, eax
call fcn.140004b98
mov rdi, qword [rbp - 8]
jmp 0x140047e8c
mov rdi, qword [rbp - 8]
jmp 0x140047e93
mov rdi, qword [rbp - 8]
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 8]
call qword [case.0x1400059ff.0]
mov rdx, qword [rbp + 0x78]
lea r15, [rdi + 8]
mov rcx, r15
call fcn.1400059b8
mov rdx, qword [rbp + 0x80]
mov rcx, r15
call fcn.1400055a8
mov ebx, eax
test eax, eax
js 0x140047e85
mov rax, qword [rdi]
lea r8, [rbp - 0x10]
lea rdx, [0x14015be58]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400059ff.0]
mov ebx, eax
test eax, eax
jns 0x140047d53
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x140047e93
test byte [rcx + 0x1c], 1
je 0x140047e93
cmp byte [rcx + 0x19], 2
jb 0x140047e93
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0x191
mov r9d, eax
call fcn.140004b98
jmp 0x140047e8c
mov cl, byte [rbp + 0x70]
mov rdx, rsi
mov eax, dword [rbp + 0x88]
and cl, 1
mov r9, qword [rbp + 0x38]
mov r8, qword [rbp + 0x68]
mov dword [rsp + 0x58], eax
mov rax, qword [rbp + 0x60]
mov byte [rsp + 0x50], cl
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
call fcn.140055fa0
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x140047e85
mov qword [rsp + 0x28], r12
lea r8, [0x14005a2d0]
mov r9, rdi
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
jne 0x140047e28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x140047e18
test byte [rcx + 0x1c], 1
je 0x140047e18
cmp byte [rcx + 0x19], 2
jb 0x140047e18
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0x192
mov r9d, eax
call fcn.140004b98
mov rcx, qword [0x1401720a0]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140047e93
mov byte [rsi + 0x18], 1
cmp qword [rsi + 0x28], r12
jne 0x140047e38
cmp qword [rsi + 0x30], r12
je 0x140047e50
lea r8, str.m_pAsyncHelper__NULL__m_pAsyncRef__NULL
mov edx, 0x1f21
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008410c
mov rcx, qword [rbp - 0x10]
mov rdi, r12
mov qword [rsi + 0x28], r15
mov qword [rsi + 0x30], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400059ff.0]
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x90]
mov dword [rsi + 0x38], 2
mov qword [rbp - 0x10], r12
mov qword [rcx], rax
lea r15, [0x1401720a0]
mov rcx, qword [0x1401720a0]
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140047eb3
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [case.0x1400059ff.0]
mov rcx, qword [0x1401720a0]
test r14, r14
je 0x140047ec8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401720a0]
test rdi, rdi
je 0x140047ee4
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x1400059ff.0]
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x140047f0a
test byte [rcx + 0x1c], 1
je 0x140047f0a
cmp byte [rcx + 0x19], 4
jb 0x140047f0a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c7e8]
mov edx, 0x193
call fcn.140004b74
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret