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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x40c890
push ecx
push ebx
push esi
push edi
mov eax, dword [0x40d404]
mov byte [eax], 1
mov eax, 0x40c810
call fcn.004049f4
xor eax, eax
push ebp
push 0x40cebe
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.0040ae9c
mov edx, dword [ebp - 0x18]
mov eax, 0x40f890
call fcn.00403a60
lea edx, [ebp - 0x1c]
mov eax, dword [0x40f890]
call fcn.0040adbc
mov edx, dword [ebp - 0x1c]
mov eax, 0x40f890
call fcn.00403a60
mov eax, 0x40f894
mov edx, pe_nt_image_headers32
call fcn.00403ed0
push pe_nt_image_headers32
mov eax, dword [0x40f894]
call fcn.00403de8
push eax
mov eax, dword [0x40f890]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40f894
xchg edx, eax
call fcn.00403ed0
mov eax, 0x40f890
mov edx, dword [0x40f894]
call fcn.00403a60
lea eax, [ebp - 0x20]
call fcn.0040c7b4
mov edx, dword [ebp - 0x20]
mov eax, 0x40f89c
call fcn.00403a60
mov eax, 0x40f8a0
mov edx, pe_nt_image_headers32
call fcn.00403ed0
push pe_nt_image_headers32
mov eax, dword [0x40f8a0]
call fcn.00403de8
push eax
mov eax, dword [0x40f89c]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40f8a0
xchg edx, eax
call fcn.00403ed0
mov eax, dword [0x40f8a0]
call fcn.00403de8
push eax
push 0x40ced0
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x40f8a0
xor edx, edx
call fcn.00403ed0
mov dl, 1
mov eax, dword [0x40b4b4]
call fcn.0040b550
mov dword [0x40f820], eax
mov eax, dword [0x40f820]
mov byte [eax + 4], 1
mov eax, dword [0x40f820]
mov byte [eax + 5], 1
mov eax, dword [0x40f820]
add eax, 6
mov edx, 0x40cee0
call fcn.00403a60
xor eax, eax
mov dword [0x40f830], eax
mov dl, 1
mov eax, dword [0x408e00]
call fcn.00403020
mov dword [0x40f834], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40ca34
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40cf04
push 0xa
mov ecx, dword [0x40d34c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x409138]
call fcn.0040aaa4
mov dword [0x40f830], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40ca40
xor eax, eax
push ebp
push 0x40ce9c
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40ce70
mov dl, 1
mov eax, dword [0x4090bc]
call fcn.00403020
mov dword [0x40f824], eax
mov dl, 1
mov eax, dword [0x4090bc]
call fcn.00403020
mov dword [0x40f828], eax
xor eax, eax
push ebp
push 0x40cc66
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40f830]
mov eax, dword [0x40f820]
call fcn.0040b6a0
mov ecx, dword [0x40f824]
mov edx, 0x40cf18
mov eax, dword [0x40f820]
call fcn.0040b5d4
xor ecx, ecx
xor edx, edx
mov eax, dword [0x40f824]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x40f794
mov ecx, 0x8a
mov eax, dword [0x40f824]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x40f824]
call fcn.0040a950
mov ecx, dword [0x40f824]
mov edx, 0x40cf28
mov eax, dword [0x40f820]
call fcn.0040b5d4
mov edx, dword [0x40f824]
mov eax, dword [0x40f834]
mov ecx, dword [eax]
call dword [ecx + 0x60]
lea eax, [ebp - 0x28]
mov edx, 0x40f794
call fcn.00403c54
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov eax, dword [0x40f890]
call fcn.0040c704
mov edx, dword [ebp - 0x24]
mov eax, 0x40f898
call fcn.00403a60
mov edx, dword [0x40f898]
mov eax, dword [0x40f834]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
mov eax, dword [0x40f898]
call fcn.00403de8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x40f834]
mov edx, dword [eax]
call dword [edx + 0x38]
mov ecx, dword [0x40f828]
mov edx, 0x40cf34
mov eax, dword [0x40f820]
call fcn.0040b5d4
mov edx, dword [0x40f828]
mov eax, dword [0x40f834]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [0x40f834]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x40cc44
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x40f838], 0
mov dl, 1
mov eax, dword [0x4090bc]
call fcn.00403020
mov dword [0x40f82c], eax
xor eax, eax
push ebp
push 0x40cc2e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x2c]
mov edx, dword [0x40f838]
mov eax, dword [0x40f834]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x40f82c]
mov eax, dword [0x40f820]
call fcn.0040b5d4
push dword [0x40f89c]
push 0x40cf44
lea ecx, [ebp - 0x34]
mov edx, dword [0x40f838]
mov eax, dword [0x40f834]
mov ebx, dword [eax]
call dword [ebx]
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403d4c
mov edx, dword [ebp - 0x30]
mov eax, dword [0x40f82c]
call fcn.0040a8cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc35
mov eax, dword [0x40f82c]
call fcn.00403050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc6d
mov eax, dword [0x40f828]
call fcn.00403050
mov eax, dword [0x40f824]
call fcn.00403050
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cea3
mov eax, dword [0x40f834]
call fcn.00403050
mov eax, dword [0x40f830]
call fcn.00403050
mov eax, dword [0x40f820]
call fcn.00403050
ret