Function at 0x105aad0
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 [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x105ab10
mov eax, 0x80004003
jmp 0x105aedc
test edi, edi
jne 0x105ab1f
test eax, eax
jne 0x105ab1f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.010561ca
test eax, eax
jne 0x105ab39
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x80070002
jmp 0x105aedc
push ebx
mov ebx, 0x208
test edi, edi
je 0x105ac53
cmp dword [ebp + 0x14], 0
je 0x105ab5f
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.010561f7
call fcn.01056f29
cmp dword [ebp + 0x10], 0
je 0x105ac53
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
test edi, edi
jne 0x105ab80
mov eax, 0x8007000e
jmp 0x105aedb
mov esi, 0x104
push esi
push edi
push dword [ebp - 0x418]
call fcn.010581e2
push edi
call fcn.01055e3d
cmp dword [ebp - 0x424], 0
je 0x105abbf
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push edi
push 0x100402c
push esi
push eax
call fcn.0103590d
add esp, 0x14
jmp 0x105abf1
push dword [0x10747d8]
lea eax, [ebp - 0x20c]
push edi
push 0x100a8a0
push esi
push eax
call fcn.0103590d
add esp, 0x14
inc dword [0x10747d8]
lea eax, [ebp - 0x20c]
push eax
call fcn.010561ca
test eax, eax
jne 0x105abbf
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 0x105ac68
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105ac20
push 0x57
pop eax
test eax, eax
jle 0x105ac2c
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push 0x100a850
push 0
call fcn.01055c69
add esp, 0x14
mov eax, 0x80004005
jmp 0x105aedb
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035811
jmp 0x105ac6e
mov edi, dword [ebp - 0x418]
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x420], eax
mov ebx, 0x10746c8
test eax, eax
je 0x105ae23
and dword [ebp - 0x41c], 0
push eax
push esi
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x105ae01
push dword [ebp - 0x420]
call fcn.01058835
push dword [ebp - 0x420]
call fcn.01055e3d
and dword [0x10747d8], 0
cmp dword [ebp - 0x424], 0
je 0x105aced
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x100402c
push esi
push eax
call fcn.0103590d
add esp, 0x14
jmp 0x105ad24
push dword [0x10747d8]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x100a8a0
push esi
push eax
call fcn.0103590d
add esp, 0x14
inc dword [0x10747d8]
lea eax, [ebp - 0x414]
push eax
call fcn.010561ca
test eax, eax
jne 0x105aced
xor esi, esi
lea eax, [ebp - 0x414]
push eax
cmp dword [ebp - 0x418], esi
je 0x105ada2
push dword [ebp - 0x418]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
je 0x105ae01
push dword [ebp - 0x418]
call fcn.010561ca
test eax, eax
je 0x105ad6f
push dword [ebp - 0x418]
push 0x100a808
push 1
call fcn.01055c69
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.0105952d
mov edi, eax
cmp edi, 0xd2af9
jne 0x105ae01
push 0
jmp 0x105adec
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x105ae01
lea eax, [ebp - 0x20c]
push eax
push 0x100a7c4
push 4
call fcn.01055c69
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x41c], 1
call fcn.0105952d
mov edi, eax
cmp edi, 0xd2af9
jne 0x105ae01
push esi
lea eax, [ebp - 0x414]
push eax
push 2
mov ecx, ebx
mov edi, 0xd2af8
call fcn.01058b11
push dword [ebp - 0x420]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x41c], 0
pop ecx
je 0x105ae1d
mov eax, edi
jmp 0x105aedb
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 0x105ae9c
test edi, edi
je 0x105ae57
push 0x5c
push edi
call fcn.01055e58
test eax, eax
je 0x105ae57
push edi
push 0x100a7a0
push 2
call fcn.01055c69
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x100a770
push 2
call fcn.01055c69
add esp, 0xc
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
je 0x105ae8b
push edi
push eax
push 8
call fcn.01058b11
mov eax, 0xd2af9
jmp 0x105aedb
push 0
push eax
push 2
call fcn.01058b11
mov eax, 0xd2af8
jmp 0x105aedb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105aeab
push 0x57
pop eax
test eax, eax
jle 0x105aeb7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x105aec2
mov esi, 0x80004005
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100a734
push 2
call fcn.01055c69
add esp, 0x10
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 0x18