Function at 0x140003290
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, r8
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
lea rcx, [rbp + 0x80]
call fcn.140008640
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.140008640
mov r8, qword [0x140025c00]
mov rax, qword [r8 + 0xc20]
mov rbx, qword [rax]
mov rcx, qword [rbp + 0x88]
cmp rbx, rax
je 0x1400033ab
nop dword [rax]
mov rdx, qword [rbx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14000337e
mov rdx, qword [rdx]
test rdx, rdx
je 0x14000339c
test rcx, rcx
je 0x14000339c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, qword [rbp + 0x88]
mov r8, qword [0x140025c00]
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [r8 + 0xc20]
jne 0x140003370
xor r14d, r14d
lea rdi, [0x140015ce0]
test rcx, rcx
je 0x1400033d6
lea rdx, str.magic.test
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000348c
mov r8, qword [0x140025c00]
lea rcx, [r8 + 0x1868]
lea rdx, str._MagicBox_:_Module_Starting
call fcn.140005fc0
mov ebx, r14d
nop dword [rax]
movsxd rax, ebx
imul rdx, rax, 0xe8
add rdx, rdi
lea rcx, [0x14000ebb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000354f
inc ebx
cmp ebx, 0xfa
jl 0x1400033f0
mov rcx, qword [0x140025c00]
add rcx, 0xc40
lea r9, str.MagicThread
lea r8, str.cMagic
mov edx, 2
call fcn.14000a140
mov dword [rbp + 0x34], eax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x30]
lea r8, [0x140003a10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [rbp + 0x34]
imul rdx, rcx, 0xe8
mov qword [rdx + rdi + 0xd8], rax
test rax, rax
je 0x14000348c
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x1400034ad
lea rdx, str.magic.kill
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000354f
mov rcx, qword [0x140025c00]
add rcx, 0x1868
lea rdx, str._MagicBox_:_Killing_Threads
call fcn.140005fc0
mov esi, r14d
lea rbx, [0x140015db8]
nop dword [rax]
nop word [rax + rax]
lea rdx, [0x14000ebb0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140003537
lea edx, [rax + 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
cmp qword [rbx], r14
je 0x140003537
mov rcx, qword [0x140025c00]
add rcx, 0x1868
mov r9, rdi
mov r8d, esi
lea rdx, str._cMagic_:_Killed_Thread:__i___s_
call fcn.140005fc0
mov qword [rbx], r14
mov qword [rbx - 0x10], r14
mov dword [rbx - 8], r14d
mov byte [rbx - 0xd8], r14b
inc esi
add rdi, 0xe8
add rbx, 0xe8
cmp esi, 0xfa
jl 0x1400034e0
lea rbx, vtable.cString.0
mov qword [rbp + 0x100], rbx
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x140003575
call fcn.14000c01c
mov qword [rbp + 0x108], r14
mov rcx, qword [rbp + 0x110]
test rcx, rcx
je 0x14000358d
call fcn.14000c01c
mov qword [rbp + 0x110], r14
mov dword [rbp + 0x118], r14d
lea rcx, [rbp + 0x120]
call fcn.140001370
nop
mov qword [rbp + 0x80], rbx
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x1400035c0
call fcn.14000c01c
mov qword [rbp + 0x88], r14
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x1400035d8
call fcn.14000c01c
mov qword [rbp + 0x90], r14
mov dword [rbp + 0x98], r14d
lea rcx, [rbp + 0xa0]
call fcn.140001370
mov al, 1
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000bd80
add rsp, 0x290
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret