Function at 0x41fc50
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x860
push esi
xor esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov eax, 0xa4a398
mov cx, word [esp + 0x868]
cmp word [eax], cx
je 0x41fc92
add eax, 0xb4
inc esi
cmp eax, 0xa4c6c0
jl 0x41fc6a
mov dword [esp + 0xc], esi
xor eax, eax
pop esi
add esp, 0x860
ret
test esi, esi
mov dword [esp + 0xc], esi
jge 0x41fca4
xor eax, eax
pop esi
add esp, 0x860
ret
push ebx
push ebp
push edi
call fcn.0041dca0
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x35c]
lea edx, [esp + 0x35c]
rep stosd dword es:[edi], eax
lea eax, [esi + esi*4]
or ecx, 0xffffffff
lea ebx, [eax + eax*8]
xor eax, eax
shl ebx, 2
lea edi, [ebx + 0xa4a3a0]
lea ebp, [ebx + 0xa4a440]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebp
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 + 0x1cc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x1cc]
rep stosd dword es:[edi], eax
lea edi, [ebx + 0xa4a3f0]
or ecx, 0xffffffff
mov dword [esp + 0x24], edi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x294]
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 ecx, 0x19
lea edi, [esp + 0x294]
rep stosd dword es:[edi], eax
mov edi, ebp
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 + 0x104]
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 ecx, 0x19
lea edi, [esp + 0x104]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x35c]
or ecx, 0xffffffff
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
xor eax, eax
and ecx, 3
lea edx, [esp + 0x104]
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x1cc]
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 + 0x168]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x35c]
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 + 0x168]
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 + 0x294]
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 eax, dword [ebx + 0xa4a39c]
mov ecx, edx
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jne 0x42050a
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x168]
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 + 0x3c]
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, str..DAT
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x3c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00420bf0
mov ebp, eax
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x108]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa4]
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, str..DAT
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
lea eax, [esp + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00420bf0
add esp, 8
test ebp, ebp
jl 0x420248
test eax, eax
jl 0x420248
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x230]
mov dl, byte [esp + 0x1ce]
rep stosd dword es:[edi], eax
mov cx, word [esp + 0x1cc]
mov dword [esp + 0x28], eax
mov word [esp + 0x230], cx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], eax
push ecx
mov byte [esp + 0x236], dl
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x36]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x2f8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
and edx, 0xffff
and eax, 0xffff
push edx
lea ecx, [esp + 0x234]
push eax
push ecx
lea edx, [esp + 0x304]
push str._03sZZ_02d_03d
push edx
call esi
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0x49c]
add esp, 0x14
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2f8]
lea ecx, [esp + 0x1cc]
push eax
push ecx
lea edx, [esp + 0x490]
push str.A88_76_n__s_
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x488]
push 0x40010
push 0x42ef3c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x104]
lea edx, [esp + 0x104]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x35c]
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 + 0x104]
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 + 0x2f8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 edx, [esp + 0xa0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x104]
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 + 0xa0]
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, str..IDX
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x168]
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 + 0x3c]
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, str..IDX
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0xa0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xa0]
lea edx, [esp + 0xa0]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x104]
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 + 0xa0]
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, str..DAT
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 + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x168]
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 + 0x3c]
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, str..DAT
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
lea eax, [esp + 0xa0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
call ebp
jmp 0x420506
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xa0]
lea edx, [esp + 0xa0]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x104]
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 + 0xa0]
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, str..IDX
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x168]
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 + 0x3c]
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, str..IDX
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0xa0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x4203aa
xor esi, esi
push 0x12c
call ebp
lea edx, [esp + 0xa0]
push 0
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x420359
inc esi
cmp si, 0xa
jl 0x420330
jmp 0x42036b
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x12c
call ebp
cmp si, 0xa
jne 0x4203aa
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
push 0x40010
push str.DEBUG
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xa0]
lea edx, [esp + 0xa0]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x104]
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 + 0xa0]
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, str..DAT
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 + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x168]
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 + 0x3c]
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, str..DAT
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
lea eax, [esp + 0xa0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x420506
xor esi, esi
push 0x12c
call ebp
lea edx, [esp + 0xa0]
push 0
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4204b5
inc esi
cmp si, 0xa
jl 0x42048c
jmp 0x4204c7
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x12c
call ebp
cmp si, 0xa
jne 0x420506
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
push 0x40010
push 0x42ef04
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebp, dword [esp + 0x14]
xor esi, esi
cmp word [esp + 0x874], si
jle 0x42057a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00420a10
add esp, 4
cmp eax, esi
mov dword [esp + 0x1c], eax
jge 0x42057a
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0x488]
lea edx, [esp + 0x294]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1cc]
push edx
push eax
lea ecx, [esp + 0x490]
push str.A88_77___s____s__nTUC
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x488]
push 0x40010
push 0x42ef3c
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [esp + 0x20]
mov word [ebx + 0xa4a398], si
mov ecx, 0x14
xor eax, eax
mov dword [ebx + 0xa4a39c], esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov word [ebp + 8], ax
call fcn.0041de90
lea ecx, [esp + 0x1cc]
push ecx
call fcn.00420ff0
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x860
ret