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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x40c7d8
push ebx
push esi
push edi
mov eax, 0x40c758
call fcn.004049a4
xor eax, eax
push ebp
push 0x40ce34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40d2d0]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x18]
call fcn.0040adf4
mov edx, dword [ebp - 0x18]
mov eax, 0x40f8a0
call fcn.00403a60
mov eax, 0x40f8a4
mov edx, 0x800
call fcn.00403e80
push 0x800
mov eax, dword [0x40f8a4]
call fcn.00403de8
push eax
mov eax, dword [0x40f8a0]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40f8a4
xchg edx, eax
call fcn.00403e80
mov eax, 0x40f8a0
mov edx, dword [0x40f8a4]
call fcn.00403a60
lea eax, [ebp - 0x1c]
call fcn.0040c6fc
mov edx, dword [ebp - 0x1c]
mov eax, 0x40f8ac
call fcn.00403a60
mov eax, 0x40f8b0
mov edx, 0x800
call fcn.00403e80
push 0x800
mov eax, dword [0x40f8b0]
call fcn.00403de8
push eax
mov eax, dword [0x40f8ac]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40f8b0
xchg edx, eax
call fcn.00403e80
mov eax, dword [0x40f8b0]
call fcn.00403de8
push eax
push 0x40ce44
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x40f8b0
xor edx, edx
call fcn.00403e80
mov dl, 1
mov eax, dword [0x40b40c]
call fcn.0040b4a8
mov dword [0x40f830], eax
mov eax, dword [0x40f830]
mov byte [eax + 4], 1
mov eax, dword [0x40f830]
mov byte [eax + 5], 1
mov eax, dword [0x40f830]
add eax, 8
mov edx, 0x40ce54
call fcn.00403a60
xor eax, eax
mov dword [0x40f840], eax
mov dl, 1
mov eax, dword [0x408db0]
call fcn.00403020
mov dword [0x40f844], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40c959
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ce80
push 0xa
mov ecx, dword [0x40d34c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4090e8]
call fcn.0040aa54
mov dword [0x40f840], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c965
xor eax, eax
push ebp
push 0x40ce12
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40cde6
mov dl, 1
mov eax, dword [0x40906c]
call fcn.00403020
mov dword [0x40f834], eax
mov dl, 1
mov eax, dword [0x40906c]
call fcn.00403020
mov dword [0x40f838], eax
xor eax, eax
push ebp
push 0x40cb8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40f840]
mov eax, dword [0x40f830]
call fcn.0040b5f8
mov ecx, dword [0x40f834]
mov edx, 0x40ce90
mov eax, dword [0x40f830]
call fcn.0040b52c
xor ecx, ecx
xor edx, edx
mov eax, dword [0x40f834]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x40f7a0
mov ecx, 0x90
mov eax, dword [0x40f834]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x40f834]
call fcn.0040a900
mov ecx, dword [0x40f834]
mov edx, 0x40cea0
mov eax, dword [0x40f830]
call fcn.0040b52c
mov edx, dword [0x40f834]
mov eax, dword [0x40f844]
mov ecx, dword [eax]
call dword [ecx + 0x60]
lea eax, [ebp - 0x24]
mov edx, 0x40f7a0
call fcn.00403c54
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov eax, dword [0x40f8a0]
call fcn.0040c65c
mov edx, dword [ebp - 0x20]
mov eax, 0x40f8a8
call fcn.00403a60
mov edx, dword [0x40f8a8]
mov eax, dword [0x40f844]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
mov eax, dword [0x40f8a8]
call fcn.00403de8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x40f844]
mov edx, dword [eax]
call dword [edx + 0x38]
mov ecx, dword [0x40f838]
mov edx, 0x40ceac
mov eax, dword [0x40f830]
call fcn.0040b52c
mov edx, dword [0x40f838]
mov eax, dword [0x40f844]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [0x40f844]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x40cb69
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x40f848], 0
mov dl, 1
mov eax, dword [0x40906c]
call fcn.00403020
mov dword [0x40f83c], eax
xor eax, eax
push ebp
push 0x40cb53
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x28]
mov edx, dword [0x40f848]
mov eax, dword [0x40f844]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x28]
mov ecx, dword [0x40f83c]
mov eax, dword [0x40f830]
call fcn.0040b52c
push dword [0x40f8ac]
push 0x40cebc
lea ecx, [ebp - 0x30]
mov edx, dword [0x40f848]
mov eax, dword [0x40f844]
mov ebx, dword [eax]
call dword [ebx]
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403d4c
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x40f83c]
call fcn.0040a87c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb5a
mov eax, dword [0x40f83c]
call fcn.00403050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb92
mov eax, dword [0x40f838]
call fcn.00403050
mov eax, dword [0x40f834]
call fcn.00403050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce19
mov eax, dword [0x40f844]
call fcn.00403050
mov eax, dword [0x40f840]
call fcn.00403050
mov eax, dword [0x40f830]
call fcn.00403050
ret