Function at 0x140020380
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xe18]
sub rsp, 0xf00
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0xdf0], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x10], 0
je 0x140020ba6
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.1400c0ac0
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x3b0]
call fcn.1400c0ac0
mov dword [rsp + 0x20], 0x20019
lea r9, [rbp + 0x3b0]
lea r8, str.ProgramFilesDir
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call fcn.1400226d0
mov rsi, 0xffffffffffffffff
xor r14d, r14d
test eax, eax
je 0x140020469
lea rcx, [rbp + 0x3b0]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140020430
cmp eax, 0x104
jg 0x140020469
mov rdx, r14
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbp + rdx + 0x3b0]
mov word [rbp + rdx + 0x1a0], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140020450
mov edx, 0x104
lea rcx, [rbp + 0x9d0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, 0x104
lea rcx, [rbp + 0xbe0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rbp + 0x7c0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rbp + 0x3b0]
mov rcx, rbx
call fcn.14001ea90
mov r10, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400204ca
mov r10, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp rax, 7
jb 0x1400205d6
lea r11, [rax - 6]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, [0x140107010]
nop word [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x1400205d6
cmp word [rcx], 0x25
je 0x14002050f
add rcx, 2
sub rax, 1
jmp 0x1400204f9
test rcx, rcx
je 0x1400205d6
mov r8d, 7
mov rdx, rbx
mov r9, rcx
sub r9, rbx
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x14002062f
add rdx, 2
sub r8, 1
jne 0x140020530
sub rcx, r10
sar rcx, 1
cmp rcx, rsi
je 0x1400205d6
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rax, [rbp + 0x7c0]
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], r14w
jne 0x140020580
lea rdx, [rbp + 0x7c0]
lea rcx, [rsp + 0x30]
call fcn.140007ac0
nop
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
mov r8d, 7
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140007ac0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400276d0
mov r10, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400205e3
mov r10, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp rax, 0xa
jb 0x1400206fb
lea r11, [rax - 9]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, str._APPDATA__
nop dword [rax]
nop word [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x1400206fb
cmp word [rcx], 0x25
je 0x140020638
add rcx, 2
sub rax, 1
jmp 0x140020619
add rcx, 2
jmp 0x1400204f0
test rcx, rcx
je 0x1400206fb
mov r8d, 0xa
mov rdx, rbx
mov r9, rcx
sub r9, rbx
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x14002074f
add rdx, 2
sub r8, 1
jne 0x140020650
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x1400206fb
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rax, [rbp + 0x3b0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400206a0
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x50]
call fcn.140007ac0
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov r8d, 9
lea rdx, str._APPDATA_
lea rcx, [rsp + 0x30]
call fcn.140007ac0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400276d0
mov r10, rdi
cmp qword [rdi + 0x18], 8
jb 0x140020708
mov r10, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp rax, 0xe
jb 0x140020817
lea r11, [rax - 0xd]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, str._PROGRAMFILES_
nop dword [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140020817
cmp word [rcx], 0x25
je 0x140020758
add rcx, 2
sub rax, 1
jmp 0x140020739
add rcx, 2
jmp 0x140020610
test rcx, rcx
je 0x140020817
mov r8d, reloc.WS2_32.dll_ntohl
mov rdx, rbx
mov r9, rcx
sub r9, rbx
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x14002086f
add rdx, 2
sub r8, 1
jne 0x140020770
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x140020817
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rax, [rbp + 0x1a0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400207c0
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x50]
call fcn.140007ac0
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov r8d, reloc.WS2_32.dll_ntohl
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140007ac0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400276d0
mov r10, rdi
cmp qword [rdi + 0x18], 8
jb 0x140020824
mov r10, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp rax, 9
jb 0x140020937
lea r11, [rax - 8]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, str._WINDOWS_
nop dword [rax]
nop dword [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140020937
cmp word [rcx], 0x25
je 0x140020878
add rcx, 2
sub rax, 1
jmp 0x140020859
add rcx, 2
jmp 0x140020730
test rcx, rcx
je 0x140020937
mov r8d, 9
mov rdx, rbx
mov r9, rcx
sub r9, rbx
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x14002098f
add rdx, 2
sub r8, 1
jne 0x140020890
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x140020937
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rax, [rbp + 0x9d0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400208e0
lea rdx, [rbp + 0x9d0]
lea rcx, [rsp + 0x50]
call fcn.140007ac0
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140007ac0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400276d0
mov r10, rdi
cmp qword [rdi + 0x18], 8
jb 0x140020944
mov r10, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp rax, 8
jb 0x140020a57
lea r11, [rax - 7]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, str._SYSTEM_
nop dword [rax]
nop dword [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140020a57
cmp word [rcx], 0x25
je 0x140020998
add rcx, 2
sub rax, 1
jmp 0x140020979
add rcx, 2
jmp 0x140020850
test rcx, rcx
je 0x140020a57
mov r8d, 8
mov rdx, rbx
mov r9, rcx
sub r9, rbx
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140020aaf
add rdx, 2
sub r8, 1
jne 0x1400209b0
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x140020a57
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rax, [rbp + 0xbe0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x140020a00
lea rdx, [rbp + 0xbe0]
lea rcx, [rsp + 0x50]
call fcn.140007ac0
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov r8d, 8
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140007ac0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400276d0
mov r10, rdi
cmp qword [rdi + 0x18], 8
jb 0x140020a64
mov r10, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp rax, 9
jb 0x140020ba6
lea r11, [rax - 8]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, str._CURRENT_
nop dword [rax]
nop dword [rax + rax]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140020ba6
cmp word [rcx], 0x25
je 0x140020ab8
add rcx, 2
sub rax, 1
jmp 0x140020a99
add rcx, 2
jmp 0x140020970
test rcx, rcx
je 0x140020ba6
mov r8d, 9
mov rdx, rbx
mov r9, rcx
sub r9, rbx
movzx eax, word [rdx]
cmp word [rdx + r9], ax
jne 0x140020bcf
add rdx, 2
sub r8, 1
jne 0x140020ad0
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x140020ba6
lea rcx, [rbp - 0x70]
mov rax, rsi
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140020b00
cmp word [rbp + rax*2 - 0x72], 0x5c
jne 0x140020b2d
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x140020bd8
mov word [rbp + rax - 0x70], r14w
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rax, [rbp - 0x70]
nop
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140020b50
mov r8, rsi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140007ac0
nop
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140007ac0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400276d0
xor eax, eax
mov rcx, qword [rbp + 0xdf0]
xor rcx, rsp
call fcn.140027790
lea r11, [rsp + 0xf00]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
add rcx, 2
jmp 0x140020a90
call fcn.1400278c4
int3