Function at 0x140039d00
Capabilities:
Get common file path

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 - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400d9040]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor ebx, ebx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140039dbe
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rbp - 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140039d72
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.14003a920
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x30]
cmova rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14003a710
nop
lea rcx, [rbp - 0x30]
call fcn.14003a610
jmp 0x140039dde
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
xor r8d, r8d
lea rdx, [0x1400b1028]
lea rcx, [rbp - 0x50]
call fcn.140001a20
nop
movabs rax, 0x7fffffffffffffff
mov r14, rax
mov r13, qword [rbp - 0x40]
sub r14, r13
cmp r14, 0xb
jb 0x14003a4bd
lea r12, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r12, qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r15, [r13 + 0xb]
mov esi, 0xf
mov ebx, esi
lea rdi, [rsp + 0x30]
movabs rcx, 0x8000000000000000
lea edx, [rsi + 7]
cmp r15, rbx
jbe 0x140039eaa
mov rbx, r15
or rbx, rsi
cmp rbx, rax
jbe 0x140039e6a
mov rbx, rax
lea rax, [rcx + 0x27]
mov rcx, rax
call fcn.1400ab8c8
test rax, rax
je 0x140039e8d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140039ea5
cmp rbx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140039e94
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a47b
jmp 0x140039e4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140039ea3
call fcn.1400ab8c8
mov rdi, rax
jmp 0x140039ea5
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
mov r8, r13
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str._antagonist]
movsd qword [rdi + r13], xmm0
movzx eax, word [0x1400b9f00]
mov word [rdi + r13 + 8], ax
movzx eax, byte [0x1400b9f02]
mov byte [rdi + r13 + 0xa], al
mov byte [rdi + r15], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400aac0c
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400395d0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140039c20
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x60], ecx
lea rax, [0x1400d90c8]
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140039ff6
cmp eax, 1
sete bl
lea rcx, [rbp - 0x80]
call fcn.14003a610
nop
lea rcx, [rsp + 0x30]
call fcn.140002050
test bl, bl
je 0x14003a0fd
lea r12, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r12, qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rbx, rsi
lea rdi, [rsp + 0x30]
cmp r15, rbx
jbe 0x14003a04b
mov rbx, r15
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x14003a005
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400ab8c8
test rax, rax
je 0x14003a02e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14003a046
mov bl, 1
test ecx, ecx
jne 0x14003a481
jmp 0x140039f68
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14003a035
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a496
jmp 0x140039fdb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14003a044
call fcn.1400ab8c8
mov rdi, rax
jmp 0x14003a046
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
mov r8, r13
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str._antagonist]
movsd qword [rdi + r13], xmm0
movzx eax, word [0x1400b9f00]
mov word [rdi + r13 + 8], ax
movzx eax, byte [0x1400b9f02]
mov byte [rdi + r13 + 0xa], al
mov byte [rdi + r15], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400aac0c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400395d0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.1400aae6c
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14003a4c3
lea rcx, [rsp + 0x60]
call fcn.14003a610
nop
lea rcx, [rsp + 0x30]
call fcn.140002050
cmp r14, 0x13
jb 0x14003a4d9
lea r15, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
mov r12, qword [rbp - 0x50]
cmova r15, r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r14, [r13 + 0x13]
mov rbx, rsi
lea rdi, [rsp + 0x30]
cmp r14, rbx
jbe 0x14003a1c6
mov rbx, r14
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x14003a180
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400ab8c8
test rax, rax
je 0x14003a1a9
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14003a1c1
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14003a1b0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a49c
jmp 0x14003a165
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14003a1bf
call fcn.1400ab8c8
mov rdi, rax
jmp 0x14003a1c1
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rbx
mov r8, r13
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str._antagonistconfigs]
movups xmmword [rdi + r13], xmm0
movzx eax, word [0x1400b9f18]
mov word [rdi + r13 + 0x10], ax
movzx eax, byte [0x1400b9f1a]
mov byte [rdi + r13 + 0x12], al
mov byte [rdi + r14], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400aac0c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400395d0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140039c20
movsd xmm0, qword [rax]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x60], ecx
lea rax, [0x1400d90c8]
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14003a30a
cmp eax, 1
sete bl
lea rcx, [rbp - 0x80]
call fcn.14003a610
nop
lea rcx, [rsp + 0x30]
call fcn.140002050
test bl, bl
je 0x14003a40b
lea rdi, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdi, r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rbx, [rsp + 0x30]
cmp r14, 0xf
jbe 0x14003a35f
mov rsi, r14
or rsi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jbe 0x14003a319
mov rsi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400ab8c8
test rax, rax
je 0x14003a342
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14003a35a
mov bl, 1
test ecx, ecx
jne 0x14003a4a2
jmp 0x14003a27f
cmp rsi, 0x16
mov eax, 0x16
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x14003a349
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003a4b7
jmp 0x14003a2ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14003a358
call fcn.1400ab8c8
mov rbx, rax
jmp 0x14003a35a
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov r8, r13
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str._antagonistconfigs]
movups xmmword [rbx + r13], xmm0
movzx eax, word [0x1400b9f18]
mov word [rbx + r13 + 0x10], ax
movzx eax, byte [0x1400b9f1a]
mov byte [rbx + r13 + 0x12], al
mov byte [rbx + r14], 0
mov rdi, qword [rsp + 0x40]
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
call fcn.1400aac0c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400395d0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call fcn.1400aae6c
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14003a465
lea rcx, [rsp + 0x60]
call fcn.14003a610
nop
lea rcx, [rsp + 0x30]
call fcn.140002050
call fcn.140040060
lea rcx, str._antagonist_:_press_enter_to_close_console..
call fcn.140038ef0
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 - 0x50]
call fcn.140002050
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400ab780
lea r11, [rsp + 0x310]
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 + 0x60]
lea rcx, str.create_directory
call fcn.140039b50
nop
call fcn.140001920
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x60]
lea rcx, str.exists
call fcn.140039bc0
nop
call fcn.140001920
int3
call fcn.140001920
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x60]
lea rcx, str.exists
call fcn.140039bc0
nop
call fcn.140001920
int3
call fcn.1400019c0
nop
shr rdx, 0x20
lea r8, [rsp + 0x60]
lea rcx, str.create_directory
call fcn.140039b50
nop
call fcn.1400019c0
int3