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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x40c], 0
push 0x400
lea eax, [ebp - 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10019c35
push 0x5c
lea ecx, [ebp - 0x40c]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10019c35
mov edx, dword [ebp - 4]
mov byte [edx], 0
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x410], ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp - 8]
add edx, eax
mov dword [ebp - 8], edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 8], ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebp - 8]
add edx, eax
mov dword [ebp - 8], edx
push 0
push 0
push 0x10101db0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 4
push 0x3000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, dword [ebp - 8]
jae 0x10019cf9
lea ecx, [ebp - 0x40c]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x414], eax
jmp 0x10019d02
mov edx, dword [ebp - 8]
mov dword [ebp - 0x414], edx
mov eax, dword [ebp - 0x414]
push eax
lea ecx, [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x410]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x410]
add ecx, 1
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
push edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp - 0x410]
add ecx, eax
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp - 0x410]
add ecx, eax
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x410]
add ecx, eax
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
push edx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0x410]
add ecx, eax
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x410]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x410]
mov byte [ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret