Function at 0x45f670
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc0]
fild dword [esi + 0xc0]
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
mov dword [ebp - 0x70], esi
test ecx, ecx
jns 0x45f6be
fadd dword [0x510ef0]
xor ecx, ecx
fstp dword [ebp - 0x6c]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], ecx
cmp edi, eax
je 0x45f86f
mov dword [ebp - 0x68], 0x64
mov eax, dword [edi + 8]
cmp byte [eax + 0x70], 0
je 0x45f81c
push 0x5062dc
add esi, 0x24
lea ecx, [ebp - 0x64]
push esi
push ecx
call fcn.00403a10
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
lea ebx, [ebp - 0x48]
call fcn.00403b00
mov esi, eax
lea edx, [ebp - 0x2c]
cmp edx, esi
je 0x45f794
cmp dword [ebp - 0x18], 8
jb 0x45f733
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1c22
add esp, 4
xor ecx, ecx
mov ebx, 7
mov edx, 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [esi + 0x14], edx
jae 0x45f76c
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004b1c40
add esp, 0xc
lea edx, [ebx + 1]
jmp 0x45f777
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], ax
jmp 0x45f79e
mov ebx, 7
mov edx, 8
cmp dword [ebp - 0x34], edx
jb 0x45f7b4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1c22
add esp, 4
mov edx, 8
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], edx
jb 0x45f7dd
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b1c22
add esp, 4
mov edx, 8
mov eax, dword [edi + 8]
add eax, 0x38
cmp dword [eax + 0x10], 0
jne 0x45f7fd
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x45f7f4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45f819
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x45f808
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x14], edx
jb 0x45f80f
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x70]
mov ebx, dword [esi + 0x5c]
test ebx, ebx
je 0x45f843
fild dword [ebp - 0x68]
fdiv dword [ebp - 0x6c]
fsubr qword [0x510ee8]
call fcn.004bab70
push eax
push 0
push 0x4cc
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [edi]
add dword [ebp - 0x68], 0x64
cmp edi, dword [esi + 0xbc]
jne 0x45f6e5
cmp dword [ebp - 0x18], 8
jb 0x45f86f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1c22
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret