Function at 0x1400333b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14016f8a0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
call fcn.1400170f0
mov rdi, rax
test rax, rax
je 0x140033465
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + htons]
cmp eax, 6
jl 0x140033465
lea edx, [rsi + 1]
lea rcx, [rbp - 0x60]
call fcn.140002860
nop
lea rdx, str.Checking
lea rcx, [rbp - 0x60]
call fcn.1400019a0
mov rcx, rax
mov rdx, qword [0x140167b68]
call fcn.1400019a0
mov rcx, rax
lea rdx, str._for_the_home_directory.
call fcn.1400019a0
mov rax, qword [rdi]
lea r9, [rbp - 0x60]
mov r8, qword [str.FileSystem]
lea edx, [rsi + 6]
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x60]
call fcn.140003bc0
mov rdx, qword [0x140167b68]
lea rcx, [rsp + 0x38]
call fcn.140033320
nop
call fcn.1400170f0
mov rdi, rax
test rax, rax
je 0x140033514
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + htons]
cmp eax, 5
jl 0x140033514
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.140002860
nop
lea rdx, str.Environment_value_for_variable
lea rcx, [rbp - 0x60]
call fcn.1400019a0
mov rcx, rax
mov rdx, qword [0x140167b68]
call fcn.1400019a0
mov rcx, rax
lea rdx, str._is
call fcn.1400019a0
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rcx, rax
call fcn.140001d10
mov rax, qword [rdi]
lea r9, [rbp - 0x60]
mov r8, qword [str.FileSystem]
mov edx, 5
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x60]
call fcn.140003bc0
cmp qword [rsp + 0x48], 0
jne 0x140033725
call fcn.1400170f0
mov rdi, rax
test rax, rax
je 0x14003357d
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + htons]
cmp eax, 3
jl 0x14003357d
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.140002860
nop
lea rdx, str.Home_dir_not_stored_in_environment__trying_to_fetch_manually_from_the_OS.
lea rcx, [rbp - 0x60]
call fcn.1400019a0
mov rax, qword [rdi]
lea r9, [rbp - 0x60]
mov r8, qword [str.FileSystem]
mov edx, 3
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x60]
call fcn.140003bc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x28]
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140033695
mov dword [rsp + 0x24], 0x104
lea r8, [rsp + 0x24]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x14003368a
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.140030af0
mov rdi, rax
lea rax, [rsp + 0x38]
cmp rax, rdi
je 0x14003364d
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14003361a
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033615
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400338f5
call fcn.1400b91c0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14003368a
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033685
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400338f5
call fcn.1400b91c0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400170f0
mov rdi, rax
test rax, rax
je 0x14003371f
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + htons]
cmp eax, 4
jl 0x14003371f
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.140002860
nop
lea rdx, str.Pulled
lea rcx, [rbp - 0x60]
call fcn.1400019a0
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rcx, rax
call fcn.140001d10
mov rcx, rax
lea rdx, str._as_home_directory_from_the_OS.
call fcn.1400019a0
mov rax, qword [rdi]
lea r9, [rbp - 0x60]
mov r8, qword [str.FileSystem]
mov edx, 4
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x60]
call fcn.140003bc0
cmp qword [rsp + 0x48], 0
jbe 0x14003374a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140031800
nop
mov edi, 1
jmp 0x140033767
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
lea rax, [rsp + 0x58]
mov edi, 2
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or edi, 4
mov dword [rsp + 0x20], edi
test dil, 2
je 0x1400337e1
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400337e1
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400337db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400338fb
call fcn.1400b91c0
nop
test dil, 1
je 0x14003382a
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14003382a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033825
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033901
call fcn.1400b91c0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003388b
lea rax, [rcx - 1]
cmp rcx, rax
jbe 0x140033907
mov r8, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140033850
mov r8, qword [rbx]
cmp byte [r8 + rax], 0x5c
je 0x14003388b
cmp rcx, rdx
jae 0x140033878
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140033870
mov rax, qword [rbx]
mov word [rax + rcx], 0x5c
jmp 0x14003388b
mov r9b, 0x5c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140009d30
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400338c4
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400338bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400338ef
call fcn.1400b91c0
mov rax, rbx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400b91a0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400bfe60
nop
call fcn.1400bfe60
nop
call fcn.1400bfe60
nop
call fcn.1400bfe60
int3
call fcn.140006630
int3