Function at 0x47272c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040414c
mov eax, dword [ebp - 0xc]
call fcn.0040414c
xor eax, eax
push ebp
push 0x472ee8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
call fcn.00408928
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.004088f4
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 8]
call fcn.00403db4
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0xc]
call fcn.00408928
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.004088f4
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.00403db4
lea eax, [ebp - 0x54]
call fcn.00457898
push dword [ebp - 0x54]
push 0x472f00
mov eax, dword [0x483f48]
push dword [eax]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0047579c
mov eax, dword [0x9ae537]
mov dword [ebp - 0x24], eax
mov eax, dword [0x9ae127]
and eax, 0x40
cmp eax, 0x40
jne 0x472863
xor eax, eax
push ebp
push 0x472859
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f1c4]
call fcn.004030c8
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
mov eax, dword [eax + 0x58]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x44]
call fcn.004030f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472863
mov eax, dword [0x9ae127]
and eax, 0x10
cmp eax, 0x10
jne 0x4728a5
mov eax, dword [0x483da4]
cmp dword [eax], 0x1770
jge 0x472885
lea eax, [ebp - 0x14]
call fcn.00472580
cmp dword [ebp - 0x14], 0
jne 0x4728a5
call fcn.0045785c
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x14]
call fcn.0040999c
mov eax, dword [0x9ae127]
and eax, 1
dec eax
jne 0x4728c3
lea eax, [ebp - 0x50]
call fcn.004575cc
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
call fcn.00403fa0
mov eax, dword [0x9ae127]
and eax, 2
cmp eax, 2
jne 0x4728f5
call fcn.0045785c
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x50]
call fcn.0040999c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
call fcn.00403fa0
mov eax, dword [0x9ae127]
and eax, 4
cmp eax, 4
jne 0x472915
lea eax, [ebp - 0x50]
call fcn.00457814
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
call fcn.00403fa0
mov eax, dword [0x9ae127]
and eax, 8
cmp eax, 8
jne 0x472935
lea eax, [ebp - 0x20]
call fcn.00468468
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x20]
call fcn.00403fa0
mov eax, dword [0x9ae127]
and eax, 0x20
cmp eax, 0x20
jne 0x472967
call fcn.0047244c
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x50]
call fcn.0040999c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
call fcn.00403fa0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax*4 + 0x9af95f]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
call fcn.004089c0
push dword [ebp - 0x54]
mov eax, dword [0x483f48]
push dword [eax]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404058
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x68]
call fcn.004561f8
lea ecx, [ebp - 0x68]
mov edx, 0x472f0c
mov eax, 0x472f20
call fcn.00472664
mov edx, dword [ebp - 0x10]
mov eax, 0x472f34
call fcn.00404280
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov edx, 1
call fcn.004041dc
mov eax, dword [ebp - 0x10]
call fcn.00403f98
mov ecx, eax
sub ecx, 8
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.004041dc
lea edx, [ebp - 0x10]
mov ecx, 5
mov eax, 0x472f40
call fcn.00404224
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x14]
call fcn.004088a4
cmp dword [ebp - 0x50], 0
jne 0x472a24
lea eax, [ebp - 0x10]
mov edx, 0x472f4c
call fcn.00403db4
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call fcn.004086c0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
call fcn.00403db4
mov eax, dword [0x483f94]
call fcn.00403d1c
mov byte [ebp - 0x2d], 0
cmp byte [0x9adc5f], 0
je 0x472a76
push dword [ebp - 0x10]
push 0x472f40
lea eax, [ebp - 0x50]
mov edx, 0x9adc5f
call fcn.00403f3c
push dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404058
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00403db4
mov eax, dword [0x9ae537]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
shl edx, 5
lea edx, [edx*8 + 0x9ae463]
call fcn.00403f3c
cmp dword [ebp - 0x18], 0
je 0x472ec0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404058
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x68]
call fcn.004561f8
lea ecx, [ebp - 0x68]
mov edx, 0x472f60
mov eax, 0x472f20
call fcn.00472664
mov edx, dword [ebp - 0x10]
mov eax, 0x472f34
call fcn.00404280
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov edx, 1
call fcn.004041dc
mov eax, dword [ebp - 0x10]
call fcn.00403f98
mov ecx, eax
sub ecx, 0x14
lea eax, [ebp - 0x10]
mov edx, 0x14
call fcn.004041dc
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call fcn.0045774c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
call fcn.00403db4
mov eax, dword [ebp - 0xc]
call fcn.0040415c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040415c
pop edx
call fcn.00409298
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
xor eax, 0
jne 0x472eb3
mov eax, dword [ebp - 0x2c]
cmp dword [eax*4 + 0x9ae537], 1
jne 0x472d5a
cmp dword [0x9ae233], 0
jle 0x472bce
mov dl, 1
mov eax, dword [0x40f1c4]
call fcn.004030c8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [0x483ce8]
mov edx, dword [edx]
lea eax, [ebp - 0x50]
mov ecx, 0x472f6c
call fcn.00403fe4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x38]
call fcn.004030f8
mov eax, dword [ebp - 0x2c]
mov dword [0x9ae537], eax
mov eax, 0x9ade1d
mov edx, dword [ebp - 0x10]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax*4 + 0x9af95f]
call fcn.004089c0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x168]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x168]
mov eax, 0x9afd77
mov cl, 0xa
call fcn.00402bfc
mov eax, 0x9afd98
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00403f74
mov byte [0x9ade0f], 0
lea eax, [ebp - 0x54]
call fcn.00457898
push dword [ebp - 0x54]
push 0x472f00
mov eax, dword [0x483f48]
push dword [eax]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.004755c8
mov edx, dword [0x483f24]
mov edx, dword [edx]
lea eax, [ebp - 0x50]
mov ecx, 0x472f84
call fcn.00403fe4
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x456424]
call fcn.004564cc
mov dword [ebp - 0x34], eax
mov eax, dword [0x483f7c]
cmp dword [eax], 2
je 0x472cac
mov ecx, 0x472f9c
mov dl, 1
mov eax, dword [0x456424]
call fcn.004564cc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [0x483f48]
mov edx, dword [edx]
mov ecx, 0x472fb0
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx - 4]
mov byte [ebp - 0x2d], 1
mov eax, dword [0x483d3c]
mov edx, 0x472fc0
call fcn.00403d70
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
shl edx, 5
lea edx, [edx*8 + 0x9aee63]
call fcn.00403f3c
xor eax, eax
push ebp
push 0x472d4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040415c
push eax
push 0x472fcc
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 8]
call fcn.0040415c
push eax
push 0x472fd8
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x1c]
call fcn.0040415c
push eax
push 0x472fe4
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472ec0
mov eax, dword [ebp - 0x2c]
cmp dword [eax*4 + 0x9ae537], 0
mov eax, dword [ebp - 0x2c]
mov dword [0x9ae537], eax
xor eax, eax
mov dword [0x9adf1d], eax
mov byte [0x9ade0f], 0
call fcn.00470910
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x50]
call fcn.0040aa78
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x168]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x168]
imul eax, dword [ebp - 0x2c], 0xd
add eax, 0x9add80
mov cl, 0xc
call fcn.00402bfc
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x50]
call fcn.0040aa78
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x168]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x168]
mov eax, 0x9afd82
mov cl, 0xa
call fcn.00402bfc
lea eax, [ebp - 0x54]
call fcn.00457898
push dword [ebp - 0x54]
push 0x472f00
mov eax, dword [0x483f48]
push dword [eax]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.004755c8
mov eax, dword [0x483d3c]
mov edx, 0x472ff4
call fcn.00403d70
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
shl edx, 5
lea edx, [edx*8 + 0x9aee63]
call fcn.00403f3c
xor eax, eax
push ebp
push 0x472ea3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.0040415c
push eax
push 0x472fe4
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x9adadc]
push eax
push 0x473004
call sub.kernel32.dll_SetEnvironmentVariableA
call fcn.0040cfc8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x9adb04]
push eax
push 0x473010
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472ead
mov byte [ebp - 0x2d], 1
jmp 0x472ec0
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xb
jne 0x472a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472eef
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00403d40
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00403d40
ret