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

Disassembly:
sub esp, 0x674
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x36d]
mov byte [esp + 0x36c], bl
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x370]
push eax
call fcn.00402b20
or ecx, 0xffffffff
mov edi, 0x40e080
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x36c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov byte [esp + 0x11c], bl
and ecx, 3
lea edx, [esp + 0x11c]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xf
lea edi, [esp + 0x11d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40e210
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x264], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x474], bl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x474]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x265]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x475]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x36c]
push ecx
push str._sundeleted.log
push edx
call fcn.0040591b
add esp, 0xc
lea eax, [esp + 0x474]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x57c]
push edx
call fcn.00402a90
mov edi, str.undeleted.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x580]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e1ec
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x584]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
add esp, 0xc
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x36c]
mov dword [0x410e20], eax
push ecx
push edx
lea eax, [esp + 0x26c]
push str._s_s_f2.rcd
push eax
call fcn.0040591b
lea ecx, [esp + 0x274]
push 0x40e140
push ecx
call fcn.0040598d
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
je 0x401cb2
push ebp
push 1
lea edx, [esp + 0x18]
push 0x108
push edx
mov byte [esp + 0x20], bl
call fcn.00405833
mov al, byte [esp + 0x20]
add esp, 0x10
cmp al, bl
je 0x401ca9
lea eax, [esp + 0x10]
mov byte [esp + 0x112], bl
push eax
call fcn.00403b20
add esp, 4
cmp eax, 1
jne 0x401ca9
lea ecx, [esp + 0x10]
push ecx
call fcn.00403530
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x15c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x160]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, dword [0x410e3c]
mov edx, dword [0x410e38]
lea eax, [esp + 0x15c]
push eax
push ecx
push edx
call fcn.00405270
add esp, 0xc
test eax, eax
jl 0x401b9c
lea eax, [esp + 0x10]
push eax
call fcn.00401910
add esp, 4
test eax, eax
jne 0x401c82
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401b9c
lea eax, [esp + 0x10]
push eax
call fcn.00402b50
add esp, 4
test eax, eax
jne 0x401b9c
lea ecx, [esp + 0x10]
push ecx
call fcn.00402f80
add esp, 4
jmp 0x401b9c
push ebp
call fcn.00405500
add esp, 4
lea edx, [esp + 0x11c]
lea eax, [esp + 0x36c]
push edx
push eax
lea ecx, [esp + 0x26c]
push str._s_s_d2.rcd
push ecx
call fcn.0040591b
lea edx, [esp + 0x274]
push 0x40e140
push edx
call fcn.0040598d
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
je 0x401e42
push ebp
push 1
lea eax, [esp + 0x18]
push 0x108
push eax
mov byte [esp + 0x20], bl
call fcn.00405833
mov al, byte [esp + 0x20]
add esp, 0x10
cmp al, bl
je 0x401e14
lea ecx, [esp + 0x10]
push ecx
call fcn.00403b20
add esp, 4
cmp eax, 1
jne 0x401e14
lea edx, [esp + 0x10]
push edx
call fcn.00403530
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x15c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x160]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x15b], 0x5c
je 0x401dc7
mov edi, 0x40e080
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x410e3c]
mov edx, dword [0x410e38]
lea eax, [esp + 0x15c]
push eax
push ecx
push edx
call fcn.00405270
add esp, 0xc
test eax, eax
jl 0x401cf3
lea eax, [esp + 0x10]
push eax
call fcn.00402b50
add esp, 4
test eax, eax
jne 0x401cf3
lea ecx, [esp + 0x10]
push ecx
call fcn.00402f80
add esp, 4
jmp 0x401cf3
push ebp
call fcn.00405500
add esp, 4
lea edx, [esp + 0x264]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x264]
push eax
call ebp
jmp 0x401e48
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x410e20]
push ecx
call fcn.00405500
add esp, 4
lea edx, [esp + 0x10]
mov dword [0x410e20], ebx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.pk_new_f.rcd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
push 0x40e1c0
push ecx
call fcn.0040598d
add esp, 8
cmp eax, ebx
je 0x401ec1
push eax
call fcn.00405500
add esp, 4
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.pk_new_d.rcd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
push 0x40e1c0
push ecx
call fcn.0040598d
add esp, 8
cmp eax, ebx
pop edi
pop esi
pop ebp
pop ebx
je 0x401f29
push eax
call fcn.00405500
add esp, 4
add esp, 0x674
ret