Function at 0x410e00
Capabilities:
Check if file exists
Delete file
Get file attributes
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp esi, 0xc8c3
jg 0x410fa5
je 0x410f99
lea eax, [esi - 0x150a]
cmp eax, 1
ja 0x410fad
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
mov dword [ebp - 4], 2
mov ecx, edi
call fcn.004130d0
mov ebx, eax
test ebx, ebx
js 0x410f7a
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x410f7d
lea edx, [ebp - 0x31]
mov byte [ebp - 0x31], 0
lea ecx, [ebp - 0x38]
call fcn.00412fd0
test al, al
je 0x410f7a
cmp esi, 0x150b
sete al
cmp byte [ebp - 0x31], al
jne 0x410f7a
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push eax
push 0x42e300
push 1
push 0
push 0x43a5d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov eax, dword [ebp - 0x3c]
test ebx, ebx
js 0x410f6c
test eax, eax
je 0x410f6c
lea ecx, [ebp - 0x30]
call fcn.00412dd0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
push 0
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov byte [ebp - 4], 4
mov ebx, eax
cmp byte [ebp - 0x2c], 0
je 0x410f1b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410f55
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410f4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411097
push edx
push ecx
call fcn.004152ff
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], 7
mov byte [ebp - 4], 6
test eax, eax
je 0x410f7a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 7
test ecx, ecx
je 0x410f8e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
shr ebx, 0x1f
xor bl, 1
jmp 0x411079
mov ecx, edi
call fcn.0040ff60
jmp 0x41107b
cmp esi, 0xc8c4
je 0x410fb4
xor al, al
jmp 0x41107b
lea ecx, [ebp - 0x28]
call fcn.0040fcd0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x411041
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411041
test al, 0x10
jne 0x411041
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00413490
test al, al
je 0x411041
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete bl
cmp edx, 8
jb 0x411079
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411035
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41109c
push edx
push ecx
call fcn.004152ff
add esp, 8
jmp 0x411079
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x411077
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41106d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4110a1
push edx
push ecx
call fcn.004152ff
add esp, 8
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
int3