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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
push ebx
push esi
push edi
xor ebx, ebx
push 0x143c
push ebx
push 0x10028d40
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.10014780
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10029240
mov dword [0x10029f24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [0x10029f24]
push eax
call fcn.100156ca
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ecx
pop ecx
push 0x105
mov edi, 0x10029f28
push edi
push ebx
call esi
test eax, eax
je 0x1001acc2
push 0x5c
push edi
call fcn.1001662a
pop ecx
pop ecx
mov dword [0x1002a030], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1001a164
mov dword [0x10028e04], eax
push dword [eax]
call fcn.1001a263
pop ecx
pop ecx
test eax, eax
je 0x1001acec
mov dword [0x10028f08], 3
jmp 0x1001acff
call fcn.1001a1a6
xor ecx, ecx
test eax, eax
setg cl
inc ecx
mov dword [0x10028f08], ecx
mov eax, dword [ebp + 8]
mov dword [0x10028f0c], eax
mov eax, 0x80
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x10028e88
lea eax, [ebp - 8]
push eax
mov eax, dword [0x10028e04]
push 0x10028e08
push dword [eax]
push ebx
call dword [0x1002a288]
mov edi, 0x10028f10
cmp dword [ebp + 0xc], ebx
je 0x1001ad4b
mov ebx, 0x104
push ebx
push dword [ebp + 0xc]
jmp 0x1001ad59
cmp dword [ebp + 0x10], ebx
mov ebx, 0x104
push ebx
je 0x1001ad64
push dword [ebp + 0x10]
push edi
call fcn.100148c4
add esp, 0xc
jmp 0x1001ad6d
push edi
push dword [0x10028f0c]
call esi
push 0x20
push 0x5c
push edi
call fcn.1001662a
pop ecx
pop ecx
push eax
mov esi, 0x10028de4
push esi
call fcn.100148c4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x10029014
push edi
mov byte [eax + 0x10028de0], 0
call fcn.1001664e
push 0
push esi
push 0x10029014
push ebx
mov edi, 0x1002913c
push edi
push 0x1001d318
call fcn.1001693c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x129f
mov byte [eax + 0x1002913b], 0
call fcn.10015612
push 0
push eax
push edi
push ebx
push edi
push 0x1001d2d2
mov dword [ebp + 0xc], eax
call fcn.1001693c
lea eax, [ebp + 0xc]
push eax
call fcn.100156b9
push 0x10029240
push 0xf
push 0xa
push 0x10029118
call fcn.100166e0
add esp, 0x30
push 0x10029c04
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call fcn.10019b2b
add esp, 0xc
push eax
call fcn.1001c755
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1001a2b0
mov esi, 0x9c
push esi
movsx eax, al
push 0
mov edi, 0x10028d40
push edi
mov dword [0x10029c14], eax
call fcn.10014780
add esp, 0x10
push edi
mov dword [0x10028d40], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002a178], eax
call fcn.1001ab7f
push eax
mov dword [0x10028de0], eax
call fcn.1001aba6
mov dword [esp], 0x103
mov esi, 0x10029c18
push esi
mov word [0x10028ddc], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
lea eax, [ebp - 0x154]
push eax
push str.SystemRoot
call edi
test eax, eax
jne 0x1001aec8
push esi
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x103
push 0x10029d1c
push dword [0x1002a858]
call edi
test eax, eax
jne 0x1001af09
push eax
push str.TEMP
push esi
push ebx
push 0x10029d1c
push 0x1001d318
call fcn.1001693c
add esp, 0x18
push 0x10029d1c
push dword [0x1002a858]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x103
push 0x10029e20
push dword [0x1002a870]
call edi
test eax, eax
jne 0x1001af47
push eax
push str.TEMP
push esi
push ebx
mov esi, 0x10029e20
push esi
push 0x1001d318
call fcn.1001693c
add esp, 0x18
push esi
push dword [0x1002a870]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x3f
lea eax, [ebp - 0x4c]
push eax
mov esi, str.SystemDrive
push esi
call edi
test eax, eax
jne 0x1001af65
push 0x10023690
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0xb18]
push eax
push 0
mov esi, 0x10029c04
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call fcn.10019b2b
add esp, 0xc
push eax
call fcn.100156ca
push 0x20
lea eax, [ebp - 0xb18]
push 0x1002a034
push eax
call fcn.10015845
lea eax, [ebp - 0xb18]
push eax
push 0x1e
push 0x14
push 0x1002a054
call fcn.100166e0
add esp, 0x24
test byte [ebp + 0x14], 1
pop edi
pop esi
pop ebx
jne 0x1001afc8
call fcn.1001a9e9
mov dword [0x1002a074], eax
call fcn.100147b4
xor eax, eax
inc eax
leave
ret