Function at 0x547f88
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x547f90
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x5483eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebx]
mov dl, 1
mov eax, dword [0x5478c8]
call fcn.00548bf0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00548c88
xor esi, esi
jmp 0x548100
lea eax, [ebp - 0x2c]
mov edi, esi
add edi, edi
add edi, edi
add edi, edi
sub edi, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + edi*4 + 8]
call fcn.004079ac
mov eax, dword [ebp - 0x2c]
call fcn.00414c80
test al, al
je 0x5480ff
lea eax, [ebp - 0x34]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1187
call fcn.00407af4
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00415290
lea eax, [ebp - 0x30]
mov edx, 0x548408
call fcn.00407ba4
mov eax, dword [ebp - 0x30]
call fcn.00414cec
lea eax, [ebp - 0x40]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1187
call fcn.00407af4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00415290
push dword [ebp - 0x3c]
push 0x548408
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + edi*4 + 8]
call fcn.004079ac
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00415564
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00407d48
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.004079d4
push 0
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 4]
call fcn.004079ac
mov eax, dword [ebp - 0x4c]
call fcn.00407834
push eax
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + edi*4 + 8]
call fcn.004079ac
mov eax, dword [ebp - 0x50]
call fcn.00407834
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x5480ed
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + edi*4 + 8]
call fcn.004079ac
mov eax, dword [ebp - 0x54]
call fcn.00407834
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
lea eax, [eax + edi*4 + 8]
mov edx, dword [ebp - 4]
call fcn.00406938
inc esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
call fcn.00408fac
cmp esi, eax
jle 0x547fcb
mov eax, dword [ebx]
call fcn.0043ce60
push 0
push 0
mov eax, dword [ebx]
call fcn.0043c1c0
xor esi, esi
jmp 0x5483b0
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4]
lea ecx, [ebp - 8]
mov dx, 0xa2ca
call fcn.004c9480
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x548162
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00406f78
mov edx, eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x548418
mov eax, dword [ebx]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4 + 4]
lea ecx, [ebp - 8]
mov dx, 0xa2ca
call fcn.004c9480
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5481be
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
call fcn.00406f78
mov edx, eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x548418
mov eax, dword [ebx]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4 + 8]
lea ecx, [ebp - 8]
mov dx, 0xa2ca
call fcn.004c9480
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x54821a
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
call fcn.00406f78
mov edx, eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x548418
mov eax, dword [ebx]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4 + 0xc]
lea ecx, [ebp - 8]
mov dx, 0xa2ca
call fcn.004c9480
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x548276
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
call fcn.00406f78
mov edx, eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x548418
mov eax, dword [ebx]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4 + 0x10]
lea ecx, [ebp - 8]
mov dx, 0xa2ca
call fcn.004c9480
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5482d2
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
call fcn.00406f78
mov edx, eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x548418
mov eax, dword [ebx]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4 + 0x14]
lea ecx, [ebp - 8]
mov dx, 0xa2ca
call fcn.004c9480
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x54832e
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
call fcn.00406f78
mov edx, eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x548418
mov eax, dword [ebx]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [edx + eax*4 + 0x18]
lea ecx, [ebp - 8]
mov dx, 0xa2ca
call fcn.004c9480
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x54838a
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
call fcn.00406f78
mov edx, eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x548418
mov eax, dword [ebx]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
inc esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
call fcn.00408fac
cmp esi, eax
jle 0x54812c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5483f2
lea eax, [ebp - 0x54]
mov edx, 0xb
call fcn.004077a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406908
ret