Function at 0x4152c8
Capabilities:
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4152d0
push ebx
push esi
push edi
mov eax, dword [0x416c0c]
mov byte [eax], 1
mov eax, 0x414e00
call fcn.00405f18
xor eax, eax
push ebp
push 0x41583c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x416a98]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x18]
call fcn.00413528
mov edx, dword [ebp - 0x18]
mov eax, 0x41cac4
call fcn.0040433c
lea edx, [ebp - 0x1c]
mov eax, dword [0x41cac4]
call fcn.0041343c
mov edx, dword [ebp - 0x1c]
mov eax, 0x41cac4
call fcn.0040433c
lea eax, [ebp - 0x20]
call fcn.00414d68
mov edx, dword [ebp - 0x20]
mov eax, 0x41cad0
call fcn.0040433c
mov eax, dword [0x41cad0]
call fcn.00404754
push eax
push 0x41584c
call sub.kernel32.dll_SetEnvironmentVariableA
mov dl, 1
mov eax, dword [0x413af0]
call fcn.00413b8c
mov dword [0x41ca54], eax
mov eax, dword [0x41ca54]
mov byte [eax + 4], 1
mov eax, dword [0x41ca54]
mov byte [eax + 5], 1
mov eax, dword [0x41ca54]
add eax, 8
mov edx, 0x41585c
call fcn.0040433c
xor eax, eax
mov dword [0x41ca64], eax
mov dl, 1
mov eax, dword [0x40fbe0]
call fcn.00403704
mov dword [0x41ca68], eax
mov bl, 1
xor eax, eax
push ebp
push 0x4153e3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415888
push 0xa
mov ecx, dword [0x416b28]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x40ff60]
call fcn.0041270c
mov dword [0x41ca64], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4153ef
xor edx, edx
push ebp
push 0x41581a
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x4157ee
mov dl, 1
mov eax, dword [0x40fee4]
call fcn.00403704
mov dword [0x41ca58], eax
mov dl, 1
mov eax, dword [0x40fee4]
call fcn.00403704
mov dword [0x41ca5c], eax
xor eax, eax
push ebp
push 0x415617
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41ca64]
mov eax, dword [0x41ca54]
call fcn.00413ce4
mov ecx, dword [0x41ca58]
mov edx, 0x415898
mov eax, dword [0x41ca54]
call fcn.00413c10
xor ecx, ecx
xor edx, edx
mov eax, dword [0x41ca58]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x41c9c4
mov ecx, 0x90
mov eax, dword [0x41ca58]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x41ca58]
call fcn.004125d0
mov ecx, dword [0x41ca58]
mov edx, 0x4158a8
mov eax, dword [0x41ca54]
call fcn.00413c10
mov edx, dword [0x41ca58]
mov eax, dword [0x41ca68]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
lea eax, [ebp - 0x28]
mov edx, 0x41c9c4
call fcn.0040454c
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov eax, dword [0x41cac4]
call fcn.00414cc8
mov edx, dword [ebp - 0x24]
mov eax, 0x41cacc
call fcn.0040433c
mov edx, dword [0x41cacc]
mov eax, dword [0x41ca68]
mov ecx, dword [eax]
call dword [ecx + 0x74]
push 2
mov eax, dword [0x41cacc]
call fcn.00404754
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x41ca68]
mov edx, dword [eax]
call dword [edx + 0x44]
mov ecx, dword [0x41ca5c]
mov edx, 0x4158b4
mov eax, dword [0x41ca54]
call fcn.00413c10
mov edx, dword [0x41ca5c]
mov eax, dword [0x41ca68]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [0x41ca68]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4155f5
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41ca6c], 0
mov dl, 1
mov eax, dword [0x40fee4]
call fcn.00403704
mov dword [0x41ca60], eax
xor eax, eax
push ebp
push 0x4155df
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x2c]
mov edx, dword [0x41ca6c]
mov eax, dword [0x41ca68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x41ca60]
mov eax, dword [0x41ca54]
call fcn.00413c10
push dword [0x41cad0]
push 0x4158c4
lea ecx, [ebp - 0x34]
mov edx, dword [0x41ca6c]
mov eax, dword [0x41ca68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404658
mov edx, dword [ebp - 0x30]
mov eax, dword [0x41ca60]
call fcn.0041254c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4155e6
mov eax, dword [0x41ca60]
call fcn.00403734
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41561e
mov eax, dword [0x41ca5c]
call fcn.00403734
mov eax, dword [0x41ca58]
call fcn.00403734
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415821
mov eax, dword [0x41ca68]
call fcn.00403734
mov eax, dword [0x41ca64]
call fcn.00403734
mov eax, dword [0x41ca54]
call fcn.00403734
ret