Function at 0x54841c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x548424
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
xor eax, eax
push ebp
push 0x54877a
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x547598]
call fcn.00548bf0
mov esi, eax
mov eax, esi
call fcn.00548c88
xor ebx, ebx
jmp 0x5485af
lea eax, [ebp - 0x28]
mov edi, ebx
add edi, edi
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*8 + 0xc]
call fcn.004079ac
mov eax, dword [ebp - 0x28]
call fcn.00414c80
test al, al
je 0x5485ae
lea eax, [ebp - 0x30]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x28d
call fcn.00407af4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00415290
lea eax, [ebp - 0x2c]
mov edx, 0x548794
call fcn.00407ba4
mov eax, dword [ebp - 0x2c]
call fcn.00414cec
lea eax, [ebp - 0x3c]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x28d
call fcn.00407af4
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00415290
push dword [ebp - 0x38]
push 0x548794
lea eax, [ebp - 0x44]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*8 + 0xc]
call fcn.004079ac
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00415564
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00407d48
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.004079d4
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 4]
call fcn.004079ac
mov eax, dword [ebp - 0x48]
call fcn.00407834
push eax
lea eax, [ebp - 0x4c]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*8 + 0xc]
call fcn.004079ac
mov eax, dword [ebp - 0x4c]
call fcn.00407834
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
sbb eax, eax
inc eax
cmp al, 1
je 0x548582
push 2
push 1
push 0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x50]
call fcn.0041a450
mov eax, dword [ebp - 0x50]
push eax
call fcn.004fe39c
xor ecx, ecx
pop edx
call fcn.004fe718
lea eax, [ebp - 0x54]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*8 + 0xc]
call fcn.004079ac
mov eax, dword [ebp - 0x54]
call fcn.00407834
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [esi + 0x10]
lea eax, [eax + edi*8 + 0xc]
mov edx, dword [ebp - 4]
call fcn.00406938
inc ebx
mov eax, dword [esi + 0x10]
call fcn.00408fac
cmp ebx, eax
jle 0x548461
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0043ce60
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0043c1c0
xor ebx, ebx
jmp 0x548742
mov eax, ebx
add eax, eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + eax*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 0x54860b
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 [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x5487a0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, ebx
add eax, eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + eax*8 + 4]
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 0x548664
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 [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x5487a0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, ebx
add eax, eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + eax*8 + 8]
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 0x5486bd
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 [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x5487a0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, ebx
add eax, eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + eax*8 + 0xc]
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 0x548716
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 [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, 0x5487a0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, 2
mov edi, dword [eax]
call dword [edi + 0x10]
inc ebx
mov eax, dword [esi + 0x10]
call fcn.00408fac
cmp ebx, eax
jle 0x5485de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548781
lea eax, [ebp - 0x54]
mov edx, 0xc
call fcn.004077a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406908
ret