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

Disassembly:
push 0x50
mov eax, 0x47aa13
call fcn.00450508
mov ebx, ecx
mov dword [ebp - 0x20], ebx
and dword [ebp - 0x14], 0
call fcn.00409480
push eax
lea ecx, [ebp - 0x18]
call fcn.00408c39
mov dword [ebp - 4], 1
call fcn.00409480
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408c39
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00434cd9
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
push str.HandleFiles
lea ecx, [ebp - 0x34]
call fcn.0041dfa0
mov byte [ebp - 4], 5
mov eax, dword [ebx + 0x18]
mov edi, dword [ebp - 0x18]
mov esi, dword [eax]
cmp esi, eax
je 0x4300f9
cmp byte [esi + 0x14], 0
jne 0x42ff7e
cmp byte [esi + 0x15], 0
jne 0x43009c
cmp byte [esi + 0x16], 0
je 0x42ff8a
cmp byte [esi + 0x17], 0
je 0x42ff7e
mov ecx, dword [esi + 0x10]
call fcn.0041f708
test al, al
je 0x42ff7a
push dword [esi + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4300c9
mov byte [esi + 0x14], 1
mov esi, dword [esi]
cmp esi, dword [ebx + 0x18]
jne 0x42ff3e
jmp 0x4300f9
push ebx
push ecx
mov ecx, dword [esi + 8]
lea edx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
call fcn.0042fd8f
mov dword [ebp - 0x14], eax
pop ecx
pop ecx
test eax, eax
jne 0x430258
cmp byte [esi + 0x17], al
je 0x42ffd8
mov ecx, dword [esi + 0x10]
call fcn.0041f708
test al, al
je 0x42ffcd
push dword [esi + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4300c9
push 0x10
pop eax
mov byte [esi + 0x14], 1
mov edi, eax
jmp 0x42ffdb
push 0xc
pop edi
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a1c3
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a1c3
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], 9
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x430053
cmp eax, 0x20
je 0x43001f
cmp eax, 5
jne 0x430030
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x24], 1
jns 0x42fffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push edi
push str.Cannot_copy_file__s_____s_gle_u
call fcn.0041dafb
mov ebx, dword [ebp - 0x20]
add esp, 0x10
jmp 0x4300f9
cmp byte [ebp - 0xd], 0
mov byte [esi + 0x14], 1
je 0x430094
mov dword [ebp - 0x24], 9
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x430094
cmp eax, 0x20
je 0x430083
cmp eax, 5
jne 0x430094
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x24], 1
jns 0x430064
mov ebx, dword [ebp - 0x20]
jmp 0x42ff7e
cmp byte [esi + 0x17], 0
je 0x42ff7e
mov ecx, dword [esi + 0x10]
call fcn.0041f4fc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42ff7a
cmp eax, 0xb7
jne 0x4300e8
and dword [ebp - 0x14], 0
jmp 0x42ff7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebp - 0x14], eax
push dword [esi + 0xc]
push dword [esi + 0x10]
push str.Cannot_move_file__s_____s_gle_u
call fcn.0041dafb
add esp, 0x10
jmp 0x4300f9
push eax
push dword [esi + 0x10]
push str.Cannot_create_directory__s_gle_u
call fcn.0041dafb
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x430258
mov eax, dword [ebx + 0x18]
mov esi, dword [eax]
cmp esi, eax
je 0x430258
cmp byte [esi + 0x15], 0
jne 0x43024d
cmp byte [esi + 0x16], 0
mov cl, byte [esi + 0x17]
jne 0x4301d9
lea eax, [esi + 0xc]
test cl, cl
push eax
lea ecx, [ebp - 0x18]
je 0x43017c
call fcn.0040a1c3
lea ecx, [ebp - 0x1c]
call fcn.00408f6d
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.0041f708
test al, al
je 0x4301ba
call fcn.0042f494
test al, al
jne 0x430167
push edi
push str.Reboot_reason_imm:__s
call fcn.0041dafb
pop ecx
pop ecx
mov byte [ebx + 0xe], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
lea ecx, [ebx + 0x68]
push eax
call fcn.0041b1fa
mov edi, dword [ebp - 0x18]
jmp 0x4301ba
call fcn.0040a1c3
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a1c3
mov edi, dword [ebp - 0x18]
push edi
push str.Reboot_reason_non_imm:__s
call fcn.0041dafb
pop ecx
pop ecx
push 5
push dword [ebp - 0x1c]
mov byte [ebx + 0xe], 1
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4301ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43024d
push eax
push dword [ebp - 0x1c]
push edi
push str.Cannot_register_reboot_move_file__s_____s_gle_u
call fcn.0041dafb
add esp, 0x10
jmp 0x43024d
push 0xc
pop eax
test cl, cl
push 0x10
pop ecx
cmove eax, ecx
lea ecx, [ebp - 0x18]
add eax, esi
push eax
call fcn.0040a1c3
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.0041f708
test al, al
je 0x43024d
cmp byte [esi + 0x17], 0
je 0x43021c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x430237
cmp byte [esi + 0x17], al
je 0x43021c
call fcn.0042f494
test al, al
jne 0x43022d
push edi
push str.Reboot_reason_delete:__s
call fcn.0041dafb
pop ecx
pop ecx
mov byte [ebx + 0xe], 1
mov ecx, edi
call fcn.00420fdb
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43024d
push eax
push edi
push str.Cannot_register_reboot_delete_file__s_gle_u
call fcn.0041dafb
add esp, 0xc
mov esi, dword [esi]
cmp esi, dword [ebx + 0x18]
jne 0x430110
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0041e015
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00434cfb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00409575
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00409575
mov eax, esi
call fcn.004504d1
ret