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, dword [0x40d404]
mov byte [eax], 1
mov eax, 0x40c758
call fcn.004049a4
xor eax, eax
push ebp
push 0x40cdeb
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, 0x40f894
call fcn.00403a60
mov eax, 0x40f898
mov edx, 0x800
call fcn.00403e80
push 0x800
mov eax, dword [0x40f898]
call fcn.00403de8
push eax
mov eax, dword [0x40f894]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40f898
xchg edx, eax
call fcn.00403e80
mov eax, 0x40f894
mov edx, dword [0x40f898]
call fcn.00403a60
lea eax, [ebp - 0x1c]
call fcn.0040c6fc
mov edx, dword [ebp - 0x1c]
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, dword [0x40f8a4]
call fcn.00403de8
push eax
push 0x40cdfc
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x40f8a4
xor edx, edx
call fcn.00403e80
mov dl, 1
mov eax, dword [0x40b40c]
call fcn.0040b4a8
mov dword [0x40f824], eax
mov eax, dword [0x40f824]
mov byte [eax + 4], 1
mov eax, dword [0x40f824]
mov byte [eax + 5], 1
mov eax, dword [0x40f824]
add eax, 8
mov edx, 0x40ce0c
call fcn.00403a60
xor eax, eax
mov dword [0x40f834], eax
mov dl, 1
mov eax, dword [0x408db0]
call fcn.00403020
mov dword [0x40f838], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40c961
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ce38
push 0xa
mov ecx, dword [0x40d34c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4090e8]
call fcn.0040aa54
mov dword [0x40f834], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c96d
xor eax, eax
push ebp
push 0x40cdc9
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40cd9d
mov dl, 1
mov eax, dword [0x40906c]
call fcn.00403020
mov dword [0x40f828], eax
mov dl, 1
mov eax, dword [0x40906c]
call fcn.00403020
mov dword [0x40f82c], eax
xor eax, eax
push ebp
push 0x40cb93
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40f834]
mov eax, dword [0x40f824]
call fcn.0040b5f8
mov ecx, dword [0x40f828]
mov edx, 0x40ce48
mov eax, dword [0x40f824]
call fcn.0040b52c
xor ecx, ecx
xor edx, edx
mov eax, dword [0x40f828]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x40f794
mov ecx, 0x90
mov eax, dword [0x40f828]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x40f828]
call fcn.0040a900
mov ecx, dword [0x40f828]
mov edx, 0x40ce58
mov eax, dword [0x40f824]
call fcn.0040b52c
mov edx, dword [0x40f828]
mov eax, dword [0x40f838]
mov ecx, dword [eax]
call dword [ecx + 0x60]
lea eax, [ebp - 0x24]
mov edx, 0x40f794
call fcn.00403c54
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov eax, dword [0x40f894]
call fcn.0040c65c
mov edx, dword [ebp - 0x20]
mov eax, 0x40f89c
call fcn.00403a60
mov edx, dword [0x40f89c]
mov eax, dword [0x40f838]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
mov eax, dword [0x40f89c]
call fcn.00403de8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x40f838]
mov edx, dword [eax]
call dword [edx + 0x38]
mov ecx, dword [0x40f82c]
mov edx, 0x40ce64
mov eax, dword [0x40f824]
call fcn.0040b52c
mov edx, dword [0x40f82c]
mov eax, dword [0x40f838]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [0x40f838]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x40cb71
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x40f83c], 0
mov dl, 1
mov eax, dword [0x40906c]
call fcn.00403020
mov dword [0x40f830], eax
xor eax, eax
push ebp
push 0x40cb5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x28]
mov edx, dword [0x40f83c]
mov eax, dword [0x40f838]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x28]
mov ecx, dword [0x40f830]
mov eax, dword [0x40f824]
call fcn.0040b52c
push dword [0x40f8a0]
push 0x40ce74
lea ecx, [ebp - 0x30]
mov edx, dword [0x40f83c]
mov eax, dword [0x40f838]
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 [0x40f830]
call fcn.0040a87c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb62
mov eax, dword [0x40f830]
call fcn.00403050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb9a
mov eax, dword [0x40f82c]
call fcn.00403050
mov eax, dword [0x40f828]
call fcn.00403050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdd0
mov eax, dword [0x40f838]
call fcn.00403050
mov eax, dword [0x40f834]
call fcn.00403050
mov eax, dword [0x40f824]
call fcn.00403050
ret