Function at 0x428340
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.004282c0
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, 0x585f30
lea eax, [ebp - 4]
call fcn.00408ae0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4283e5
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, 0x585f30
lea eax, [ebp - 8]
call fcn.00408ae0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x42841a
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, 0x585f30
lea eax, [ebp - 0xc]
call fcn.00408ae0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x42844f
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, 0x585f30
lea eax, [ebp - 0x10]
call fcn.00408ae0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x428484
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, 0x585f30
lea eax, [ebp - 0x14]
call fcn.00408ae0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4284b9
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, 0x585f30
lea eax, [ebp - 0x18]
call fcn.00408ae0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4284ee
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, 0x585f30
lea eax, [ebp - 0x1c]
call fcn.00408ae0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x428523
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, 0x585f30
lea eax, [ebp - 0x20]
call fcn.00408ae0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x428558
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, 0x585f30
lea eax, [ebp - 0x24]
call fcn.00408ae0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x42858d
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, 0x585f30
lea eax, [ebp - 0x28]
call fcn.00408ae0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4285c2
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, 0x585f30
lea eax, [ebp - 0x2c]
call fcn.00408ae0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4285f7
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, 0x585f30
lea eax, [ebp - 0x30]
call fcn.00408ae0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x42862c
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, 0x585f30
lea eax, [ebp - 0x34]
call fcn.00408ae0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x428661
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, 0x585f30
lea eax, [ebp - 0x38]
call fcn.00408ae0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x428696
mov eax, 0x5e02f0
push eax
mov eax, 0x585fec
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.004282c0
leave
ret