Function at 0x407a00
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422501
mov eax, dword fs:[0]
push eax
mov eax, 0x12a8
call fcn.00418360
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1298], ecx
mov edi, dword [ebp + 8]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0xc44], ax
lea eax, [ebp - 0xc42]
push eax
call fcn.00412190
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push eax
call fcn.00412190
mov esi, edi
add esp, 0xc
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x407a80
push edi
lea eax, [ebp - 0x834]
sub esi, ecx
push 0x208
push eax
sar esi, 1
call fcn.0040f581
add esp, 0xc
cmp word [edi + esi*2 - 2], 0x5c
je 0x407ac5
push 0x4292f0
lea eax, [ebp - 0x834]
push 0x208
push eax
call fcn.0041015f
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0xc44]
push 0x208
push eax
call fcn.0040f581
add esp, 0xc
lea eax, [ebp - 0xc44]
push str.ver.con
push 0x208
push eax
call fcn.0041015f
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc60], 7
mov dword [ebp - 0xc64], 0
mov word [ebp - 0xc74], ax
lea ecx, [ebp - 0xc74]
mov dword [ebp - 4], eax
call fcn.004078c0
xor eax, eax
mov dword [ebp - 0x129c], 7
mov dword [ebp - 0x12a0], 0
mov word [ebp - 0x12b0], ax
cmp word [ebp - 0xc44], ax
jne 0x407b4e
xor ecx, ecx
jmp 0x407b66
lea ecx, [ebp - 0xc44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407b57
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0x12b0]
call fcn.004035b0
mov byte [ebp - 4], 1
cmp dword [ebp - 0xc60], 8
lea eax, [ebp - 0xc74]
cmovae eax, dword [ebp - 0xc74]
push eax
lea eax, [ebp - 0x12b0]
push eax
call fcn.004077c0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x129c], 8
mov bl, al
jb 0x407bbb
push dword [ebp - 0x12b0]
call fcn.0040e88d
add esp, 4
test bl, bl
je 0x407bde
mov eax, dword [ebp - 0x1298]
push edi
add eax, 0x20c
push 0x208
push eax
call fcn.0040f581
add esp, 0xc
jmp 0x407db3
lea ecx, [ebp - 0x834]
call fcn.00407230
lea ecx, [ebp - 0x834]
call fcn.00407120
xor eax, eax
mov dword [ebp - 0xc48], 7
mov dword [ebp - 0xc4c], 0
mov word [ebp - 0xc5c], ax
push 0x206
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.00412190
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00412190
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push str.yis_
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [ebp - 0x21c], 0
jne 0x407c8a
xor ecx, ecx
jmp 0x407ca2
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c93
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.004035b0
lea eax, [ebp - 0xc5c]
push eax
call fcn.00407570
mov bl, al
test bl, bl
je 0x407d7f
cmp dword [ebp - 0xc48], 8
lea ecx, [ebp - 0xc5c]
cmovae ecx, dword [ebp - 0xc5c]
mov edx, edi
call fcn.00407f50
test eax, eax
jne 0x407d2a
lea ecx, [ebp - 0x1294]
mov bl, 1
call fcn.00406d00
cmp dword [ebp - 0xc60], 8
lea eax, [ebp - 0xc74]
cmovae eax, dword [ebp - 0xc74]
push eax
lea eax, [ebp - 0x1290]
push 0x104
push eax
mov dword [ebp - 0x1294], 0x61c
call fcn.0040f581
add esp, 0xc
cmp dword [ebp - 0xc48], 8
lea eax, [ebp - 0xc5c]
cmovae eax, dword [ebp - 0xc5c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xc48], 8
lea eax, [ebp - 0xc5c]
cmovae eax, dword [ebp - 0xc5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1298]
push edi
add eax, 0x20c
push 0x208
push eax
call fcn.0040f581
add esp, 0xc
cmp dword [ebp - 0xc48], 8
jb 0x407d96
push dword [ebp - 0xc5c]
call fcn.0040e88d
add esp, 4
xor eax, eax
mov dword [ebp - 0xc48], 7
mov dword [ebp - 0xc4c], 0
mov word [ebp - 0xc5c], ax
cmp dword [ebp - 0xc60], 8
jb 0x407dca
push dword [ebp - 0xc74]
call fcn.0040e88d
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret 4