Function at 0x14002e550
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov ebx, 0x208
mov qword [rsp + 0x40], rbx
cmp edx, 2
jne 0x14002e5c8
cmp qword [0x1405274f8], r12
je 0x14002e9ad
lea rdx, [0x1405274e8]
call fcn.140018d90
jmp 0x14002ec12
cmp edx, 3
jne 0x14002e7af
lea r8, [rsp + 0x40]
call fcn.140197510
lea r14, [0x14053bdd0]
cmp eax, 0xfffff026
jne 0x14002e693
lea rcx, [rsp + 0x78]
call fcn.1401973a0
test eax, eax
jne 0x14002e695
mov r15, qword [rbp - 0x70]
mov rsi, 0xffffffffffffffff
nop word [rax + rax]
inc rsi
cmp byte [r15 + rsi], r12b
jne 0x14002e610
cmp rsi, qword [rsp + 0x40]
jb 0x14002e652
call fcn.140369a80
mov ebx, dword [rax]
mov rcx, qword [rsp + 0x78]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
call fcn.140369a80
mov ebx, dword [rax]
mov rcx, r15
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
jmp 0x14002e697
lea r8, [rsi + 1]
mov rdx, r15
mov rcx, r14
call fcn.140361cf0
call fcn.140369a80
mov ebx, dword [rax]
mov rcx, qword [rsp + 0x78]
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
call fcn.140369a80
mov ebx, dword [rax]
mov rcx, r15
call qword [fcn.140369ab4]
call fcn.140369a80
mov dword [rax], ebx
jmp 0x14002e6ce
test eax, eax
jns 0x14002e6c9
movdqa xmm0, xmmword [0x1404d5dd0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], r12b
xor r8d, r8d
lea rdx, [0x14042d0b5]
lea rcx, [rsp + 0x78]
call fcn.140005650
lea rax, [rsp + 0x78]
mov ebx, 2
jmp 0x14002e6fb
mov rsi, qword [rsp + 0x40]
movdqa xmm0, xmmword [0x1404d5dd0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], r12b
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140005650
lea rax, [rsp + 0x58]
mov ebx, 4
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 1
test bl, 4
je 0x14002e761
and ebx, 0xfffffffb
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14002e761
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e75b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ec58
call fcn.140343460
nop
test bl, 2
je 0x14002ec12
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14002ec12
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e7a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ec5e
call fcn.140343460
jmp 0x14002ec12
cmp edx, 4
jne 0x14002e9a5
lea rdx, [rbp - 0x60]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
lea r14, [0x14053bdd0]
test rax, rax
je 0x14002e878
cmp rax, 0x106
ja 0x14002e88d
cmp word [rbp + rax*2 - 0x62], 0x5c
jne 0x14002e812
cmp rax, 3
jne 0x14002e7fa
cmp word [rbp - 0x5e], 0x3a
je 0x14002e812
dec rax
add rax, rax
cmp rax, 0x20c
jae 0x14002ec6a
mov word [rbp + rax - 0x60], r12w
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov rsi, 0xffffffffffffffff
mov r9d, esi
lea r8, [rbp - 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14002e878
cmp eax, ebx
ja 0x14002e88d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
mov r9d, esi
lea r8, [rbp - 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14002e971
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
test eax, eax
jns 0x14002e974
movdqa xmm0, xmmword [0x1404d5dd0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], r12b
xor r8d, r8d
lea rdx, [0x14042d0b5]
lea rcx, [rsp + 0x58]
call fcn.140005650
lea rax, [rsp + 0x58]
mov ebx, 8
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 1
test bl, 0x10
je 0x14002e923
and ebx, 0xffffffef
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14002e923
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e91d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ec64
call fcn.140343460
nop
test bl, 8
je 0x14002ec12
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14002ec12
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e7a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ec46
jmp 0x14002e7a5
lea ebx, [rax - 1]
movdqa xmm0, xmmword [0x1404d5dd0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], r12b
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140005650
lea rax, [rsp + 0x78]
mov ebx, reloc.WS2_32.dll_recv
jmp 0x14002e8be
test edx, edx
jne 0x14002eae2
lea rdx, [rsp + 0x40]
lea r14, [0x14053bdd0]
mov rcx, r14
call fcn.1401967d0
test eax, eax
jns 0x14002e9d9
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], r12b
jmp 0x14002ec12
movdqa xmm0, xmmword [0x1404d5dd0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], r12b
mov r8, qword [rsp + 0x40]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140005650
nop
lea rcx, [rsp + 0x58]
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x70]
cmp r10, 0x10
cmovae rcx, r9
mov rsi, 0xffffffffffffffff
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14002ea53
lea rax, [rdx - 1]
mov r8, rsi
cmp rax, rsi
cmovb r8, rax
add r8, rcx
cmp byte [r8], 0x5c
je 0x14002ea4e
nop
cmp r8, rcx
je 0x14002ea53
dec r8
cmp byte [r8], 0x5c
jne 0x14002ea40
sub r8, rcx
jmp 0x14002ea56
mov r8, rsi
cmp r8, rsi
je 0x14002eacc
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
cmp rdx, r8
cmovb r8, rdx
lea rdx, [rsp + 0x58]
cmp r10, 0x10
cmovae rdx, r9
mov rcx, rdi
call fcn.140005650
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14002ec12
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e7a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ec4c
jmp 0x14002e7a5
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x10], xmm1
jmp 0x14002ec12
cmp edx, 1
jne 0x14002ec03
lea rdx, [rsp + 0x40]
lea r14, [0x14053bdd0]
mov rcx, r14
call fcn.1401968d0
movdqa xmm0, xmmword [0x1404d5dd0]
test eax, eax
jns 0x14002eb36
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], r12b
xor r8d, r8d
lea rdx, [0x14042d0b5]
lea rcx, [rsp + 0x58]
call fcn.140005650
lea rax, [rsp + 0x58]
mov ebx, 0x20
jmp 0x14002eb5c
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], r12b
mov r8, qword [rsp + 0x40]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140005650
lea rax, [rsp + 0x78]
mov ebx, 0x40
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 1
test bl, 0x40
je 0x14002ebc1
and ebx, 0xffffffbf
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14002ebc1
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ebbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ec40
call fcn.140343460
nop
test bl, 0x20
je 0x14002ec12
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14002ec12
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e7a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ec52
jmp 0x14002e7a5
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r12b
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140343400
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14036500c
nop
call fcn.14036500c
int3
call fcn.14036500c
int3
call fcn.14036500c
nop
call fcn.14036500c
nop
call fcn.14036500c
nop
call fcn.14036500c
nop
call fcn.140343ba0
int3