Function at 0x140021420
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc8
mov rax, qword [0x140076048]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x59], rdx
mov r14, rcx
mov qword [rbp - 0x71], rcx
mov rax, qword [rbp + 0x6f]
mov qword [rbp - 0x61], rax
mov rbx, qword [rbp + 0x77]
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x69], rax
call fcn.140004260
mov r13, rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x79], rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140013500
mov rax, qword [rbp - 0x69]
cmp byte [rax], 0
jne 0x1400218db
mov r15b, 1
mov rbx, qword [rsi]
mov rcx, rbx
movzx r12d, byte [rbp + 0x8f]
test r12b, r12b
jne 0x1400214c9
test rbx, rbx
jne 0x1400214c9
lea rcx, [r14 + 0xf8]
mov rdx, rdi
call fcn.1400276b0
mov qword [rsi], rax
mov rcx, rax
test rcx, rcx
jne 0x14002161b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.140015b90
nop
lea r8, [0x140079730]
cmp qword [0x140079748], 8
cmovae r8, qword [0x140079730]
mov r9, qword [0x140079740]
mov rcx, rax
call fcn.140007290
xor ebx, ebx
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x21], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea r9d, [rbx + 0x30]
xor r8d, r8d
lea rdx, [0x140079530]
lea rcx, [rbp - 0x31]
call fcn.140013220
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x14002158e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021589
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021955
call fcn.14002d200
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], bx
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x1400215de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400215d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002195b
call fcn.14002d200
mov r14, qword [rbp - 0x79]
xor bl, bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400215f8
test r14, r14
je 0x1400215f8
call fcn.14002d200
movzx eax, bl
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14002d1e0
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rbp - 0x79]
test r12b, r12b
jne 0x14002162d
test rbx, rbx
jne 0x140021714
xor r15d, r15d
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
lea rdx, [rbp - 0x51]
mov rcx, qword [rbp - 0x61]
call fcn.140013500
lea rbx, [rdi + r14]
lea ecx, [r15 + 0xe]
call fcn.14002d4c0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], SafeArrayDestroy
mov word [rax], 0x25ff
mov dword [rax + 2], r15d
mov qword [rax + 6], rbx
mov rbx, qword [rbp - 0x71]
lea r8, [rbp - 0x51]
mov rdx, qword [rsi]
lea rcx, [rbx + 0xf8]
call fcn.1400274d0
movzx r15d, al
and r15b, 1
mov rdx, qword [rsi]
mov r12, qword [rbp - 0x49]
add rdx, r12
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0xf8]
call fcn.1400274d0
and r15b, al
mov rcx, qword [rsp + 0x30]
jne 0x1400216ee
test rcx, rcx
je 0x1400216ce
cmp qword [rsp + 0x38], 0
jbe 0x1400216ce
call fcn.14002d200
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x1400215e2
test r12, r12
je 0x1400215e2
call fcn.14002d200
jmp 0x1400215e2
test rcx, rcx
je 0x140021701
cmp qword [rsp + 0x38], 0
jbe 0x140021701
call fcn.14002d200
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140021714
test r12, r12
je 0x140021714
call fcn.14002d200
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov r12, qword [rbp - 0x71]
mov rdx, qword [rsi]
lea rcx, [r12 + 0xf8]
call fcn.1400288b0
mov rbx, rax
sub rbx, rdi
sub rbx, 5
mov rcx, r14
call fcn.14002d4c0
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], r14
mov byte [rax], 0xe9
mov dword [rax + 1], ebx
cmp r14, 5
jbe 0x140021767
lea r8, [r14 - 5]
lea rcx, [rax + 5]
mov dl, 0x90
call fcn.14002f180
lea r8, [rbp - 0x51]
mov rdx, rdi
lea rcx, [r12 + 0xf8]
call fcn.1400274d0
and r15b, al
jne 0x1400217a2
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x1400215e2
cmp qword [rbp - 0x49], 0
jbe 0x1400215e2
call fcn.14002d200
jmp 0x1400215e2
mov r12, qword [rbp - 0x49]
mov r15, qword [rbp - 0x51]
cmp dword [r13 + 0x88], 0
jle 0x1400218c7
lea rbx, [r13 + 0xb8]
mov rax, qword [rbx]
mov qword [rbx + 8], rax
test r12, r12
je 0x1400217fa
mov rdi, r15
mov rsi, r12
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400217e6
movzx eax, byte [rdi]
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x1400217f1
mov r8, rdi
mov rcx, rbx
call fcn.140011ce0
inc rdi
sub rsi, 1
jne 0x1400217d1
lea rbx, [r13 + 0xd0]
mov rax, qword [rbx]
mov qword [rbx + 8], rax
test r14, r14
je 0x14002183e
mov rdi, qword [rsp + 0x40]
mov rsi, r14
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14002182a
movzx eax, byte [rdi]
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x140021835
mov r8, rdi
mov rcx, rbx
call fcn.140011ce0
inc rdi
sub rsi, 1
jne 0x140021815
mov ecx, 0x30
call fcn.14002d234
mov rbx, rax
mov qword [rbp - 0x61], rax
mov rdx, qword [rbp - 0x59]
mov rcx, rax
call fcn.140001dd0
mov rax, qword [rbp - 0x71]
mov qword [rbx + 0x20], rax
lea rax, [0x140021980]
mov qword [rbx + 0x28], rax
mov qword [rsp + 0x30], rbx
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
xor edi, edi
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140025f10]
xor edx, edx
xor ecx, ecx
call fcn.140039ba0
mov qword [rbp - 0x31], rax
test rax, rax
je 0x140021947
cmp dword [rbp - 0x29], edi
je 0x140021961
movaps xmm0, xmmword [rbp - 0x31]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.14002c4ac
test eax, eax
jne 0x14002196c
test r15, r15
je 0x140021909
test r12, r12
je 0x140021909
mov rcx, r15
call fcn.14002d200
jmp 0x140021909
cmp dword [r13 + 0x88], 0
jg 0x1400215de
lea rcx, [r14 + 0xf8]
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.1400274d0
test al, al
je 0x1400215de
mov r14, qword [rbp - 0x79]
mov rcx, qword [rbp - 0x69]
movzx ebx, byte [rcx]
test bl, bl
sete al
mov byte [rcx], al
cmp byte [rbp + 0x87], 0
je 0x140021940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rax
neg bl
sbb rcx, rcx
add rcx, 0x68
mov r8d, 0x40005
call qword [sym.imp.WINMM.dll_PlaySoundW]
mov bl, 1
jmp 0x1400215e4
mov dword [rbp - 0x29], edi
mov ecx, 6
call fcn.14002c41c
nop
call fcn.140033898
nop
call fcn.140033898
nop
mov ecx, 1
call fcn.14002c41c
int3
mov ecx, eax
call fcn.14002c3e0
int3