Function at 0x140001dfc
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2ce0]
mov eax, 0x2de0
call fcn.14000c9b0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2e20], rbx
mov rax, qword [0x1400163e0]
xor rax, rsp
mov qword [rbp + 0x2cd0], rax
mov r12, rdx
mov rbx, rcx
mov byte [rbp + 0x14d0], 0
xor edx, edx
mov r8d, 0xfff
lea rcx, [rbp + 0x14d1]
call sub.MSVCR100.dll_memset
mov byte [rbp + 0x24d0], 0
xor edx, edx
mov r8d, 0x7ff
lea rcx, [rbp + 0x24d1]
call sub.MSVCR100.dll_memset
mov edi, 0x800
mov r8d, edi
lea rdx, [rbp + 0x24d0]
lea rcx, [0x14000f6b8]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001eb1
cmp eax, edi
jae 0x140001eb1
lea rdx, [rbp + 0x24d0]
lea rcx, [rbp + 0x14d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140001ede
lea rcx, [rbp + 0x80]
call fcn.14000bcb8
nop
lea rdx, [rbp + 0x14d0]
lea rcx, [rbp + 0x80]
call fcn.14000c6a8
nop
lea rcx, [rbp + 0x80]
call fcn.14000bcd8
lea rdx, [0x14000f6c8]
lea rcx, [rbp + 0x14d0]
call qword [sym.imp.MSVCR100.dll__mbsstr]
test rax, rax
jne 0x14000209a
mov byte [rbp + 0x13c0], al
mov r13d, 0x103
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x13c1]
call sub.MSVCR100.dll_memset
mov byte [rbp + 0x11a0], 0
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x11a1]
call sub.MSVCR100.dll_memset
lea edi, [r13 + 1]
mov edx, edi
lea rcx, [rbp + 0x13c0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r8, [rbp + 0x13c0]
lea rdx, [0x14000f6e8]
lea rcx, [rbp + 0x11a0]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x11a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
mov byte [rbp + 0x12b0], 0
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x12b1]
call sub.MSVCR100.dll_memset
mov byte [rbp + 0x1090], 0
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x1091]
call sub.MSVCR100.dll_memset
mov r8d, edi
lea rdx, [rbp + 0x12b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0x12b0]
call qword [sym.imp.MSVCR100.dll_strrchr]
test rax, rax
je 0x140001fcf
mov byte [rax], 0
lea r8, [rbp + 0x12b0]
lea rdx, [0x14000f62c]
lea rcx, [rbp + 0x1090]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1090]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rsi, 0xffffffffffffffff
jne 0x140002034
cmp rax, rsi
je 0x14000209a
lea r9, [rbp + 0x1090]
mov r8, rbx
lea rdx, [0x14000f758]
lea rbx, [0x140016580]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rdi
jmp 0x140002082
lea r9, [rbp + 0x11a0]
mov r8, rbx
lea rbx, [0x140016580]
mov rcx, rbx
cmp rax, 0xffffffffffffffff
je 0x140002072
lea rax, [rbp + 0x1090]
mov qword [rsp + 0x20], rax
lea rdx, [0x14000f710]
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000202f
lea rdx, [0x14000f738]
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140002f00
mov rcx, qword [rbp + 0x2cd0]
xor rcx, rsp
call fcn.14000c970
mov rbx, qword [rsp + 0x2e20]
add rsp, 0x2de0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret