Function at 0x140057ed0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x538
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4b0], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov rbx, rdx
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140058975
mov qword [rbp + 0x3f8], rdi
mov qword [rbp + 0x400], rsi
movabs rax, 0xdf31e67b0503206b
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x450], rax
movabs rcx, 0x22c7fb3be186be1c
mov qword [rbp + 0x1c0], rcx
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x458], rax
movabs rax, 0xdf31881267714407
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x2d0], rcx
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x1c8], rax
lea rax, [rbp + 0x1c0]
mov qword [rbp + 0x2d0], rax
mov rax, qword [rbp + 0x2d0]
movaps xmm0, xmmword [rbp + 0x450]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x450], xmm0
mov r14, qword [rbx + 0x10]
lea rcx, [rbp + 0x450]
call fcn.14037a4f0
mov rsi, rax
movabs rcx, 0x7fffffffffffffff
mov rax, r14
xor rax, rcx
cmp rax, rsi
jb 0x14005898f
mov r12, qword [rbx]
mov rax, qword [rbx + 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x430], xmm0
mov r15, rsi
add r15, r14
mov edi, reloc.WS2_32.dll_ntohs
lea r13, [rbp + 0x430]
cmp r15, 0x10
jb 0x14005806e
mov qword [rbp + 0x428], rax
mov rax, r15
or rax, 0xf
js 0x140058037
cmp rax, 0x17
mov edi, reloc.WS2_32.dll_shutdown
cmovae rdi, rax
lea rcx, [rdi + 1]
cmp rdi, 0xfff
jae 0x14005804b
call fcn.1401700e8
mov r13, rax
jmp 0x140058060
movabs rdi, 0x7fffffffffffffff
movabs rcx, 0x8000000000000000
add rcx, 0x27
call fcn.1401700e8
lea r13, [rax + 0x27]
and r13, 0xffffffffffffffe0
mov qword [r13 - 8], rax
mov qword [rbp + 0x430], r13
mov rax, qword [rbp + 0x428]
cmp rax, 0x10
mov qword [rbp + 0x428], rbx
cmovb r12, rbx
mov qword [rbp + 0x440], r15
mov qword [rbp + 0x448], rdi
mov rcx, r13
mov rdx, r12
mov r8, r14
call fcn.1403584b0
add r14, r13
lea rdx, [rbp + 0x450]
mov rcx, r14
mov r8, rsi
call fcn.1403584b0
mov byte [r13 + r15], 0
mov rax, qword [rbp + 0x440]
cmp qword [rbp + 0x448], 0x10
lea rcx, [rbp + 0x430]
jb 0x1400580d3
mov rcx, qword [rbp + 0x430]
mov qword [rbp + 0x3d8], rcx
mov qword [rbp + 0x3e0], rax
lea rcx, [rbp + 0x470]
lea rdx, [rbp + 0x3d8]
call fcn.140060e00
xorps xmm0, xmm0
movaps xmmword [rbp + 0x4a0], xmm0
movaps xmmword [rbp + 0x490], xmm0
lea rcx, [rbp - 0x50]
call fcn.14037bb3c
mov r14, rax
movabs rax, 0x7fffffffffffffff
cmp r14, rax
jae 0x140058994
cmp r14, 7
ja 0x140058160
mov qword [rbp + 0x4a0], r14
mov qword [rbp + 0x4a8], 7
lea r8, [r14 + r14]
lea rcx, [rbp + 0x490]
lea rdx, [rbp - 0x50]
call fcn.1403584b0
lea rax, [r14*2 + 0x490]
add rax, rbp
jmp 0x140058201
mov qword [rbp + 0x4a8], 7
mov rax, r14
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x1400589a3
cmp rax, 0xb
mov esi, 0xa
cmovae rsi, rax
lea rcx, [rsi + rsi]
cmp rsi, 0x7ff
jb 0x1400581cc
movabs rax, 0x7fffffffffffffec
cmp rsi, rax
jae 0x1400589a3
add rcx, 0x29
call fcn.1401700e8
mov r15, rax
add r15, 0x27
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x1400581d8
add rcx, 2
call fcn.1401700e8
mov r15, rax
mov qword [rbp + 0x490], r15
mov qword [rbp + 0x4a0], r14
mov qword [rbp + 0x4a8], rsi
lea r8, [r14 + r14]
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.1403584b0
lea rax, [r15 + r14*2]
mov word [rax], 0
lea r15, [rbp + 0x2d0]
lea r8, [rbp + 0x490]
lea r9, [rbp + 0x470]
mov rcx, r15
mov qword [rbp + 0x408], r8
call fcn.140059010
mov rsi, qword [rbp + 0x3f8]
cmp qword [rbp + 0x2e8], 8
jb 0x140058242
mov r15, qword [rbp + 0x2d0]
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x1c0]
mov rdx, r15
mov r8d, 0x20
mov r9d, 0x40
call fcn.14003c050
mov rax, qword [rbp + 0x2e8]
cmp rax, 8
jb 0x1400582b1
mov rcx, qword [rbp + 0x2d0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400582ac
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov qword [rbp + 0x2e0], 0
mov qword [rbp + 0x2e8], 7
mov word [rbp + 0x2d0], 0
mov rax, qword [rbp + 0x4a8]
cmp rax, 8
jb 0x14005831c
mov rcx, qword [rbp + 0x490]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140058317
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov rax, qword [rbp + 0x488]
cmp rax, 8
jb 0x140058368
mov rcx, qword [rbp + 0x470]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140058363
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov qword [rbp + 0x480], 0
mov qword [rbp + 0x488], 7
mov word [rbp + 0x470], 0
mov rax, qword [rbp + 0x448]
cmp rax, 0x10
jb 0x1400583cc
mov rcx, qword [rbp + 0x430]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400583c7
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x1400583da
mov rsi, qword [rsi]
lea rcx, [rbp + 0x1c0]
mov rdx, rsi
call fcn.140059550
lea rcx, [rbp + 0x1c0]
call fcn.140028ae0
movabs rax, 0xdf31881200103062
mov qword [rbp + 0x2d0], rax
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x410], rax
movabs rcx, 0x22c7fb3be186be1c
mov qword [rbp + 0x2d0], rcx
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x418], rax
movabs rax, 0xdf31881267714407
mov qword [rbp + 0x2d0], rax
mov qword [rbp + 0x470], rcx
mov rax, qword [rbp + 0x470]
mov qword [rbp + 0x2d8], rax
lea rax, [rbp + 0x2d0]
mov qword [rbp + 0x470], rax
mov rax, qword [rbp + 0x470]
movaps xmm0, xmmword [rbp + 0x410]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x410], xmm0
mov rsi, qword [rbp + 0x428]
mov rbx, qword [rsi + 0x10]
lea rcx, [rbp + 0x410]
call fcn.14037a4f0
mov r15, rax
mov rax, rbx
movabs rcx, 0x7fffffffffffffff
xor rax, rcx
cmp rax, r15
jb 0x140058999
mov rax, qword [rsi]
mov r14, qword [rsi + 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x4a0], xmm0
movaps xmmword [rbp + 0x490], xmm0
lea r13, [r15 + rbx]
mov edi, reloc.WS2_32.dll_ntohs
lea r12, [rbp + 0x490]
cmp r13, 0x10
jb 0x14005854e
mov rsi, rax
mov rax, r13
or rax, 0xf
js 0x140058510
cmp rax, 0x17
mov edi, reloc.WS2_32.dll_shutdown
cmovae rdi, rax
lea rcx, [rdi + 1]
cmp rdi, 0xfff
jae 0x140058524
call fcn.1401700e8
mov r12, rax
jmp 0x14005853d
movabs rcx, 0x8000000000000000
movabs rdi, 0x7fffffffffffffff
add rcx, 0x27
call fcn.1401700e8
mov r12, rax
add r12, 0x27
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
mov rax, rsi
mov qword [rbp + 0x490], r12
mov rsi, qword [rbp + 0x428]
cmp r14, 0x10
cmovae rsi, rax
mov qword [rbp + 0x4a0], r13
mov qword [rbp + 0x4a8], rdi
mov rcx, r12
mov rdx, rsi
mov r8, rbx
call fcn.1403584b0
add rbx, r12
lea rdx, [rbp + 0x410]
mov rcx, rbx
mov r8, r15
call fcn.1403584b0
mov byte [r12 + r13], 0
mov rax, qword [rbp + 0x4a0]
cmp qword [rbp + 0x4a8], 0x10
jb 0x1400585ab
mov rcx, qword [rbp + 0x490]
mov qword [rbp + 0x408], rcx
mov rcx, qword [rbp + 0x408]
mov qword [rbp + 0x3e8], rcx
mov qword [rbp + 0x3f0], rax
lea rcx, [rbp + 0x430]
lea rdx, [rbp + 0x3e8]
call fcn.140060e00
mov r14, qword [rbp + 0x400]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x460], xmm0
movaps xmmword [rbp + 0x450], xmm0
lea rcx, [rbp - 0x50]
call fcn.14037bb3c
mov rdi, rax
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jae 0x14005899e
cmp rdi, 7
ja 0x140058646
mov qword [rbp + 0x460], rdi
mov qword [rbp + 0x468], 7
lea r8, [rdi + rdi]
lea rcx, [rbp + 0x450]
lea rdx, [rbp - 0x50]
call fcn.1403584b0
lea rax, [rdi*2 + 0x450]
add rax, rbp
jmp 0x1400586e7
mov qword [rbp + 0x468], 7
mov rax, rdi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x1400589a8
cmp rax, 0xb
mov esi, 0xa
cmovae rsi, rax
lea rcx, [rsi + rsi]
cmp rsi, 0x7ff
jb 0x1400586b2
movabs rax, 0x7fffffffffffffec
cmp rsi, rax
jae 0x1400589a8
add rcx, 0x29
call fcn.1401700e8
mov rbx, rax
add rbx, 0x27
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400586be
add rcx, 2
call fcn.1401700e8
mov rbx, rax
mov qword [rbp + 0x450], rbx
mov qword [rbp + 0x460], rdi
mov qword [rbp + 0x468], rsi
lea r8, [rdi + rdi]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1403584b0
lea rax, [rbx + rdi*2]
mov word [rax], 0
lea rdi, [rbp + 0x470]
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x430]
mov rcx, rdi
call fcn.140059010
cmp qword [rbp + 0x488], 8
jb 0x14005871a
mov rdi, qword [rbp + 0x470]
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x2d0]
mov rdx, rdi
mov r8d, 0x20
mov r9d, 0x40
call fcn.14003c050
mov rax, qword [rbp + 0x488]
cmp rax, 8
jb 0x140058789
mov rcx, qword [rbp + 0x470]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140058784
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov qword [rbp + 0x480], 0
mov qword [rbp + 0x488], 7
mov word [rbp + 0x470], 0
mov rax, qword [rbp + 0x468]
cmp rax, 8
jb 0x1400587f4
mov rcx, qword [rbp + 0x450]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400587ef
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov rax, qword [rbp + 0x448]
cmp rax, 8
jb 0x140058840
mov rcx, qword [rbp + 0x430]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14005883b
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov qword [rbp + 0x440], 0
mov qword [rbp + 0x448], 7
mov word [rbp + 0x430], 0
mov rax, qword [rbp + 0x4a8]
cmp rax, 0x10
jb 0x1400588a4
mov rcx, qword [rbp + 0x490]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14005889f
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14005898a
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170138
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x1400588b2
mov r14, qword [r14]
lea rcx, [rbp + 0x2d0]
mov rdx, r14
call fcn.140059550
lea rcx, [rbp + 0x2d0]
call fcn.140028ae0
lea rsi, [rbp + 0x378]
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax + 0x2d0], rdi
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0xa8]
mov dword [rbp + rax + 0x2cc], ecx
lea rcx, [rbp + 0x2d8]
call fcn.14001ae90
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x378], rbx
mov rcx, rsi
call fcn.140170730
lea rsi, [rbp + 0x268]
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
mov qword [rbp + rax + 0x1c0], rdi
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0xa8]
mov dword [rbp + rax + 0x1bc], ecx
lea rcx, [rbp + 0x1c8]
call fcn.14001ae90
mov qword [rbp + 0x268], rbx
mov rcx, rsi
call fcn.140170730
nop
add rsp, 0x538
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14036ce4c
call fcn.140001370
call fcn.140001370
call fcn.140001370
call fcn.140001370
call fcn.1400013d0
call fcn.1400013d0
int3