Function at 0x140050220
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x548
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4c0], 0xfffffffffffffffe
mov rsi, r9
mov rbx, r8
mov rdi, rdx
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140050f1f
mov qword [rbp + 0x408], rbx
mov qword [rbp + 0x410], rsi
movabs rax, 0x3eab682b4cf837eb
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x440], rax
movabs rcx, 0xa0996c3b4e1c0a9c
mov qword [rbp + 0x1c0], rcx
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x448], rax
movabs rax, 0x3eab06422e8a5387
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 + 0x440]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x440], xmm0
mov r14, qword [rdi + 0x10]
lea rcx, [rbp + 0x440]
call fcn.14035e7e0
mov rbx, rax
movabs rcx, 0x7fffffffffffffff
mov rax, r14
xor rax, rcx
cmp rax, rbx
jb 0x140050f39
mov r12, qword [rdi]
mov qword [rbp + 0x438], rdi
mov rcx, qword [rdi + 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x460], xmm0
mov r15, rbx
add r15, r14
lea rsi, [rbp + 0x460]
mov edi, reloc.WS2_32.dll_ntohs
mov r13, rsi
cmp r15, 0x10
jb 0x1400503be
mov rax, r15
or rax, 0xf
mov qword [rbp + 0x418], rcx
js 0x140050391
cmp rax, 0x17
mov edi, reloc.WS2_32.dll_shutdown
cmovae rdi, rax
cmp rdi, 0xfff
jae 0x14005039b
lea rcx, [rdi + 1]
call fcn.140170c88
mov r13, rax
jmp 0x1400503b0
movabs rdi, 0x7fffffffffffffff
lea rcx, [rdi + 0x28]
call fcn.140170c88
lea r13, [rax + 0x27]
and r13, 0xffffffffffffffe0
mov qword [r13 - 8], rax
mov qword [rbp + 0x460], r13
mov rcx, qword [rbp + 0x418]
cmp rcx, 0x10
cmovb r12, qword [rbp + 0x438]
mov qword [rbp + 0x470], r15
mov qword [rbp + 0x478], rdi
mov rcx, r13
mov rdx, r12
mov r8, r14
call fcn.1403766a0
add r14, r13
lea rdx, [rbp + 0x440]
mov rcx, r14
mov r8, rbx
call fcn.1403766a0
mov byte [r13 + r15], 0
mov rax, qword [rbp + 0x470]
cmp qword [rbp + 0x478], 0x10
jb 0x140050419
mov rsi, qword [rbp + 0x460]
mov qword [rbp + 0x3e8], rsi
mov qword [rbp + 0x3f0], rax
lea rcx, [rbp + 0x4a0]
lea rdx, [rbp + 0x3e8]
call fcn.14005e580
movabs rdi, 0x7fffffffffffffff
xorps xmm0, xmm0
movaps xmmword [rbp + 0x490], xmm0
movaps xmmword [rbp + 0x480], xmm0
lea rcx, [rbp - 0x50]
call fcn.14035fe2c
cmp rax, rdi
jae 0x140050f3e
mov r14, rax
cmp rax, 7
ja 0x1400504a6
mov qword [rbp + 0x490], r14
mov qword [rbp + 0x498], 7
lea r8, [r14 + r14]
lea rcx, [rbp + 0x480]
lea rdx, [rbp - 0x50]
call fcn.1403766a0
lea rax, [r14*2 + 0x480]
add rax, rbp
jmp 0x140050547
mov qword [rbp + 0x498], 7
mov rax, r14
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140050f43
cmp rax, 0xb
mov esi, 0xa
cmovae rsi, rax
lea rcx, [rsi + rsi]
cmp rsi, 0x7ff
jb 0x140050512
movabs rax, 0x7fffffffffffffec
cmp rsi, rax
jae 0x140050f43
add rcx, 0x29
call fcn.140170c88
add byte [rcx - 0x77], cl
invalid
add r15, 0x27
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x14005051e
add rcx, 2
call fcn.140170c88
mov r15, rax
mov qword [rbp + 0x480], r15
mov qword [rbp + 0x490], r14
mov qword [rbp + 0x498], rsi
lea r8, [r14 + r14]
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.1403766a0
lea rax, [r15 + r14*2]
mov word [rax], 0
lea r15, [rbp + 0x2d0]
lea r8, [rbp + 0x480]
lea r9, [rbp + 0x4a0]
mov rcx, r15
call fcn.14005d650
mov rsi, qword [rbp + 0x408]
cmp qword [rbp + 0x2e8], 8
jb 0x140050581
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.140030da0
mov rax, qword [rbp + 0x2e8]
cmp rax, 8
jb 0x1400505f0
mov rcx, qword [rbp + 0x2d0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400505eb
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov qword [rbp + 0x2e0], 0
mov qword [rbp + 0x2e8], 7
mov word [rbp + 0x2d0], 0
mov rax, qword [rbp + 0x498]
cmp rax, 8
jb 0x14005065b
mov rcx, qword [rbp + 0x480]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140050656
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov rax, qword [rbp + 0x4b8]
cmp rax, 8
jb 0x1400506a7
mov rcx, qword [rbp + 0x4a0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400506a2
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov qword [rbp + 0x4b0], 0
mov qword [rbp + 0x4b8], 7
mov word [rbp + 0x4a0], 0
mov rax, qword [rbp + 0x478]
cmp rax, 0x10
jb 0x14005070b
mov rcx, qword [rbp + 0x460]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050706
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
cmp dword [rbp + rax + 0x1d0], 0
jne 0x140050ecf
mov r15, qword [rbp + rax + 0x208]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x2d0], xmm0
movaps xmmword [rbp + 0x2e0], xmm0
test r15, r15
je 0x1400507b1
mov rax, qword [r15 + 0x38]
mov rax, qword [rax]
test rax, rax
je 0x14005075c
mov rcx, qword [r15 + 0x50]
cmp dword [rcx], 0
jle 0x14005075c
movzx eax, byte [rax]
jmp 0x14005076a
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x30]
cmp eax, 0xffffffff
je 0x1400507b1
mov qword [rbp + 0x4a0], 0
mov word [rbp + 0x4a8], 1
mov qword [rbp + 0x460], r15
mov byte [rbp + 0x468], 1
mov byte [rbp + 0x469], al
lea rcx, [rbp + 0x2d0]
lea rdx, [rbp + 0x460]
lea r8, [rbp + 0x4a0]
xor r9d, r9d
call fcn.14004d5b0
jmp 0x1400507ce
mov qword [rbp + 0x2e0], 0
mov qword [rbp + 0x2e8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x2d0], 0
lea r15, [rbp + 0x2d0]
mov rax, qword [rsi + 0x18]
cmp r15, rsi
je 0x14005082f
cmp rax, 0x10
jb 0x140050818
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050813
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
movaps xmm0, xmmword [rbp + 0x2d0]
movaps xmm1, xmmword [rbp + 0x2e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14005086d
cmp rax, 0x10
jb 0x14005086d
mov rcx, qword [rbp + 0x2d0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050868
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
lea rcx, [rbp + 0x1c0]
call fcn.1400315e0
movabs rax, 0x3eab064249eb27e2
mov qword [rbp + 0x2d0], rax
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x420], rax
movabs rcx, 0xa0996c3b4e1c0a9c
mov qword [rbp + 0x2d0], rcx
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x428], rax
movabs rax, 0x3eab06422e8a5387
mov qword [rbp + 0x2d0], rax
mov qword [rbp + 0x4a0], rcx
mov rax, qword [rbp + 0x4a0]
mov qword [rbp + 0x2d8], rax
mov qword [rbp + 0x4a0], r15
mov rax, qword [rbp + 0x4a0]
movaps xmm0, xmmword [rbp + 0x420]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x420], xmm0
mov rsi, qword [rbp + 0x438]
mov rbx, qword [rsi + 0x10]
lea rcx, [rbp + 0x420]
call fcn.14035e7e0
mov r15, rax
mov rax, rbx
xor rax, rdi
cmp rax, r15
jb 0x140050f48
mov rcx, rdi
mov rdi, qword [rsi]
mov r14, qword [rsi + 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x490], xmm0
movaps xmmword [rbp + 0x480], xmm0
lea rsi, [r15 + rbx]
mov r13d, reloc.WS2_32.dll_ntohs
lea r12, [rbp + 0x480]
cmp rsi, 0x10
jb 0x1400509a8
mov rax, rsi
or rax, 0xf
mov r13, rcx
js 0x14005097a
cmp rax, 0x17
mov r13d, reloc.WS2_32.dll_shutdown
cmovae r13, rax
cmp r13, 0xfff
jb 0x140050995
lea rcx, [r13 + 0x28]
call fcn.140170c88
mov r12, rax
add r12, 0x27
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x1400509a1
lea rcx, [r13 + 1]
call fcn.140170c88
mov r12, rax
mov qword [rbp + 0x480], r12
cmp r14, 0x10
mov rdx, qword [rbp + 0x438]
cmovae rdx, rdi
mov qword [rbp + 0x490], rsi
mov qword [rbp + 0x498], r13
mov rcx, r12
mov r8, rbx
call fcn.1403766a0
add rbx, r12
lea rdx, [rbp + 0x420]
mov rcx, rbx
mov r8, r15
call fcn.1403766a0
mov byte [r12 + rsi], 0
mov rax, qword [rbp + 0x490]
cmp qword [rbp + 0x498], 0x10
lea rcx, [rbp + 0x480]
jb 0x140050a09
mov rcx, qword [rbp + 0x480]
mov qword [rbp + 0x3f8], rcx
mov qword [rbp + 0x400], rax
lea rcx, [rbp + 0x460]
lea rdx, [rbp + 0x3f8]
call fcn.14005e580
xorps xmm0, xmm0
movaps xmmword [rbp + 0x450], xmm0
movaps xmmword [rbp + 0x440], xmm0
lea rcx, [rbp - 0x50]
call fcn.14035fe2c
mov rdi, rax
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jae 0x140050f4d
cmp rdi, 7
ja 0x140050a96
mov qword [rbp + 0x450], rdi
mov qword [rbp + 0x458], 7
lea r8, [rdi + rdi]
lea rcx, [rbp + 0x440]
lea rdx, [rbp - 0x50]
call fcn.1403766a0
lea rax, [rdi*2 + 0x440]
add rax, rbp
jmp 0x140050b37
mov qword [rbp + 0x458], 7
mov rax, rdi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140050f52
cmp rax, 0xb
mov esi, 0xa
cmovae rsi, rax
lea rcx, [rsi + rsi]
cmp rsi, 0x7ff
jb 0x140050b02
movabs rax, 0x7fffffffffffffec
cmp rsi, rax
jae 0x140050f52
add rcx, 0x29
call fcn.140170c88
mov rbx, rax
add rbx, 0x27
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140050b0e
add rcx, 2
call fcn.140170c88
mov rbx, rax
mov qword [rbp + 0x440], rbx
mov qword [rbp + 0x450], rdi
mov qword [rbp + 0x458], rsi
lea r8, [rdi + rdi]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1403766a0
lea rax, [rbx + rdi*2]
mov word [rax], 0
lea rdi, [rbp + 0x4a0]
lea r8, [rbp + 0x440]
lea r9, [rbp + 0x460]
mov rcx, rdi
call fcn.14005d650
cmp qword [rbp + 0x4b8], 8
jb 0x140050b6a
mov rdi, qword [rbp + 0x4a0]
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x2d0]
mov rdx, rdi
mov r8d, 0x20
mov r9d, 0x40
call fcn.140030da0
mov rax, qword [rbp + 0x4b8]
cmp rax, 8
jb 0x140050bd9
mov rcx, qword [rbp + 0x4a0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140050bd4
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov qword [rbp + 0x4b0], 0
mov qword [rbp + 0x4b8], 7
mov word [rbp + 0x4a0], 0
mov rax, qword [rbp + 0x458]
cmp rax, 8
jb 0x140050c44
mov rcx, qword [rbp + 0x440]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140050c3f
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov rax, qword [rbp + 0x478]
cmp rax, 8
jb 0x140050c90
mov rcx, qword [rbp + 0x460]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140050c8b
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov qword [rbp + 0x470], 0
mov qword [rbp + 0x478], 7
mov word [rbp + 0x460], 0
mov rax, qword [rbp + 0x498]
cmp rax, 0x10
jb 0x140050cf4
mov rcx, qword [rbp + 0x480]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050cef
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
cmp dword [rbp + rax + 0x2e0], 0
jne 0x140050e74
mov rdi, qword [rbp + rax + 0x318]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x4a0], xmm0
movaps xmmword [rbp + 0x4b0], xmm0
test rdi, rdi
je 0x140050d9a
mov rax, qword [rdi + 0x38]
mov rax, qword [rax]
test rax, rax
je 0x140050d45
mov rcx, qword [rdi + 0x50]
cmp dword [rcx], 0
jle 0x140050d45
movzx eax, byte [rax]
jmp 0x140050d53
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
cmp eax, 0xffffffff
je 0x140050d9a
mov qword [rbp + 0x460], 0
mov word [rbp + 0x468], 1
mov qword [rbp + 0x480], rdi
mov byte [rbp + 0x488], 1
mov byte [rbp + 0x489], al
lea rcx, [rbp + 0x4a0]
lea rdx, [rbp + 0x480]
lea r8, [rbp + 0x460]
xor r9d, r9d
call fcn.14004d5b0
jmp 0x140050db7
mov qword [rbp + 0x4b0], 0
mov qword [rbp + 0x4b8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x4a0], 0
lea rcx, [rbp + 0x4a0]
mov rsi, qword [rbp + 0x410]
mov rax, qword [rsi + 0x18]
cmp rcx, rsi
je 0x140050e1f
cmp rax, 0x10
jb 0x140050e08
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050e03
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
movaps xmm0, xmmword [rbp + 0x4a0]
movaps xmm1, xmmword [rbp + 0x4b0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140050e5d
cmp rax, 0x10
jb 0x140050e5d
mov rcx, qword [rbp + 0x4a0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140050e58
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140050f34
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
lea rcx, [rbp + 0x2d0]
call fcn.1400315e0
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
lea rsi, [rbp + 0x380]
lea rcx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax + 0x2d0], rcx
mov rax, qword [rbp + 0x2d0]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0xb0]
mov dword [rbp + rax + 0x2cc], ecx
lea rcx, [rbp + 0x2e0]
call fcn.14001fb30
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x380], rax
mov rcx, rsi
call fcn.1401712a0
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
lea rsi, [rbp + 0x270]
lea rcx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax + 0x1c0], rcx
mov rax, qword [rbp + 0x1c0]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0xb0]
mov dword [rbp + rax + 0x1bc], ecx
lea rcx, [rbp + 0x1d0]
call fcn.14001fb30
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x270], rax
mov rcx, rsi
call fcn.1401712a0
nop
add rsp, 0x548
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140351524
call fcn.140002160
call fcn.140002160
call fcn.140003f60
call fcn.140002160
call fcn.140002160
call fcn.140003f60
int3