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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x40cecc
push ecx
push ebx
push esi
push edi
mov eax, 0x40ce54
call fcn.00404cb0
xor eax, eax
push ebp
push 0x40d6a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40f35c]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x18]
call fcn.0040c98c
mov edx, dword [ebp - 0x18]
mov eax, 0x41286c
call fcn.00403cc0
lea edx, [ebp - 0x1c]
mov eax, dword [0x41286c]
call fcn.0040c908
mov edx, dword [ebp - 0x1c]
mov eax, 0x41286c
call fcn.00403cc0
mov eax, 0x412870
mov edx, pe_nt_image_headers32
call fcn.0040418c
push pe_nt_image_headers32
mov eax, dword [0x412870]
call fcn.00404048
push eax
mov eax, dword [0x41286c]
call fcn.00404048
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x412870
xchg edx, eax
call fcn.0040418c
mov eax, 0x41286c
mov edx, dword [0x412870]
call fcn.00403cc0
lea eax, [ebp - 0x20]
call fcn.0040cbcc
mov edx, dword [ebp - 0x20]
mov eax, 0x412878
call fcn.00403cc0
mov eax, 0x41287c
mov edx, pe_nt_image_headers32
call fcn.0040418c
push pe_nt_image_headers32
mov eax, dword [0x41287c]
call fcn.00404048
push eax
mov eax, dword [0x412878]
call fcn.00404048
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x41287c
xchg edx, eax
call fcn.0040418c
mov eax, dword [0x41287c]
call fcn.00404048
push eax
lea edx, [ebp - 0x24]
mov eax, 0x40cb6c
call fcn.004049f8
mov eax, dword [ebp - 0x24]
call fcn.00404048
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x41287c
xor edx, edx
call fcn.0040418c
mov dl, 1
mov eax, dword [0x40b0d4]
call fcn.0040b174
mov dword [0x4127fc], eax
mov eax, dword [0x4127fc]
mov byte [eax + 4], 1
mov eax, dword [0x4127fc]
mov byte [eax + 5], 1
mov eax, dword [0x4127fc]
lea edx, [eax + 6]
mov eax, 0x40cb64
call fcn.004049f8
mov dl, 1
mov eax, dword [0x40922c]
call fcn.004030e4
mov dword [0x412810], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40d07e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, 0x40cb74
call fcn.004049f8
mov eax, dword [ebp - 0x28]
push eax
push 0xa
mov ecx, dword [0x40f3d8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x409564]
call fcn.0040aebc
mov dword [0x41280c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d08a
xor eax, eax
push ebp
push 0x40d683
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40d657
mov dl, 1
mov eax, dword [0x4094e8]
call fcn.004030e4
mov dword [0x412800], eax
mov dl, 1
mov eax, dword [0x4094e8]
call fcn.004030e4
mov dword [0x412804], eax
xor eax, eax
push ebp
push 0x40d389
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41280c]
mov eax, dword [0x4127fc]
call fcn.0040b2d4
lea edx, [ebp - 0x2c]
mov eax, 0x40cb84
call fcn.004049f8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x412800]
mov eax, dword [0x4127fc]
call fcn.0040b1ec
xor ecx, ecx
xor edx, edx
mov eax, dword [0x412800]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x412770
mov ecx, 0x8a
mov eax, dword [0x412800]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x412800]
call fcn.0040ad68
lea edx, [ebp - 0x30]
mov eax, 0x40cb7c
call fcn.004049f8
mov edx, dword [ebp - 0x30]
mov ecx, dword [0x412800]
mov eax, dword [0x4127fc]
call fcn.0040b1ec
mov edx, dword [0x412800]
mov eax, dword [0x412810]
mov ecx, dword [eax]
call dword [ecx + 0x60]
call fcn.00402a08
lea edx, [ebp - 0x34]
mov eax, 0x40cbac
call fcn.004049f8
push dword [ebp - 0x34]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x38]
call fcn.00405db0
push dword [ebp - 0x38]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x3c]
call fcn.00405db0
push dword [ebp - 0x3c]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x40]
call fcn.00405db0
push dword [ebp - 0x40]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x44]
call fcn.00405db0
push dword [ebp - 0x44]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x48]
call fcn.00405db0
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
mov edx, 0x412770
call fcn.00403eb4
push dword [ebp - 0x4c]
mov eax, 0x412874
mov edx, 7
call fcn.00403fac
lea edx, [ebp - 0x54]
mov eax, 0x40cb94
call fcn.004049f8
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.0040cd58
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov eax, dword [0x412810]
mov ebx, dword [eax]
call dword [ebx + 0x54]
lea eax, [ebp - 0x58]
mov ecx, dword [0x412874]
mov edx, dword [0x41286c]
call fcn.00403f38
mov edx, dword [ebp - 0x58]
mov eax, dword [0x412810]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
lea eax, [ebp - 0x5c]
mov ecx, dword [0x412874]
mov edx, dword [0x41286c]
call fcn.00403f38
mov eax, dword [ebp - 0x5c]
call fcn.00404048
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x412810]
mov edx, dword [eax]
call dword [edx + 0x38]
lea edx, [ebp - 0x60]
mov eax, 0x40cb8c
call fcn.004049f8
mov edx, dword [ebp - 0x60]
mov ecx, dword [0x412804]
mov eax, dword [0x4127fc]
call fcn.0040b1ec
mov edx, dword [0x412804]
mov eax, dword [0x412810]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [0x412810]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x40d367
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x412814], 0
mov dl, 1
mov eax, dword [0x4094e8]
call fcn.004030e4
mov dword [0x412808], eax
xor eax, eax
push ebp
push 0x40d351
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x64]
mov eax, dword [0x412814]
call fcn.00405db0
mov edx, dword [ebp - 0x64]
mov ecx, dword [0x412808]
mov eax, dword [0x4127fc]
call fcn.0040b1ec
push dword [0x412878]
push 0x40d6c0
lea ecx, [ebp - 0x6c]
mov edx, dword [0x412814]
mov eax, dword [0x412810]
mov ebx, dword [eax]
call dword [ebx]
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00403fac
mov edx, dword [ebp - 0x68]
mov eax, dword [0x412808]
call fcn.0040ace4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d358
mov eax, dword [0x412808]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d390
mov eax, dword [0x412804]
call fcn.00403114
mov eax, dword [0x412800]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d68a
mov eax, dword [0x412810]
call fcn.00403114
mov eax, dword [0x41280c]
call fcn.00403114
mov eax, dword [0x4127fc]
call fcn.00403114
ret