Function at 0x140115f80
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 - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14044a300]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor esi, esi
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140115fc0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
lea r14, [0x14044e150]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [r14 + r8], sil
jne 0x140115fe0
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.1400fb480
nop
lea rcx, [rbp + 0x50]
call fcn.140169000
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14011603b
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140116036
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401164a2
call fcn.14031aaec
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xc0]
call fcn.1403614a0
lea rdx, [rbp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rbp + 0xc0]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140116070
cmp byte [rbp + rax + 0xbf], 0x5c
jne 0x14011609a
dec rax
cmp rax, 0x104
jae 0x1401164a8
mov byte [rbp + rax + 0xc0], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
lea rax, [rbp + 0xc0]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1401160b3
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x50]
call fcn.1400fb480
nop
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140116103
lea rax, [rcx + 1]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x50]
cmp rdx, 0xf
cmova rax, qword [rbp + 0x50]
mov word [rax + rcx], 0x5c
lea rax, [rbp + 0x50]
jmp 0x140116127
mov qword [rsp + 0x20], 1
lea r9, [0x140371128]
movzx r8d, byte [rsp + 0x30]
mov edx, 1
lea rcx, [rbp + 0x50]
call fcn.1400fbd80
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x88], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
nop word [rax + rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x140116160
mov rcx, qword [rbp + 0x88]
mov r8, qword [rbp + 0x90]
mov rax, r8
sub rax, rcx
cmp rdi, rax
ja 0x1401161b6
lea rax, [rcx + rdi]
mov qword [rbp + 0x88], rax
lea rbx, [rbp + 0x78]
cmp r8, 0xf
cmova rbx, qword [rbp + 0x78]
add rbx, rcx
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.140360e00
mov byte [rbx + rdi], 0
lea rax, [rbp + 0x78]
jmp 0x1401161d0
mov qword [rsp + 0x20], rdi
mov r9, r14
movzx r8d, byte [rsp + 0x30]
mov rdx, rdi
lea rcx, [rbp + 0x78]
call fcn.1400fbd80
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x98], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa8], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x140116247
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140116242
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401164ae
call fcn.14031aaec
movdqa xmm0, xmmword [0x1403688b0]
movdqu xmmword [rbp + 0x88], xmm0
mov byte [rbp + 0x78], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x14011629e
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140116291
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401164b4
call fcn.14031aaec
movdqa xmm0, xmmword [0x1403688b0]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
lea rdx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0xf
cmova rdx, qword [rbp + 0x98]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, Ordinal_35
lea rcx, [rsp + 0x40]
call fcn.140113740
nop
call fcn.14033994c
movsxd rcx, eax
movabs rax, 0x1c926b9d39431d5f
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x23d6df
sub rcx, rax
add ecx, 0x1649d
movsxd rdi, ecx
mov rcx, rdi
call fcn.14031b120
mov rbx, rax
test rdi, rdi
je 0x140116355
call fcn.14033994c
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rbx + rsi], r9b
inc rsi
cmp rsi, rdi
jb 0x140116323
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1401177c0
lea rcx, [rsp + 0x48]
call fcn.140116c00
test rax, rax
jne 0x1401163a7
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x78], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x50]
and eax, 0x17
mov dword [rsp + rcx + 0x50], eax
mov edx, dword [rsp + rcx + 0x54]
and edx, eax
jne 0x1401164ba
mov rcx, rbx
call fcn.14031aaec
lea rcx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0xf
cmova rcx, qword [rbp + 0x98]
call fcn.14033b204
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.140113a50
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14031ca98
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x140116475
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140116470
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011649c
call fcn.14031aaec
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14031ab80
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140330a70
int3
call fcn.140330a70
int3
call fcn.14031b230
nop
call fcn.140330a70
nop
call fcn.140330a70
nop
test dl, 4
je 0x1401164c8
lea rbx, str.ios_base::badbit_set
jmp 0x1401164dd
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, [rbp + 0x78]
call fcn.140110000
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.1400fd240
lea rdx, [0x140440960]
lea rcx, [rbp + 0x50]
call fcn.14031e5e0
int3