Function at 0x140049770
Capabilities:
Get common file path
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400f2040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor esi, esi
mov eax, dword [str.r_BBJ:]
mov dword [rsp + 0x50], eax
movzx ecx, word [0x1400d283c]
mov word [rsp + 0x54], cx
movzx eax, byte [0x1400d283e]
mov byte [rsp + 0x50], 0x46
xor byte [rsp + 0x51], 0x35
xor byte [rsp + 0x52], 0x36
xor byte [rsp + 0x53], 0x37
xor cl, 0x38
mov byte [rsp + 0x54], cl
xor byte [rsp + 0x55], 0x39
xor al, 0x3a
mov byte [rsp + 0x56], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
lea rax, [rsp + 0x50]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140049810
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140001fd0
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rbx, rax
mov edx, 0xffffffec
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowLongA]
bts eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov r9d, 2
mov r8b, 0xc8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140049908
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x40]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400498b1
mov r8, rdi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.14004b710
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x60]
cmova rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14004b4d0
nop
lea rcx, [rsp + 0x60]
call fcn.14004b1a0
jmp 0x140049928
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
xor r8d, r8d
lea rdx, [0x1400c81d0]
lea rcx, [rbp - 0x80]
call fcn.140001fd0
nop
movabs rax, 0x7fffffffffffffff
mov r14, rax
mov r12, qword [rbp - 0x70]
sub r14, r12
cmp r14, 8
jb 0x140049f72
lea r13, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r13, qword [rbp - 0x80]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea r15, [r12 + 8]
mov ebx, 0xf
mov edi, ebx
lea rsi, [rsp + 0x60]
movabs rcx, 0x8000000000000000
mov edx, 0x16
cmp r15, rbx
jbe 0x1400499f7
mov rdi, r15
or rdi, rbx
cmp rdi, rax
jbe 0x1400499b7
mov rdi, rax
lea rax, [rcx + 0x27]
mov rcx, rax
call fcn.1400c1bc8
test rax, rax
je 0x1400499e3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400499f2
cmp rdi, rdx
cmovb rdi, rdx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x1400499cb
xor esi, esi
jmp 0x1400499f2
cmp rcx, 0x1000
jb 0x1400499ea
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140049f5a
jmp 0x14004999c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1bc8
mov rsi, rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rdi
mov r8, r12
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movabs rax, 0x65636e656c69735c
mov qword [r12 + rsi], rax
mov byte [rsi + r15], 0
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
call fcn.1400c0f10
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140048f10
nop
xor eax, eax
mov qword [rsp + 0x50], rax
lea rax, [0x1400f2210]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140049560
movzx edi, al
cmp dword [rsp + 0x50], 0
jne 0x140049f78
lea rcx, [rsp + 0x30]
call fcn.14004b1a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400055d0
test dil, dil
jne 0x140049c11
lea r13, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r13, qword [rbp - 0x80]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov rdi, rbx
lea rsi, [rsp + 0x60]
cmp r15, rbx
jbe 0x140049b6a
mov rdi, r15
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jbe 0x140049b24
mov rdi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400c1bc8
test rax, rax
je 0x140049b56
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140049b65
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140049b3e
xor esi, esi
jmp 0x140049b65
cmp rcx, 0x1000
jb 0x140049b5d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140049f60
jmp 0x140049b09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1bc8
mov rsi, rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rdi
mov r8, r12
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movabs rax, 0x65636e656c69735c
mov qword [r12 + rsi], rax
mov byte [rsi + r15], 0
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
call fcn.1400c0f10
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140048f10
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rcx, qword [rsp + 0x30]
call fcn.1400c1170
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140049f8f
lea rcx, [rsp + 0x30]
call fcn.14004b1a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400055d0
cmp r14, 0x10
jb 0x140049fa5
lea r15, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
mov r13, qword [rbp - 0x80]
cmova r15, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea r14, [r12 + 0x10]
mov rdi, rbx
lea rsi, [rsp + 0x60]
cmp r14, rbx
jbe 0x140049cdb
mov rdi, r14
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jbe 0x140049c95
mov rdi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400c1bc8
test rax, rax
je 0x140049cc7
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140049cd6
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140049caf
xor esi, esi
jmp 0x140049cd6
cmp rcx, 0x1000
jb 0x140049cce
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140049f66
jmp 0x140049c7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1bc8
mov rsi, rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rdi
mov r8, r12
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str._silenceconfigs]
movups xmmword [r12 + rsi], xmm0
mov byte [rsi + r14], 0
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
call fcn.1400c0f10
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140048f10
nop
xor r15d, r15d
mov qword [rsp + 0x50], r15
lea rax, [0x1400f2210]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140049560
movzx edi, al
cmp dword [rsp + 0x50], r15d
jne 0x140049fab
lea rcx, [rsp + 0x30]
call fcn.14004b1a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400055d0
test dil, dil
jne 0x140049eec
lea rsi, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rsi, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rdi, [rsp + 0x60]
cmp r14, 0xf
jbe 0x140049e4b
mov rbx, r14
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x140049e04
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400c1bc8
test rax, rax
je 0x140049e37
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140049e46
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140049e1f
mov rdi, r15
jmp 0x140049e46
cmp rcx, 0x1000
jb 0x140049e3e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140049f6c
jmp 0x140049de9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1bc8
mov rdi, rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rbx
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str._silenceconfigs]
movups xmmword [r12 + rdi], xmm0
mov byte [rdi + r14], 0
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
call fcn.1400c0f10
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140048f10
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rcx, qword [rsp + 0x30]
call fcn.1400c1170
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140049f44
lea rcx, [rsp + 0x30]
call fcn.14004b1a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400055d0
call fcn.140051c60
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 - 0x80]
call fcn.1400055d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400055d0
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400c1a80
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
shr rdx, 0x20
lea r8, [rsp + 0x30]
lea rcx, str.create_directory
call fcn.140049490
nop
call fcn.140001eb0
int3
call fcn.140001eb0
int3
call fcn.140001eb0
int3
call fcn.140001eb0
int3
call fcn.140001f50
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, str.exists
call fcn.140049500
nop
shr rdx, 0x20
lea r8, [rsp + 0x30]
lea rcx, str.create_directory
call fcn.140049490
nop
call fcn.140001f50
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, str.exists
call fcn.140049500
int3