Function at 0x105c64d
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x424], eax
jne 0x105c68d
mov eax, 0x80004003
jmp 0x105ca59
test edi, edi
jne 0x105c69c
test eax, eax
jne 0x105c69c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.01056f43
test eax, eax
jne 0x105c6b6
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x80070002
jmp 0x105ca59
test edi, edi
push ebx
mov ebx, 0x208
je 0x105c7d0
cmp dword [ebp + 0x14], 0
je 0x105c6dc
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.01056f70
call fcn.01057d79
cmp dword [ebp + 0x10], 0
je 0x105c7d0
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x105c6fd
mov eax, 0x8007000e
jmp 0x105ca58
mov esi, 0x104
push esi
push edi
push dword [ebp - 0x418]
call fcn.01059158
push edi
call fcn.01056bba
cmp dword [ebp - 0x424], 0
je 0x105c73c
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push edi
push 0x1004478
push esi
push eax
call fcn.01034d76
add esp, 0x14
jmp 0x105c76e
push dword [0x10821e8]
lea eax, [ebp - 0x20c]
push edi
push 0x100a4f4
push esi
push eax
call fcn.01034d76
add esp, 0x14
inc dword [0x10821e8]
lea eax, [ebp - 0x20c]
push eax
call fcn.01056f43
test eax, eax
jne 0x105c73c
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x105c7e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105c79d
push 0x57
pop eax
test eax, eax
jle 0x105c7a9
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push 0x100b0d8
push 0
call fcn.0105e5ad
add esp, 0x14
mov eax, 0x80004005
jmp 0x105ca58
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034c79
jmp 0x105c7eb
mov edi, dword [ebp - 0x418]
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x420], eax
mov ebx, 0x10820c8
je 0x105c9a0
and dword [ebp - 0x41c], 0
push eax
push esi
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x105c97e
push dword [ebp - 0x420]
call fcn.01059783
push dword [ebp - 0x420]
call fcn.01056bba
and dword [0x10821e8], 0
cmp dword [ebp - 0x424], 0
je 0x105c86a
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x1004478
push esi
push eax
call fcn.01034d76
add esp, 0x14
jmp 0x105c8a1
push dword [0x10821e8]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x100a4f4
push esi
push eax
call fcn.01034d76
add esp, 0x14
inc dword [0x10821e8]
lea eax, [ebp - 0x414]
push eax
call fcn.01056f43
test eax, eax
jne 0x105c86a
xor esi, esi
cmp dword [ebp - 0x418], esi
lea eax, [ebp - 0x414]
push eax
je 0x105c91f
push dword [ebp - 0x418]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
je 0x105c97e
push dword [ebp - 0x418]
call fcn.01056f43
test eax, eax
je 0x105c8ec
push dword [ebp - 0x418]
push 0x100b090
push 1
call fcn.0105e5ad
add esp, 0xc
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
mov dword [ebp - 0x41c], eax
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0105a865
mov edi, eax
cmp edi, 0xd2af9
jne 0x105c97e
push 0
jmp 0x105c969
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x105c97e
lea eax, [ebp - 0x20c]
push eax
push 0x100b04c
push 4
call fcn.0105e5ad
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x41c], 1
call fcn.0105a865
mov edi, eax
cmp edi, 0xd2af9
jne 0x105c97e
push esi
lea eax, [ebp - 0x414]
push eax
push 2
mov ecx, ebx
mov edi, 0xd2af8
call fcn.01059acf
push dword [ebp - 0x420]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x41c], 0
pop ecx
je 0x105c99a
mov eax, edi
jmp 0x105ca58
mov edi, dword [ebp - 0x418]
push 5
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x105ca19
test edi, edi
je 0x105c9d4
push 0x5c
push edi
call fcn.01056bd5
test eax, eax
je 0x105c9d4
push edi
push 0x100b028
push 2
call fcn.0105e5ad
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x100aff8
push 2
call fcn.0105e5ad
add esp, 0xc
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
je 0x105ca08
push edi
push eax
push 8
call fcn.01059acf
mov eax, 0xd2af9
jmp 0x105ca58
push 0
push eax
push 2
call fcn.01059acf
mov eax, 0xd2af8
jmp 0x105ca58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105ca28
push 0x57
pop eax
test eax, eax
jle 0x105ca34
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x105ca3f
mov esi, 0x80004005
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100afbc
push 2
call fcn.0105e5ad
add esp, 0x10
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 0x18