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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x40cf40
push ebx
push esi
push edi
mov eax, dword [0x40e40c]
mov byte [eax], 1
mov eax, 0x40cec0
call fcn.00404cb0
xor eax, eax
push ebp
push 0x40d6ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e2d4]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x18]
call fcn.0040b2b0
mov edx, dword [ebp - 0x18]
mov eax, 0x410890
call fcn.00403cc0
lea edx, [ebp - 0x1c]
mov eax, dword [0x410890]
call fcn.0040b22c
mov edx, dword [ebp - 0x1c]
mov eax, 0x410890
call fcn.00403cc0
mov eax, 0x410894
mov edx, pe_nt_image_headers32
call fcn.0040418c
push pe_nt_image_headers32
mov eax, dword [0x410894]
call fcn.00404048
push eax
mov eax, dword [0x410890]
call fcn.00404048
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x410894
xchg edx, eax
call fcn.0040418c
mov eax, 0x410890
mov edx, dword [0x410894]
call fcn.00403cc0
lea eax, [ebp - 0x20]
call fcn.0040cc38
mov edx, dword [ebp - 0x20]
mov eax, 0x41089c
call fcn.00403cc0
mov eax, 0x4108a0
mov edx, pe_nt_image_headers32
call fcn.0040418c
push pe_nt_image_headers32
mov eax, dword [0x4108a0]
call fcn.00404048
push eax
mov eax, dword [0x41089c]
call fcn.00404048
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x4108a0
xchg edx, eax
call fcn.0040418c
mov eax, dword [0x4108a0]
call fcn.00404048
push eax
lea edx, [ebp - 0x24]
mov eax, 0x40cbe8
call fcn.004049f8
mov eax, dword [ebp - 0x24]
call fcn.00404048
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x4108a0
xor edx, edx
call fcn.0040418c
mov dl, 1
mov eax, dword [0x40b964]
call fcn.0040ba00
mov dword [0x410820], eax
mov eax, dword [0x410820]
mov byte [eax + 4], 1
mov eax, dword [0x410820]
mov byte [eax + 5], 1
mov eax, dword [0x410820]
lea edx, [eax + 6]
mov eax, 0x40cbe0
call fcn.004049f8
mov dl, 1
mov eax, dword [0x4092c4]
call fcn.004030e4
mov dword [0x410834], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40d0f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, 0x40cbf0
call fcn.004049f8
mov eax, dword [ebp - 0x28]
push eax
push 0xa
mov ecx, dword [0x40e350]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4095fc]
call fcn.0040af54
mov dword [0x410830], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d105
xor eax, eax
push ebp
push 0x40d6a9
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40d67d
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x410824], eax
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x410828], eax
xor eax, eax
push ebp
push 0x40d428
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x410830]
mov eax, dword [0x410820]
call fcn.0040bb6c
lea edx, [ebp - 0x2c]
mov eax, 0x40cc00
call fcn.004049f8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x410824]
mov eax, dword [0x410820]
call fcn.0040ba84
xor ecx, ecx
xor edx, edx
mov eax, dword [0x410824]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, 0x410794
mov ecx, 0x8a
mov eax, dword [0x410824]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x410824]
call fcn.0040ae00
lea edx, [ebp - 0x30]
mov eax, 0x40cbf8
call fcn.004049f8
mov edx, dword [ebp - 0x30]
mov ecx, dword [0x410824]
mov eax, dword [0x410820]
call fcn.0040ba84
mov edx, dword [0x410824]
mov eax, dword [0x410834]
mov ecx, dword [eax]
call dword [ecx + 0x60]
call fcn.00402a08
lea edx, [ebp - 0x34]
mov eax, 0x40cc18
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, 0x410794
call fcn.00403eb4
push dword [ebp - 0x4c]
mov eax, 0x410898
mov edx, 7
call fcn.00403fac
lea eax, [ebp - 0x50]
mov ecx, dword [0x410898]
mov edx, dword [0x410890]
call fcn.00403f38
mov eax, dword [ebp - 0x50]
call fcn.004060ac
test al, al
jne 0x40d1dc
lea edx, [ebp - 0x58]
mov eax, 0x40cc10
call fcn.004049f8
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040cdc4
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [0x410834]
mov ebx, dword [eax]
call dword [ebx + 0x54]
lea eax, [ebp - 0x5c]
mov ecx, dword [0x410898]
mov edx, dword [0x410890]
call fcn.00403f38
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x410834]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 2
lea eax, [ebp - 0x60]
mov ecx, dword [0x410898]
mov edx, dword [0x410890]
call fcn.00403f38
mov eax, dword [ebp - 0x60]
call fcn.00404048
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [0x410834]
mov edx, dword [eax]
call dword [edx + 0x38]
lea edx, [ebp - 0x64]
mov eax, 0x40cc08
call fcn.004049f8
mov edx, dword [ebp - 0x64]
mov ecx, dword [0x410828]
mov eax, dword [0x410820]
call fcn.0040ba84
mov edx, dword [0x410828]
mov eax, dword [0x410834]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [0x410834]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x40d406
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x410838], 0
mov dl, 1
mov eax, dword [0x409580]
call fcn.004030e4
mov dword [0x41082c], eax
xor eax, eax
push ebp
push 0x40d3f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x68]
mov eax, dword [0x410838]
call fcn.00405dd0
mov edx, dword [ebp - 0x68]
mov ecx, dword [0x41082c]
mov eax, dword [0x410820]
call fcn.0040ba84
push dword [0x41089c]
push 0x40d6e8
lea ecx, [ebp - 0x70]
mov edx, dword [0x410838]
mov eax, dword [0x410834]
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 [0x41082c]
call fcn.0040ad7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3f7
mov eax, dword [0x41082c]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d42f
mov eax, dword [0x410828]
call fcn.00403114
mov eax, dword [0x410824]
call fcn.00403114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6b0
mov eax, dword [0x410834]
call fcn.00403114
mov eax, dword [0x410830]
call fcn.00403114
mov eax, dword [0x410820]
call fcn.00403114
ret