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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x40cebc
push ecx
push ebx
push esi
push edi
mov eax, dword [0x40f494]
mov byte [eax], 1
mov eax, 0x40ce44
call fcn.00404cb0
xor eax, eax
push ebp
push 0x40d621
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, 0x412860
call fcn.00403cc0
lea edx, [ebp - 0x1c]
mov eax, dword [0x412860]
call fcn.0040c908
mov edx, dword [ebp - 0x1c]
mov eax, 0x412860
call fcn.00403cc0
mov eax, 0x412864
mov edx, pe_nt_image_headers32
call fcn.0040418c
push pe_nt_image_headers32
mov eax, dword [0x412864]
call fcn.00404048
push eax
mov eax, dword [0x412860]
call fcn.00404048
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x412864
xchg edx, eax
call fcn.0040418c
mov eax, 0x412860
mov edx, dword [0x412864]
call fcn.00403cc0
lea eax, [ebp - 0x20]
call fcn.0040cbbc
mov edx, dword [ebp - 0x20]
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, dword [0x412870]
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, 0x412870
xor edx, edx
call fcn.0040418c
mov dl, 1
mov eax, dword [0x40b0d4]
call fcn.0040b174
mov dword [0x4127f0], eax
mov eax, dword [0x4127f0]
mov byte [eax + 4], 1
mov eax, dword [0x4127f0]
mov byte [eax + 5], 1
mov eax, dword [0x4127f0]
lea edx, [eax + 6]
mov eax, 0x40cb64
call fcn.004049f8
mov dl, 1
mov eax, dword [0x40922c]
call fcn.004030e4
mov dword [0x412804], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40d076
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 [0x412800], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d082
xor eax, eax
push ebp
push 0x40d5fc
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40d5d0
mov dl, 1
mov eax, dword [0x4094e8]
call fcn.004030e4
mov dword [0x4127f4], eax
mov dl, 1
mov eax, dword [0x4094e8]
call fcn.004030e4
mov dword [0x4127f8], eax
xor eax, eax
push ebp
push 0x40d381
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x412800]
mov eax, dword [0x4127f0]
call fcn.0040b2d4
lea edx, [ebp - 0x2c]
mov eax, 0x40cb84
call fcn.004049f8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x4127f4]
mov eax, dword [0x4127f0]
call fcn.0040b1ec
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4127f4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x412764
mov ecx, 0x8a
mov eax, dword [0x4127f4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x4127f4]
call fcn.0040ad68
lea edx, [ebp - 0x30]
mov eax, 0x40cb7c
call fcn.004049f8
mov edx, dword [ebp - 0x30]
mov ecx, dword [0x4127f4]
mov eax, dword [0x4127f0]
call fcn.0040b1ec
mov edx, dword [0x4127f4]
mov eax, dword [0x412804]
mov ecx, dword [eax]
call dword [ecx + 0x60]
call fcn.00402a08
lea edx, [ebp - 0x34]
mov eax, 0x40cb9c
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, 0x412764
call fcn.00403eb4
push dword [ebp - 0x4c]
mov eax, 0x412868
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.0040cd48
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov eax, dword [0x412804]
mov ebx, dword [eax]
call dword [ebx + 0x54]
lea eax, [ebp - 0x58]
mov ecx, dword [0x412868]
mov edx, dword [0x412860]
call fcn.00403f38
mov edx, dword [ebp - 0x58]
mov eax, dword [0x412804]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
lea eax, [ebp - 0x5c]
mov ecx, dword [0x412868]
mov edx, dword [0x412860]
call fcn.00403f38
mov eax, dword [ebp - 0x5c]
call fcn.00404048
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x412804]
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 [0x4127f8]
mov eax, dword [0x4127f0]
call fcn.0040b1ec
mov edx, dword [0x4127f8]
mov eax, dword [0x412804]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [0x412804]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x40d35f
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x412808], 0
mov dl, 1
mov eax, dword [0x4094e8]
call fcn.004030e4
mov dword [0x4127fc], eax
xor eax, eax
push ebp
push 0x40d349
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x64]
mov eax, dword [0x412808]
call fcn.00405db0
mov edx, dword [ebp - 0x64]
mov ecx, dword [0x4127fc]
mov eax, dword [0x4127f0]
call fcn.0040b1ec
push dword [0x41286c]
push 0x40d638
lea ecx, [ebp - 0x6c]
mov edx, dword [0x412808]
mov eax, dword [0x412804]
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 [0x4127fc]
call fcn.0040ace4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d350
mov eax, dword [0x4127fc]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d388
mov eax, dword [0x4127f8]
call fcn.00403114
mov eax, dword [0x4127f4]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d603
mov eax, dword [0x412804]
call fcn.00403114
mov eax, dword [0x412800]
call fcn.00403114
mov eax, dword [0x4127f0]
call fcn.00403114
ret