Function at 0x462180
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea328
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5441b4]
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 + 0xe0]
fild dword [esi + 0xe0]
mov eax, dword [esi + 0xdc]
mov edi, dword [eax]
mov dword [ebp - 0x70], esi
test ecx, ecx
jns 0x4621ce
fadd dword [0x516210]
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 0x46237f
mov dword [ebp - 0x68], 0x64
mov eax, dword [edi + 8]
cmp byte [eax + 0x70], 0
je 0x46232c
push 0x50b670
add esi, 0x24
lea ecx, [ebp - 0x64]
push esi
push ecx
call fcn.00404300
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
lea ebx, [ebp - 0x48]
call fcn.004125f0
mov esi, eax
lea edx, [ebp - 0x2c]
cmp edx, esi
je 0x4622a4
cmp dword [ebp - 0x18], 8
jb 0x462243
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
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 0x46227c
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004b6540
add esp, 0xc
lea edx, [ebx + 1]
jmp 0x462287
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 0x4622ae
mov ebx, 7
mov edx, 8
cmp dword [ebp - 0x34], edx
jb 0x4622c4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b6106
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 0x4622ed
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b6106
add esp, 4
mov edx, 8
mov eax, dword [edi + 8]
add eax, 0x38
cmp dword [eax + 0x10], 0
jne 0x46230d
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x462304
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x462329
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x462318
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x14], edx
jb 0x46231f
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 + 0x7c]
test ebx, ebx
je 0x462353
fild dword [ebp - 0x68]
fdiv dword [ebp - 0x6c]
fsubr qword [0x516208]
call fcn.004bf050
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 + 0xdc]
jne 0x4621f5
cmp dword [ebp - 0x18], 8
jb 0x46237f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
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.004b6111
mov esp, ebp
pop ebp
ret