Function at 0x14005b094
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
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
xor edi, edi
xor r13b, r13b
mov rbx, r8
and qword [rbp - 0x19], rdi
xor r14d, r14d
mov rsi, rcx
mov qword [rbp - 0x21], r14
mov qword [rbp - 9], rdi
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005b112
test byte [rcx + 0x1c], 1
je 0x14005b112
cmp byte [rcx + 0x19], 4
jb 0x14005b112
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x114
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
test rbx, rbx
jne 0x14005b121
mov ebx, 0x80004003
jmp 0x14005b41b
mov r12, qword [rbp + 0x67]
xor ebx, ebx
test r12, r12
je 0x14005b117
mov r15, qword [rbp + 0xa7]
test r15, r15
jne 0x14005b142
mov ebx, 0x80004003
jmp 0x14005b414
lea rcx, [0x14017e4d8]
mov qword [r15], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13b, 1
mov byte [rbp - 0x29], r13b
cmp qword [rsi + 0x10], rbx
jne 0x14005b169
mov ebx, 0x8078000a
jmp 0x14005b40d
mov r14, qword [rbp + 0x77]
test r14, r14
cmove r14, qword [rsi + 0x10]
cmp byte [rsi + 0x18], bl
je 0x14005b1cd
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005b1c0
test byte [rcx + 0x1c], 1
je 0x14005b1c0
cmp byte [rcx + 0x19], 2
jb 0x14005b1c0
mov eax, dword [rsi + 8]
mov r9d, dword [rsi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x115
mov dword [rsp + 0x20], eax
call fcn.1400285b4
mov rcx, qword [0x14017d3a8]
mov ebx, 0x80780017
mov r14, rdi
jmp 0x14005b41b
lea rcx, [rbp - 9]
call fcn.140066f58
mov ebx, eax
test eax, eax
jns 0x14005b227
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005b21a
test byte [rcx + 0x1c], 1
je 0x14005b21a
cmp byte [rcx + 0x19], 2
jb 0x14005b21a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x116
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
mov rdi, qword [rbp - 9]
mov r14, qword [rbp - 0x21]
jmp 0x14005b41b
mov rdi, qword [rbp - 9]
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.ole32.dll_CoTaskMemAlloc]
lea r13, [rdi + 8]
mov rdx, r14
mov rcx, r13
call fcn.14001eb1c
mov rdx, qword [rbp + 0x7f]
mov rcx, r13
call fcn.14001e718
mov ebx, eax
test eax, eax
js 0x14005b405
mov rax, qword [rdi]
lea r8, [rbp - 0x19]
lea rdx, [0x140002ef0]
mov rcx, rdi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x14005b2bd
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005b2b0
test byte [rcx + 0x1c], 1
je 0x14005b2b0
cmp byte [rcx + 0x19], 2
jb 0x14005b2b0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x117
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
mov r14, qword [rbp - 0x21]
mov r13b, byte [rbp - 0x29]
jmp 0x14005b41b
mov rax, qword [rbp + 0x4f]
mov r9, qword [rbp + 0x57]
lea r8, [rbp - 9]
mov rdx, rsi
mov rcx, rdi
movups xmm0, xmmword [rax]
mov eax, dword [rbp + 0x9f]
mov dword [rsp + 0x50], eax
mov al, byte [rbp + 0x97]
movdqu xmmword [rbp - 9], xmm0
mov byte [rsp + 0x48], al
mov al, byte [rbp + 0x8f]
mov byte [rsp + 0x40], al
mov al, byte [rbp + 0x87]
mov byte [rsp + 0x38], al
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x5f]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], eax
call fcn.14007d79c
mov ebx, eax
test eax, eax
js 0x14005b405
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140080788]
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
jne 0x14005b3a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005b390
test byte [rcx + 0x1c], 1
je 0x14005b390
cmp byte [rcx + 0x19], 2
jb 0x14005b390
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x118
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14005b2b4
cmp qword [rsi + 0x28], 0
mov byte [rsi + 0x18], 1
jne 0x14005b3b5
cmp qword [rsi + 0x30], 0
je 0x14005b3cd
lea r8, [0x140005878]
lea rcx, [0x140005730]
mov edx, 0x170e
call fcn.1400a8be8
mov rcx, qword [rbp - 0x19]
mov qword [rsi + 0x28], r13
xor edi, edi
mov qword [rsi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + reloc.ole32.dll_CoTaskMemAlloc]
mov rax, qword [rbp - 0x19]
and qword [rbp - 0x19], rdi
mov dword [rsi + 0x38], 4
lea rcx, [0x14017e4d8]
xor r13b, r13b
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14005b40d
mov r14, qword [rbp - 0x21]
mov r13b, byte [rbp - 0x29]
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
mov rdx, qword [rbp - 0x19]
test rdx, rdx
je 0x14005b434
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + CoRevokeClassObject]
mov rcx, qword [0x14017d3a8]
test r14, r14
je 0x14005b449
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
test rdi, rdi
je 0x14005b45e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + CoRevokeClassObject]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x14005b492
cmp rcx, r15
je 0x14005b4b8
test byte [rcx + 0x1c], 1
je 0x14005b492
cmp byte [rcx + 0x19], 2
jb 0x14005b492
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x119
mov r9d, ebx
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14005b4b8
test byte [rcx + 0x1c], 1
je 0x14005b4b8
cmp byte [rcx + 0x19], 4
jb 0x14005b4b8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x11a
call fcn.14001dd24
test r13b, r13b
je 0x14005b4ca
lea rcx, [0x14017e4d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret