Function at 0x4017a0
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
sub esp, 0x964
push ebx
push ebp
push esi
push edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [str.XindYirstZileA]
mov edx, dword [0x4080dc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4080e0]
mov dword [esp + 0x18], edx
mov dx, word [0x4080e4]
mov dword [esp + 0x1c], ecx
mov cl, byte [0x4080e6]
mov word [esp + 0x20], dx
lea edx, [esp + 0x14]
mov byte [esp + 0x22], cl
mov cl, 0x46
push edx
push eax
mov byte [esp + 0x1c], cl
mov byte [esp + 0x20], cl
mov byte [esp + 0x25], cl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x10], eax
mov edi, 0x408990
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x470]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x470]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4080c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [esp + 0x978]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x27]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.00406ac6
add esp, 8
test eax, eax
je 0x401940
lea edx, [esp + 0x24]
push 0x5c
push edx
call fcn.004023d0
add esp, 8
test eax, eax
je 0x401bde
lea edi, [eax - 2]
mov al, byte [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
mov byte [edi], al
mov byte [edi + 1], 0x3a
call fcn.004013e0
mov dl, al
add esp, 4
test dl, dl
je 0x401bde
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x128]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
mov byte [esp + 0x128], dl
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x24]
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4080c4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x22c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x470]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x22c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408030
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
and ecx, 3
lea eax, [esp + 0x230]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov eax, dword [0x408a94]
test eax, eax
jne 0x401a47
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [0x408a94]
lea edx, [esp + 0x22c]
inc ebp
push 0x4080cc
push edx
mov dword [0x408a94], ebp
call fcn.004021be
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401bde
lea eax, [esp + 0x330]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [esp + 0x18]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x401bd5
cmp byte [esp + 0x35c], 0x2e
je 0x401bb7
mov edx, dword [esp + 0x978]
push edx
push ebp
call fcn.004023f7
push 0x4080c4
push ebp
call fcn.004023f7
lea eax, [esp + 0x36c]
push eax
push ebp
call fcn.004023f7
push 0x4080c8
push ebp
call fcn.004023f7
or ecx, 0xffffffff
lea edi, [esp + 0x490]
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x574]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x574]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x35c]
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 edx, [esp + 0x774]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x774]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x35c]
or ecx, 0xffffffff
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
push eax
lea eax, [esp + 0x578]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
lea ecx, [esp + 0x574]
push 0
lea edx, [esp + 0x778]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401a93
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.00402060
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x964
ret