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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x40cf64
push ebx
push esi
push edi
mov eax, 0x40ceec
call fcn.00404cb0
xor eax, eax
push ebp
push 0x40d769
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, 0x41286c
call fcn.00403cc0
lea edx, [ebp - 0x1c]
mov eax, dword [0x41286c]
call fcn.0040c9a0
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.0040cc64
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, 0x40cc04
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 [0x40b16c]
call fcn.0040b20c
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, 0x40cbfc
call fcn.004049f8
mov dl, 1
mov eax, dword [0x4092c4]
call fcn.004030e4
mov dword [0x412810], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40d115
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 [0x41280c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d121
xor eax, eax
push ebp
push 0x40d744
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40d718
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x412800], eax
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x412804], eax
xor eax, eax
push ebp
push 0x40d444
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41280c]
mov eax, dword [0x4127fc]
call fcn.0040b36c
lea edx, [ebp - 0x2c]
mov eax, 0x40cc1c
call fcn.004049f8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x412800]
mov eax, dword [0x4127fc]
call fcn.0040b284
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.0040ae00
lea edx, [ebp - 0x30]
mov eax, 0x40cc14
call fcn.004049f8
mov edx, dword [ebp - 0x30]
mov ecx, dword [0x412800]
mov eax, dword [0x4127fc]
call fcn.0040b284
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, 0x40cc44
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, 0x412770
call fcn.00403eb4
push dword [ebp - 0x4c]
mov eax, 0x412874
mov edx, 7
call fcn.00403fac
lea eax, [ebp - 0x50]
mov ecx, dword [0x412874]
mov edx, dword [0x41286c]
call fcn.00403f38
mov eax, dword [ebp - 0x50]
call fcn.004060ac
test al, al
jne 0x40d1f8
lea edx, [ebp - 0x58]
mov eax, 0x40cc2c
call fcn.004049f8
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040cdf0
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [0x412810]
mov ebx, dword [eax]
call dword [ebx + 0x54]
lea eax, [ebp - 0x5c]
mov ecx, dword [0x412874]
mov edx, dword [0x41286c]
call fcn.00403f38
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x412810]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
lea eax, [ebp - 0x60]
mov ecx, dword [0x412874]
mov edx, dword [0x41286c]
call fcn.00403f38
mov eax, dword [ebp - 0x60]
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 - 0x64]
mov eax, 0x40cc24
call fcn.004049f8
mov edx, dword [ebp - 0x64]
mov ecx, dword [0x412804]
mov eax, dword [0x4127fc]
call fcn.0040b284
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 0x40d422
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x412814], 0
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x412808], eax
xor eax, eax
push ebp
push 0x40d40c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x68]
mov eax, dword [0x412814]
call fcn.00405dd0
mov edx, dword [ebp - 0x68]
mov ecx, dword [0x412808]
mov eax, dword [0x4127fc]
call fcn.0040b284
push dword [0x412878]
push 0x40d780
lea ecx, [ebp - 0x70]
mov edx, dword [0x412814]
mov eax, dword [0x412810]
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 [0x412808]
call fcn.0040ad7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d413
mov eax, dword [0x412808]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d44b
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 0x40d74b
mov eax, dword [0x412810]
call fcn.00403114
mov eax, dword [0x41280c]
call fcn.00403114
mov eax, dword [0x4127fc]
call fcn.00403114
ret