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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x40cf54
push ebx
push esi
push edi
mov eax, dword [0x40f494]
mov byte [eax], 1
mov eax, 0x40cedc
call fcn.00404cb0
xor eax, eax
push ebp
push 0x40d6e2
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.0040ca24
mov edx, dword [ebp - 0x18]
mov eax, 0x412860
call fcn.00403cc0
lea edx, [ebp - 0x1c]
mov eax, dword [0x412860]
call fcn.0040c9a0
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.0040cc54
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, 0x40cc04
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 [0x40b16c]
call fcn.0040b20c
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, 0x40cbfc
call fcn.004049f8
mov dl, 1
mov eax, dword [0x4092c4]
call fcn.004030e4
mov dword [0x412804], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40d10d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, 0x40cc0c
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 [0x4095fc]
call fcn.0040af54
mov dword [0x412800], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d119
xor eax, eax
push ebp
push 0x40d6bd
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40d691
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x4127f4], eax
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x4127f8], eax
xor eax, eax
push ebp
push 0x40d43c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x412800]
mov eax, dword [0x4127f0]
call fcn.0040b36c
lea edx, [ebp - 0x2c]
mov eax, 0x40cc1c
call fcn.004049f8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x4127f4]
mov eax, dword [0x4127f0]
call fcn.0040b284
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.0040ae00
lea edx, [ebp - 0x30]
mov eax, 0x40cc14
call fcn.004049f8
mov edx, dword [ebp - 0x30]
mov ecx, dword [0x4127f4]
mov eax, dword [0x4127f0]
call fcn.0040b284
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, 0x40cc34
call fcn.004049f8
push dword [ebp - 0x34]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x38]
call fcn.00405dd0
push dword [ebp - 0x38]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x3c]
call fcn.00405dd0
push dword [ebp - 0x3c]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x40]
call fcn.00405dd0
push dword [ebp - 0x40]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x44]
call fcn.00405dd0
push dword [ebp - 0x44]
mov eax, 9
call fcn.00402b88
lea edx, [ebp - 0x48]
call fcn.00405dd0
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 eax, [ebp - 0x50]
mov ecx, dword [0x412868]
mov edx, dword [0x412860]
call fcn.00403f38
mov eax, dword [ebp - 0x50]
call fcn.004060ac
test al, al
jne 0x40d1f0
lea edx, [ebp - 0x58]
mov eax, 0x40cc2c
call fcn.004049f8
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040cde0
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [0x412804]
mov ebx, dword [eax]
call dword [ebx + 0x54]
lea eax, [ebp - 0x5c]
mov ecx, dword [0x412868]
mov edx, dword [0x412860]
call fcn.00403f38
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x412804]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
lea eax, [ebp - 0x60]
mov ecx, dword [0x412868]
mov edx, dword [0x412860]
call fcn.00403f38
mov eax, dword [ebp - 0x60]
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 - 0x64]
mov eax, 0x40cc24
call fcn.004049f8
mov edx, dword [ebp - 0x64]
mov ecx, dword [0x4127f8]
mov eax, dword [0x4127f0]
call fcn.0040b284
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 0x40d41a
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x412808], 0
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x4127fc], eax
xor eax, eax
push ebp
push 0x40d404
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x68]
mov eax, dword [0x412808]
call fcn.00405dd0
mov edx, dword [ebp - 0x68]
mov ecx, dword [0x4127fc]
mov eax, dword [0x4127f0]
call fcn.0040b284
push dword [0x41286c]
push 0x40d6fc
lea ecx, [ebp - 0x70]
mov edx, dword [0x412808]
mov eax, dword [0x412804]
mov ebx, dword [eax]
call dword [ebx]
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00403fac
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x4127fc]
call fcn.0040ad7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d40b
mov eax, dword [0x4127fc]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d443
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 0x40d6c4
mov eax, dword [0x412804]
call fcn.00403114
mov eax, dword [0x412800]
call fcn.00403114
mov eax, dword [0x4127f0]
call fcn.00403114
ret