Function at 0x5179e4
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5179ec
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x517d3d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0x3c4]
mov eax, dword [eax + 0x280]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, dword [0x52d390]
call fcn.00406d68
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x388]
call fcn.005132c4
mov edx, esi
call fcn.004f7238
mov ecx, dword [eax + 0x1c]
mov eax, ebx
pop edx
call fcn.00518a54
test al, al
je 0x517d1a
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [ebx + 0x388]
mov eax, edi
call fcn.005132c4
mov edx, esi
call fcn.004f7238
mov edx, dword [eax + 0x1c]
mov eax, edi
call fcn.005115e0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x517a90
cmp dword [ebp - 0x10], 0
jbe 0x517ab5
jmp 0x517a92
jle 0x517ab5
push 0
push 0x400
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407a4c
mov dword [0x52d35c], eax
mov dword [0x52d360], edx
jmp 0x517b61
push 0
mov edi, dword [ebx + 0x388]
mov eax, edi
call fcn.005132c4
mov edx, esi
call fcn.004f7238
mov ecx, dword [eax + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 0x517d58
call fcn.00406d68
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov eax, edi
call fcn.004e7fe0
cmp ax, 0xd5
jne 0x517b61
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x388]
mov eax, dword [eax + 0x9c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 4]
call fcn.00412094
mov edi, dword [0x526c08]
mov edi, dword [edi]
mov edx, dword [ebp - 4]
mov eax, 0x517d70
call edi
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.004c2124
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.004c1180
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0
push 0x400
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407a4c
mov dword [0x52d35c], eax
mov dword [0x52d360], edx
mov eax, dword [0x52d364]
mov edx, dword [0x52d368]
add eax, dword [0x52d35c]
adc edx, dword [0x52d360]
mov dword [0x52d364], eax
mov dword [0x52d368], edx
push 1
push 0
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 0x3c4]
mov eax, dword [eax + 0x280]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, dword [0x52d38c]
call fcn.00406d68
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebx + 0x388]
call fcn.005132c4
mov edx, esi
call fcn.004f7238
mov edx, dword [eax + 0x1c]
mov eax, dword [ebx + 0x388]
pop ecx
call fcn.0050f87c
mov eax, dword [ebx + 0x388]
call fcn.005132c4
mov edx, esi
call fcn.004f7238
mov eax, dword [eax + 0x1c]
mov edx, 0x517d80
call fcn.00406f6c
jne 0x517c4d
jmp 0x517c3a
push 0
push 0
push 0x10
push 0x517d94
push 0
call sub.user32.dll_FindWindowW
push eax
call sub.user32.dll_PostMessageW
mov byte [0x52d384], 1
inc dword [ebp - 8]
push 0xbb8
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x52709c]
mov eax, dword [eax]
call fcn.004bb02c
cmp dword [ebp - 8], 5
je 0x517d1a
push 0x517d94
push 0x517da8
call sub.user32.dll_FindWindowW
test eax, eax
ja 0x517bf8
mov eax, dword [ebx + 0x388]
call fcn.005132c4
mov edx, esi
call fcn.004f7238
mov eax, dword [eax + 0x1c]
mov edx, 0x517dd0
call fcn.00406f6c
je 0x517d1a
push 0
lea ecx, [ebp - 0x30]
mov eax, dword [ebx + 0x3c4]
mov eax, dword [eax + 0x280]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, dword [0x52d390]
call fcn.00406d68
mov eax, dword [ebp - 0x2c]
call fcn.00406938
push eax
lea ecx, [ebp - 0x38]
mov eax, dword [ebx + 0x3c4]
mov eax, dword [eax + 0x280]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, dword [0x52d38c]
call fcn.00406d68
mov eax, dword [ebp - 0x34]
call fcn.00406938
push eax
call sub.kernel32.dll_CopyFileW
lea ecx, [ebp - 0x40]
mov eax, dword [ebx + 0x3c4]
mov eax, dword [eax + 0x280]
mov edx, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [0x52d38c]
call fcn.00406d68
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x44]
call fcn.00406938
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517d44
lea eax, [ebp - 0x40]
mov edx, 0xc
call fcn.004068a4
lea eax, [ebp - 4]
call fcn.0040689c
ret