Function at 0x140049fd0
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 [0x140161080]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor edi, edi
lea ecx, [rdi + 1]
call fcn.14011a4d8
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14004d9c0]
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 0x14004a638
cmp dword [rbp - 0x18], edi
je 0x14004a62c
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 0x14004a62c
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [0x1401641f8], rdi
mov qword [0x140163f50], rdi
mov word [0x140163f58], ax
mov byte [0x140163f5a], al
xor eax, eax
movups xmmword [0x140164200], xmm0
movups xmmword [0x140164210], xmm0
movups xmmword [0x140164220], xmm0
movups xmmword [0x140164230], xmm0
mov byte [0x140164240], al
mov dword [0x140163f48], eax
movups xmmword [0x140163f60], xmm0
mov qword [0x140163f70], rax
mov dword [0x140163f78], eax
mov byte [0x140163f7c], al
movsd xmm0, qword [str.cMUJR_R_]
movsd qword [rbp - 0x60], xmm0
movzx eax, byte [0x140138b08]
mov byte [rbp - 0x60], 0x54
xor byte [rbp - 0x5f], 0x38
xor byte [rbp - 0x5e], 0x39
xor byte [rbp - 0x5d], 0x3a
xor byte [rbp - 0x5c], 0x3b
xor byte [rbp - 0x5b], 0x3c
xor byte [rbp - 0x5a], 0x3d
xor byte [rbp - 0x59], 0x3e
xor al, 0x3f
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
inc r8
cmp byte [rax + r8], 0
jne 0x14004a122
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x10]
call fcn.1400029a0
nop
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x140163f80]
call fcn.1400c9400
cmp byte [0x140164190], 0
jne 0x14004a1d6
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.14004aa00
movzx edx, byte [rax + 0xa]
test dl, dl
je 0x14004a1a8
xor byte [rax], 0x37
xor byte [rax + 1], 0x38
xor byte [rax + 2], 0x39
xor byte [rax + 3], 0x3a
xor byte [rax + 4], 0x3b
xor byte [rax + 5], 0x3c
xor byte [rax + 6], 0x3d
xor byte [rax + 7], 0x3e
xor byte [rax + 8], 0x3f
xor byte [rax + 9], 0x40
xor dl, 0x41
mov byte [rax + 0xa], dl
mov rdx, rax
call fcn.14004c4b0
mov rcx, rax
lea rdx, [0x140164198]
call fcn.14004c680
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 0x14004a261
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
lea rax, [rbp + 0x30]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004a210
mov r8, rbx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.14004c7b0
nop
lea rcx, [rbp - 0x10]
mov rax, qword [rbp]
cmp qword [rbp + 8], 7
jbe 0x14004a244
mov rdx, qword [rbp - 0x10]
lea r8, [rdx + rax*2]
jmp 0x14004a24c
lea r8, [rcx + rax*2]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x40]
call fcn.14004c150
nop
lea rcx, [rbp - 0x10]
call fcn.14004bee0
jmp 0x14004a281
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
xor r8d, r8d
lea rdx, [0x14012e9e8]
lea rcx, [rbp - 0x40]
call fcn.1400029a0
nop
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 9
jb 0x14004a685
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 9
lea rsi, str.Tulpical
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.14004cfb0
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.140119814
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140049290
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400499c0
movsd xmm0, qword [rax]
movsd qword [rbp - 0x60], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
lea r14, [0x140161250]
mov qword [rbp - 0x48], r14
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rbp - 0x60]
test eax, eax
je 0x14004a5e6
cmp eax, 1
sete dil
lea rcx, [rbp - 0x80]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x40]
call fcn.140006040
test dil, dil
je 0x14004a425
mov rax, rbx
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 9
jb 0x14004a68b
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 9
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.14004cfb0
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.140119814
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140049290
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.140119a74
shr rax, 0x20
test eax, eax
jne 0x14004a691
lea rcx, [rsp + 0x60]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x40]
call fcn.140006040
mov rax, rbx
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 0x11
jb 0x14004a6a5
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], reloc.WS2_32.dll_recvfrom
lea rsi, str.Tulpicalconfigs
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.14004cfb0
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.140119814
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140049290
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400499c0
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 0x14004a5f2
cmp eax, 1
sete dil
lea rcx, [rbp - 0x80]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x40]
call fcn.140006040
test dil, dil
je 0x14004a5b2
mov rax, qword [rbp - 0x30]
sub rbx, rax
cmp rbx, 0x11
jb 0x14004a6ab
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], reloc.WS2_32.dll_recvfrom
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.14004cfb0
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.140119814
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140049290
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.140119a74
shr rax, 0x20
test eax, eax
jne 0x14004a647
lea rcx, [rsp + 0x60]
call fcn.14004bee0
nop
lea rcx, [rsp + 0x40]
call fcn.140006040
call fcn.140055880
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.140006040
nop
lea rcx, [rbp + 0x10]
call fcn.140006040
nop
cmp dword [rbp - 0x18], 0
je 0x14004a5fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dil, 1
test ecx, ecx
jne 0x14004a65b
jmp 0x14004a354
mov dil, 1
test ecx, ecx
jne 0x14004a670
jmp 0x14004a4e4
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14011a390
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.1400498f0
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140049960
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140049960
nop
call fcn.140002920
int3
call fcn.140002920
nop
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, str.create_directory
call fcn.1400498f0
nop
call fcn.140002920
int3
call fcn.140002920
int3