Function at 0x14002187e
Capabilities:
Get common file path
Get disk information
Get process image filename
Query environment variable

Disassembly:
jmp 0x14003bbd0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1048
call fcn.140020424
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2ea
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1068]
mov rax, qword [0x1400a9e80]
xor rax, rbp
mov qword [rbp + 0x1010], rax
lea rcx, [0x1400b60fb]
call fcn.140021856
mov rcx, qword [rbp + 0x1040]
call fcn.140020249
movzx eax, al
test eax, eax
je 0x14003bc3d
xor al, al
jmp 0x14003beaf
mov r8, qword [rbp + 0x1040]
mov edx, 0x104
lea rcx, [rbp + 0x8d0]
call fcn.1400213bf
mov edx, 0x104
lea rcx, [rbp + 0x8d0]
call fcn.14003c0c0
mov qword [rbp + 0xaf8], 0
lea r8, [rbp + 0xaf8]
mov edx, 0x104
lea rcx, [rbp + 0x8d0]
call fcn.140020924
cmp dword [rbp + 0x1048], 0xffffffff
jne 0x14003bcc1
mov qword [rbp + 0xb18], 0
lea r8, [rbp + 0xb18]
mov edx, 0x104
mov rcx, qword [rbp + 0x1040]
call fcn.140020924
mov eax, dword [rbp + 0xb18]
mov dword [rbp + 0x1048], eax
mov edx, 0x104
lea rcx, [rbp + 0x470]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x104
lea rdx, [rbp + 0x6a0]
mov rcx, rax
call fcn.1400202f3
mov eax, eax
mov qword [rbp + 0xb38], rax
mov edx, 0x104
lea rcx, [rbp + 0x6a0]
call fcn.14003c0c0
lea r8, [rbp + 0xb38]
mov edx, 0x104
lea rcx, [rbp + 0x6a0]
call fcn.140020924
mov r8d, 0x104
lea rdx, [rbp + 0x10]
lea rcx, str.SystemDrive
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x14003bead
mov r8d, 0x104
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x14003bead
lea r8, str.WindowsSystem32_
mov edx, 0x104
lea rcx, [rbp + 0x240]
call fcn.140020b90
mov qword [rbp + 0xb58], 0
lea r8, [rbp + 0xb58]
mov edx, 0x104
lea rcx, [rbp + 0x240]
call fcn.140020924
mov eax, dword [rbp + 0x1048]
cmp qword [rbp + 0xb58], rax
jae 0x14003bdb8
mov rax, qword [rbp + 0xb58]
mov qword [rbp + 0x1008], rax
jmp 0x14003bdc5
mov eax, dword [rbp + 0x1048]
mov qword [rbp + 0x1008], rax
xor edx, edx
mov rax, qword [rbp + 0x1008]
mov ecx, 2
div rcx
mov r8d, eax
mov rdx, qword [rbp + 0x1040]
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x14003bdf8
xor al, al
jmp 0x14003beaf
lea r8, [0x140070fbc]
mov edx, 0x104
lea rcx, [rbp + 0x470]
call fcn.140020b90
mov qword [rbp + 0xb78], 0
lea r8, [rbp + 0xb78]
mov edx, 0x104
lea rcx, [rbp + 0x470]
call fcn.140020924
mov rax, qword [rbp + 0xaf8]
cmp qword [rbp + 0xb78], rax
jae 0x14003be53
mov rax, qword [rbp + 0xb78]
mov qword [rbp + 0x1008], rax
jmp 0x14003be61
mov rax, qword [rbp + 0xaf8]
mov qword [rbp + 0x1008], rax
xor edx, edx
mov rax, qword [rbp + 0x1008]
mov ecx, 2
div rcx
mov r8d, eax
lea rdx, [rbp + 0x8d0]
lea rcx, [rbp + 0x470]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x14003be91
xor al, al
jmp 0x14003beaf
lea rdx, [rbp + 0x8d0]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14003bead
xor al, al
jmp 0x14003beaf
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140070600]
call fcn.1400213b5
mov rax, rdi
mov rcx, qword [rbp + 0x1010]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x1028]
pop rdi
pop rbp
ret