Function at 0x180001e40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x180031080]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rcx
cmp rcx, 0x29
jae 0x1800020e4
mov rbx, 0xffffffffffffffff
lea r14, [0x180000000]
mov rax, qword [0x180033810]
test rax, rax
je 0x180001eae
mov rcx, qword [r14 + rcx*8 + 0x33820]
test rcx, rcx
je 0x180001f38
mov rax, rcx
jmp 0x1800020e6
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.18001fee0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.18001fee0
mov edx, 0x104
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1800020e4
lea r8, [rbp + 0x180]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.18000c410
mov r9, rbx
lea r8, str.winmm.dll
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.18000c318
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180033810], rax
test rax, rax
je 0x1800020e4
test rax, rax
je 0x1800020e4
lea rsi, [rdi*8]
mov rdi, qword [rsi + r14 + 0x2b6f0]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
call fcn.18001fee0
lea rcx, [rsp + 0x70]
call fcn.180003160
cmp qword [rbp - 8], 0
jne 0x180001fe5
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.180002e90
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.180005678
nop
jmp 0x1800020c5
inc rbx
cmp byte [rdi + rbx], 0
jne 0x180001fe5
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1800035f0
mov r8d, 1
lea rdx, [0x18002b640]
lea rcx, [rsp + 0x70]
call fcn.1800035f0
lea rcx, [rsp + 0x78]
call fcn.180003cb0
test rax, rax
jne 0x180002057
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x18000210d
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.180002e90
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.180005678
nop
mov rdx, qword [rsi + r14 + 0x2b6f0]
mov rcx, qword [0x180033810]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + r14 + 0x33820], rax
jmp 0x1800020e6
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180005f00
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test dl, 4
je 0x18000211b
lea rbx, str.ios_base::badbit_set
jmp 0x180002130
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180001c40
lea rdx, [0x18002f328]
lea rcx, [rsp + 0x40]
call fcn.180007ef8
int3