Function at 0x14004a4f0
Capabilities:
Create thread
Get common file path
Set console window title
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14016f080]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor edi, edi
lea ecx, [rdi + 1]
call fcn.140127e48
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14004de90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14004ab5e
cmp dword [rbp - 0x18], edi
je 0x14004ab52
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14004ab52
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [0x1401716c8], rdi
mov byte [0x1401716d0], al
mov qword [0x140171420], rdi
mov word [0x140171428], ax
mov byte [0x14017142a], al
xor eax, eax
movups xmmword [0x1401716e0], xmm0
movups xmmword [0x1401716f0], xmm0
movups xmmword [0x140171700], xmm0
movups xmmword [0x140171710], xmm0
mov byte [0x140171720], al
mov dword [0x140171418], eax
movups xmmword [0x140171430], xmm0
mov qword [0x140171440], rax
mov dword [0x140171448], eax
mov byte [0x14017144c], al
movsd xmm0, qword [str.pX_PmZNX_]
movsd qword [rbp - 0x60], xmm0
movzx eax, byte [0x140146c20]
mov byte [rbp - 0x60], 0x46
xor byte [rbp - 0x5f], 0x37
xor byte [rbp - 0x5e], 0x38
xor byte [rbp - 0x5d], 0x39
xor byte [rbp - 0x5c], 0x3a
xor byte [rbp - 0x5b], 0x3b
xor byte [rbp - 0x5a], 0x3c
xor byte [rbp - 0x59], 0x3d
xor al, 0x3e
mov byte [rbp - 0x58], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rdi
lea rax, [rbp - 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004a650
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x10]
call fcn.1400026b0
nop
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x140171450]
call fcn.1400d6ed0
cmp byte [0x140171660], 0
jne 0x14004a704
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x60]
call fcn.14004af20
movzx edx, byte [rax + 0xa]
test dl, dl
je 0x14004a6d6
xor byte [rax], 0x36
xor byte [rax + 1], 0x37
xor byte [rax + 2], 0x38
xor byte [rax + 3], 0x39
xor byte [rax + 4], 0x3a
xor byte [rax + 5], 0x3b
xor byte [rax + 6], 0x3c
xor byte [rax + 7], 0x3d
xor byte [rax + 8], 0x3e
xor byte [rax + 9], 0x3f
xor dl, 0x40
mov byte [rax + 0xa], dl
mov rdx, rax
call fcn.14004c980
mov rcx, rax
lea rdx, [0x140171668]
call fcn.14004cb50
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x14004a787
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
lea rax, [rbp + 0x30]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004a736
mov r8, rbx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.14004cc80
nop
lea rcx, [rbp - 0x10]
mov rax, qword [rbp]
cmp qword [rbp + 8], 7
jbe 0x14004a76a
mov rdx, qword [rbp - 0x10]
lea r8, [rdx + rax*2]
jmp 0x14004a772
lea r8, [rcx + rax*2]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x40]
call fcn.14004c690
nop
lea rcx, [rbp - 0x10]
call fcn.14004c420
jmp 0x14004a7a7
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
xor r8d, r8d
lea rdx, [0x14013c9b8]
lea rcx, [rbp - 0x40]
call fcn.1400026b0
nop
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 8
jb 0x14004abab
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 8
lea rsi, str._fantasy
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.14004d480
nop
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
call fcn.140127184
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400497b0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140049ee0
movsd xmm0, qword [rax]
movsd qword [rbp - 0x60], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
lea r14, [0x14016f2d0]
mov qword [rbp - 0x48], r14
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rbp - 0x60]
test eax, eax
je 0x14004ab0c
cmp eax, 1
sete dil
lea rcx, [rbp - 0x80]
call fcn.14004c420
nop
lea rcx, [rsp + 0x40]
call fcn.140005f40
test dil, dil
je 0x14004a94b
mov rax, rbx
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 8
jb 0x14004abb1
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.14004d480
nop
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rax, qword [rsp + 0x40]
mov qword [rbp - 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x48], rax
call fcn.140127184
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400497b0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.1401273e4
shr rax, 0x20
test eax, eax
jne 0x14004abb7
lea rcx, [rsp + 0x60]
call fcn.14004c420
nop
lea rcx, [rsp + 0x40]
call fcn.140005f40
mov rax, rbx
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 0x10
jb 0x14004abcb
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], reloc.WS2_32.dll_recv
lea rsi, str._fantasyconfigs
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.14004d480
nop
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rax, qword [rsp + 0x40]
mov qword [rbp - 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x48], rax
call fcn.140127184
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400497b0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140049ee0
movsd xmm0, qword [rax]
movsd qword [rbp - 0x60], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], r14
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rbp - 0x60]
test eax, eax
je 0x14004ab18
cmp eax, 1
sete dil
lea rcx, [rbp - 0x80]
call fcn.14004c420
nop
lea rcx, [rsp + 0x40]
call fcn.140005f40
test dil, dil
je 0x14004aad8
mov rax, qword [rbp - 0x30]
sub rbx, rax
cmp rbx, 0x10
jb 0x14004abd1
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.14004d480
nop
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rax, qword [rsp + 0x40]
mov qword [rbp - 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x48], rax
call fcn.140127184
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400497b0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.1401273e4
shr rax, 0x20
test eax, eax
jne 0x14004ab6d
lea rcx, [rsp + 0x60]
call fcn.14004c420
nop
lea rcx, [rsp + 0x40]
call fcn.140005f40
call fcn.140054270
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call fcn.140005f40
nop
lea rcx, [rbp + 0x10]
call fcn.140005f40
nop
cmp dword [rbp - 0x18], 0
je 0x14004ab24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dil, 1
test ecx, ecx
jne 0x14004ab81
jmp 0x14004a87a
mov dil, 1
test ecx, ecx
jne 0x14004ab96
jmp 0x14004aa0a
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140127d00
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x18], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, str.create_directory
call fcn.140049e10
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140049e80
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140049e80
nop
call fcn.140002630
int3
call fcn.140002630
nop
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, str.create_directory
call fcn.140049e10
nop
call fcn.140002630
int3
call fcn.140002630
int3