Function at 0x427f90
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00427f10
push ebp
push 0x414710
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 4]
call fcn.00408ae0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x428035
mov eax, 0x5e02f0
push eax
mov eax, str.APPDATA
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 8]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 8]
call fcn.00408ae0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x42806a
mov eax, 0x5e02f0
push eax
mov eax, str.LOCALAPPDATA
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0xc]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0xc]
call fcn.00408ae0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x42809f
mov eax, 0x5e02f0
push eax
mov eax, str.ALLUSERSPROFILE
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x10]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x10]
call fcn.00408ae0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4280d4
mov eax, 0x5e02f0
push eax
mov eax, str.PROGRAMDATA
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x14]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x14]
call fcn.00408ae0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x428109
mov eax, 0x5e02f0
push eax
mov eax, str.ProgramFiles
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x18]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x18]
call fcn.00408ae0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42813e
mov eax, 0x5e02f0
push eax
mov eax, str.COMMONPROGRAMFILES
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x1c]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x1c]
call fcn.00408ae0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x428173
mov eax, 0x5e02f0
push eax
mov eax, str.CommonProgramFiles_x86_
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x20]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x20]
call fcn.00408ae0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4281a8
mov eax, 0x5e02f0
push eax
mov eax, str.CommonProgramW6432
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x24]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x24]
call fcn.00408ae0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4281dd
mov eax, 0x5e02f0
push eax
mov eax, str.HOMEPATH
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x28]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x28]
call fcn.00408ae0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x428212
mov eax, 0x5e02f0
push eax
mov eax, str.PATH
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x2c]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x2c]
call fcn.00408ae0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x428247
mov eax, 0x5e02f0
push eax
mov eax, str.USERPROFILE
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x30]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x30]
call fcn.00408ae0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x42827c
mov eax, 0x5e02f0
push eax
mov eax, str.PUBLIC
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x34]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x34]
call fcn.00408ae0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4282b1
mov eax, 0x5e02f0
push eax
mov eax, str.TEMP
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x38]
call fcn.00403a50
push 0
mov edx, dword [0x5e34a0]
mov ecx, 0x585d70
lea eax, [ebp - 0x38]
call fcn.00408ae0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4282e6
mov eax, 0x5e02f0
push eax
mov eax, 0x585e2c
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00427f10
leave
ret