Function at 0x45f0d0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5538
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 0x45f11e
fadd dword [0x510db8]
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 0x45f2cf
mov dword [ebp - 0x68], 0x64
mov eax, dword [edi + 8]
cmp byte [eax + 0x70], 0
je 0x45f27c
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 0x45f1f4
cmp dword [ebp - 0x18], 8
jb 0x45f193
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
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 0x45f1cc
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004b1690
add esp, 0xc
lea edx, [ebx + 1]
jmp 0x45f1d7
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 0x45f1fe
mov ebx, 7
mov edx, 8
cmp dword [ebp - 0x34], edx
jb 0x45f214
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
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 0x45f23d
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b1676
add esp, 4
mov edx, 8
mov eax, dword [edi + 8]
add eax, 0x38
cmp dword [eax + 0x10], 0
jne 0x45f25d
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x45f254
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45f279
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x45f268
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x14], edx
jb 0x45f26f
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 0x45f2a3
fild dword [ebp - 0x68]
fdiv dword [ebp - 0x6c]
fsubr qword [0x510db0]
call fcn.004ba5c0
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 0x45f145
cmp dword [ebp - 0x18], 8
jb 0x45f2cf
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
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.004b1681
mov esp, ebp
pop ebp
ret