Function at 0x140059834
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0xa8]
mov r15, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
xor ebx, ebx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r9
mov r13, r8
mov r14, rdx
mov rdi, rcx
mov byte [rsp + 0x41], bl
mov esi, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400598d5
test byte [rcx + 0x1c], 1
je 0x1400598d5
cmp byte [rcx + 0x19], 4
jb 0x1400598d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xeb
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
test r15, r15
jne 0x1400598ed
mov ebx, 0x80004003
mov r13, rsi
mov dil, sil
mov r14b, sil
jmp 0x140059c6f
movups xmm0, xmmword [0x14000ab48]
movdqu xmmword [r15], xmm0
test r12, r12
jne 0x140059911
mov ebx, 0x80004003
mov r13, rsi
mov dil, sil
mov r14b, sil
jmp 0x140059c68
lea rcx, [0x14017e4d8]
mov qword [r12], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
mov byte [rsp + 0x40], 1
call fcn.1400630f0
mov ebx, eax
test eax, eax
js 0x140059c59
cmp byte [rdi + 0x18], sil
je 0x14005999a
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140059985
test byte [rcx + 0x1c], 1
je 0x140059985
cmp byte [rcx + 0x19], 2
jb 0x140059985
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xec
mov dword [rsp + 0x20], eax
call fcn.1400285b4
mov rcx, qword [0x14017d3a8]
mov ebx, 0x80780017
mov dil, byte [rsp + 0x40]
mov r13, rsi
mov r14b, sil
jmp 0x140059c76
cmp byte [rdi + 0x20], sil
je 0x1400599e6
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x1400599df
test byte [rcx + 0x1c], 1
je 0x1400599df
cmp byte [rcx + 0x19], 2
jb 0x1400599df
mov r9d, dword [rdi + 8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xed
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
mov ebx, 0x8078011c
jmp 0x14005998a
lea rcx, [rbp - 0x70]
xor edx, edx
mov r8d, 0x90
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x10]
lea r8, [rbp - 0x70]
movups xmm5, xmmword [r14]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
movdqu xmmword [rsp + 0x70], xmm5
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x140059c59
lea rcx, [rbp - 0x80]
mov r14b, 1
mov byte [rsp + 0x41], r14b
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rcx, [rsp + 0x58]
call fcn.1400669f8
mov ebx, eax
test eax, eax
jns 0x140059a92
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140059a7e
test byte [rcx + 0x1c], r14b
je 0x140059a7e
cmp byte [rcx + 0x19], 2
jb 0x140059a7e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xee
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov dil, byte [rsp + 0x40]
jmp 0x140059c76
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax + reloc.ole32.dll_CoTaskMemAlloc]
mov rdx, qword [rdi + 0x10]
lea r14, [rsi + 0x18]
mov rcx, r14
call fcn.14001eb1c
mov rdx, r13
mov rcx, r14
call fcn.14001e718
mov ebx, eax
test eax, eax
js 0x140059c59
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
lea rdx, [0x140002f20]
mov rcx, rsi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x140059b2f
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140059b1d
test byte [rcx + 0x1c], 1
je 0x140059b1d
cmp byte [rcx + 0x19], 2
jb 0x140059b1d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xef
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
mov r13, qword [rsp + 0x48]
mov dil, byte [rsp + 0x40]
mov r14b, dil
jmp 0x140059c76
mov eax, dword [rbp + 0xa0]
mov r8, qword [rsp + 0x60]
lea r9, [rbp - 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov rdx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14002d58c
mov ebx, eax
test eax, eax
js 0x140059c59
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14004d8b4]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
jne 0x140059bea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140059bd7
test byte [rcx + 0x1c], 1
je 0x140059bd7
cmp byte [rcx + 0x19], 2
jb 0x140059bd7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xf0
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140059b22
cmp qword [rdi + 0x28], 0
mov byte [rdi + 0x18], 1
jne 0x140059bfc
cmp qword [rdi + 0x30], 0
je 0x140059c14
lea r8, [0x140005878]
lea rcx, [0x140005730]
mov edx, 0x12e6
call fcn.1400a8be8
mov rcx, qword [rsp + 0x50]
mov qword [rdi + 0x28], r14
xor esi, esi
mov qword [rdi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + reloc.ole32.dll_CoTaskMemAlloc]
mov rax, qword [rsp + 0x50]
and qword [rsp + 0x50], rsi
movups xmm0, xmmword [rbp - 0x80]
mov dword [rdi + 0x38], 1
lea rcx, [0x14017e4d8]
xor dil, dil
movdqu xmmword [r15], xmm0
mov qword [r12], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140059c63
mov r13, qword [rsp + 0x48]
mov dil, byte [rsp + 0x40]
mov r14b, byte [rsp + 0x41]
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140059c90
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + CoRevokeClassObject]
mov rcx, qword [0x14017d3a8]
test r13, r13
je 0x140059ca5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
test rsi, rsi
je 0x140059cba
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + CoRevokeClassObject]
mov rcx, qword [0x14017d3a8]
test r14b, r14b
je 0x140059ccf
lea rcx, [rbp - 0x70]
call fcn.1400c1358
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x140059d03
cmp rcx, r15
je 0x140059d29
test byte [rcx + 0x1c], 1
je 0x140059d03
cmp byte [rcx + 0x19], 2
jb 0x140059d03
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xf1
mov r9d, ebx
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140059d29
test byte [rcx + 0x1c], 1
je 0x140059d29
cmp byte [rcx + 0x19], 4
jb 0x140059d29
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0xf2
call fcn.14001dd24
test dil, dil
je 0x140059d3b
lea rcx, [0x14017e4d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140168920
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret