Function at 0x14005f228
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
and qword [rbp - 0x10], 0
mov r12, r9
xor r14d, r14d
mov r13d, r8d
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005f295
test byte [rcx + 0x1c], 1
je 0x14005f295
cmp byte [rcx + 0x19], 4
jb 0x14005f295
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x18c
call fcn.14001dd24
lea rcx, [rbp - 8]
call fcn.140067124
mov ebx, eax
test eax, eax
jns 0x14005f2e6
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14005f2dd
test byte [rcx + 0x1c], 1
je 0x14005f2dd
cmp byte [rcx + 0x19], 2
jb 0x14005f2dd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x18d
mov r9d, eax
call fcn.14001de24
mov rdi, qword [rbp - 8]
jmp 0x14005f4af
mov rdi, qword [rbp - 8]
jmp 0x14005f4b6
mov rdi, qword [rbp - 8]
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.ole32.dll_CoTaskMemAlloc]
mov rdx, qword [rbp + 0x78]
lea r15, [rdi + 8]
mov rcx, r15
call fcn.14001eb1c
mov rdx, qword [rbp + 0x80]
mov rcx, r15
call fcn.14001e718
mov ebx, eax
test eax, eax
js 0x14005f4a8
mov rax, qword [rdi]
lea r8, [rbp - 0x10]
lea rdx, [0x140002ee0]
mov rcx, rdi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x14005f37d
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005f4b6
test byte [rcx + 0x1c], 1
je 0x14005f4b6
cmp byte [rcx + 0x19], 2
jb 0x14005f4b6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x18e
mov r9d, eax
call fcn.14001de24
jmp 0x14005f4af
mov eax, dword [rbp + 0x88]
mov cl, byte [rbp + 0x70]
mov r9, qword [rbp + 0x38]
mov r8, qword [rbp + 0x68]
mov dword [rsp + 0x50], eax
mov rax, qword [rbp + 0x60]
and cl, 1
mov rdx, rsi
mov byte [rsp + 0x48], cl
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
call fcn.14006cf84
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x14005f4a8
lea r8, [0x140071384]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
jne 0x14005f452
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14005f442
test byte [rcx + 0x1c], 1
je 0x14005f442
cmp byte [rcx + 0x19], 2
jb 0x14005f442
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x18f
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14005f4b6
mov byte [rsi + 0x18], 1
cmp qword [rsi + 0x28], r12
jne 0x14005f462
cmp qword [rsi + 0x30], r12
je 0x14005f47a
lea r8, [0x140005878]
lea rcx, [0x140005730]
mov edx, 0x1eff
call fcn.1400a8be8
mov rcx, qword [rbp - 0x10]
mov qword [rsi + 0x28], r15
mov rdi, r12
mov qword [rsi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + reloc.ole32.dll_CoTaskMemAlloc]
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, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x14005f4cf
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + CoRevokeClassObject]
mov rcx, qword [0x14017d3a8]
test r14, r14
je 0x14005f4e4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
test rdi, rdi
je 0x14005f4f9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + CoRevokeClassObject]
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14005f51f
test byte [rcx + 0x1c], 1
je 0x14005f51f
cmp byte [rcx + 0x19], 4
jb 0x14005f51f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x190
call fcn.14001dd24
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