Function at 0x408570
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8aea
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d5210]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x80], esi
push 0xffffffffffffffff
push eax
push ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00407c50
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x7c], 0x3f
call fcn.00409d80
cmp eax, 0xffffffff
je 0x408652
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409b40
mov edi, eax
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x408639
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40861c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407b30
xor eax, eax
mov dword [ebp - 0x18], 7
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00409f30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x408652
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407b30
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x2f
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409d80
cmp eax, 0xffffffff
je 0x4086d7
inc eax
cmp eax, dword [ebx + 0x10]
jae 0x4086d7
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409b40
mov edi, eax
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x4086be
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4086a1
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407b30
xor eax, eax
mov dword [ebp - 0x18], 7
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00409f30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x4086d7
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407b30
cmp dword [ebp - 0x1c], 4
jae 0x4086f4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2c]
push eax
lea edx, [esi + 0x20]
lea ecx, [ebp - 0x5c]
call fcn.0040a1e0
push str..temp
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
call fcn.0040a2c0
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x408732
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407b30
xor eax, eax
mov dword [ebp - 0x48], 7
cmp dword [ebp - 0x30], 8
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
mov dword [ebp - 0x4c], 0
call fcn.00409020
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x7c], ebx
cmp ebx, 0xffffffff
je 0x408959
lea edi, [esi + 0x38]
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x40879f
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407c50
push dword [ebp - 0x84]
mov byte [ebp - 4], 6
push ecx
push ebx
mov ecx, esi
call fcn.004089e0
push ebx
mov byte [ebp - 0x75], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0x75]
mov dword [ebp - 0x7c], 0xffffffff
test bl, bl
jne 0x4087de
cmp dword [edi + 0x14], 8
jb 0x4087d2
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4088db
mov eax, dword [esi + 0x48]
mov ecx, edi
add eax, 0xfffffffb
push eax
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.00409b40
mov ebx, eax
add esi, 8
cmp esi, ebx
je 0x408835
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40880e
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407b30
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x408826
mov eax, dword [esi]
jmp 0x408828
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00409f30
lea ecx, [ebp - 0x74]
call fcn.00407890
cmp dword [esi + 0x14], 8
jb 0x408847
mov eax, dword [esi]
jmp 0x408849
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x408853
mov ecx, dword [edi]
jmp 0x408855
mov ecx, edi
push eax
push ecx
call fcn.00461d03
add esp, 8
test eax, eax
je 0x4088d8
cmp dword [esi + 0x14], 8
jb 0x40886d
mov eax, dword [esi]
jmp 0x40886f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x408880
mov ecx, dword [esi]
jmp 0x408882
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x40888c
mov eax, dword [edi]
jmp 0x40888e
mov eax, edi
push ecx
push eax
call fcn.00461d03
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4088a2
mov ecx, dword [esi]
jmp 0x4088a4
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x4088ae
mov eax, dword [edi]
jmp 0x4088b0
mov eax, edi
push ecx
push eax
call fcn.00461d03
add esp, 8
test eax, eax
je 0x4088d8
cmp dword [esi + 0x14], 8
jb 0x4088c6
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4088ce
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov bl, byte [ebp - 0x75]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4088f0
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407b30
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x408919
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00407b30
mov al, bl
jmp 0x4089b7
cmp dword [esi], 0
je 0x408977
push dword [esi + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x4c94f4
call fcn.004078d0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x40898c
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407b30
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x4089b5
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00407b30
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434840
mov esp, ebp
pop ebp
ret 0xc