Function at 0x4662b0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efd38
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x54b1b4]
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 + 0x100]
fild dword [esi + 0x100]
mov eax, dword [esi + 0xfc]
mov edi, dword [eax]
mov dword [ebp - 0x70], esi
test ecx, ecx
jns 0x4662fe
fadd dword [0x51be68]
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 0x4664b2
mov dword [ebp - 0x68], 0x64
mov eax, dword [edi + 8]
cmp byte [eax + 0x70], 0
je 0x46645c
push 0x510884
add esi, 0x24
lea ecx, [ebp - 0x64]
push esi
push ecx
call fcn.004076e0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
lea ebx, [ebp - 0x48]
call fcn.00414010
mov esi, eax
lea edx, [ebp - 0x2c]
cmp edx, esi
je 0x4663d4
cmp dword [ebp - 0x18], 8
jb 0x466373
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
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 0x4663ac
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004ba7e0
add esp, 0xc
lea edx, [ebx + 1]
jmp 0x4663b7
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 0x4663de
mov ebx, 7
mov edx, 8
cmp dword [ebp - 0x34], edx
jb 0x4663f4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
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 0x46641d
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004ba3a4
add esp, 4
mov edx, 8
mov eax, dword [edi + 8]
add eax, 0x38
cmp dword [eax + 0x10], 0
jne 0x46643d
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x466434
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x466459
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x466448
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x14], edx
jb 0x46644f
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 + 0x9c]
test ebx, ebx
je 0x466486
fild dword [ebp - 0x68]
fdiv dword [ebp - 0x6c]
fsubr qword [0x51be60]
call fcn.004c3410
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 + 0xfc]
jne 0x466325
cmp dword [ebp - 0x18], 8
jb 0x4664b2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
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.004ba3af
mov esp, ebp
pop ebp
ret