Function at 0x105a63b
Capabilities:
Copy file
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
jne 0x105a655
xor eax, eax
jmp 0x105a85b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, 0x4000
test edi, eax
je 0x105a6b0
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.01056ac9
test eax, eax
je 0x105a6a8
push ebx
push dword [ebp + 8]
call dword [ebp - 8]
test eax, eax
jne 0x105a6a8
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push 0x100a510
push 2
call fcn.0105e5ad
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.01056ab5
cmp dword [ebp + 0x10], ebx
je 0x105a7ff
test byte [0x10821e4], 1
jne 0x105a6d3
or dword [0x10821e4], 1
call fcn.010571af
mov dword [0x10821e0], eax
cmp dword [0x10821e0], 5
jne 0x105a7ff
mov ebx, 0x208
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
je 0x105a70a
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x105a719
push dword [ebp + 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x105a859
mov ebx, 0x104
push ebx
push eax
push dword [ebp + 0xc]
call fcn.01059158
push dword [ebp - 4]
call fcn.01056bba
push dword [0x10821dc]
push dword [ebp - 4]
push 0x100a4f4
push ebx
push dword [ebp + 0x10]
call fcn.01034d76
add esp, 0x14
push dword [ebp + 0x10]
inc dword [0x10821dc]
call fcn.01056f43
test eax, eax
jne 0x105a730
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov ebx, dword [ebp + 0x10]
pop ecx
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x105a7f6
cmp dword [ebp - 0xc], 0
je 0x105a7c3
push ebx
call esi
test edi, eax
je 0x105a7c3
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.01056ac9
test eax, eax
je 0x105a7bb
push esi
push ebx
call dword [ebp - 0x10]
test eax, eax
jne 0x105a7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push 0x100a510
push 2
call fcn.0105e5ad
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.01056ab5
push 1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
push ebx
je 0x105a7e5
push 0x103
push dword [ebp + 8]
call fcn.01034c79
jmp 0x105a7eb
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, esi
jmp 0x105a859
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov ebx, eax
call esi
test edi, eax
je 0x105a857
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.01056ac9
test eax, eax
je 0x105a84f
push esi
push dword [ebp + 0xc]
call dword [ebp - 0x10]
test eax, eax
jne 0x105a84f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push 0x100a510
push 2
call fcn.0105e5ad
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.01056ab5
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10