Function at 0x105aaf1
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 0x105ab31
mov eax, 0x80004003
jmp 0x105aefd
test edi, edi
jne 0x105ab40
test eax, eax
jne 0x105ab40
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.010561eb
test eax, eax
jne 0x105ab5a
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x80070002
jmp 0x105aefd
push ebx
mov ebx, 0x208
test edi, edi
je 0x105ac74
cmp dword [ebp + 0x14], 0
je 0x105ab80
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.01056218
call fcn.01056f4a
cmp dword [ebp + 0x10], 0
je 0x105ac74
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
test edi, edi
jne 0x105aba1
mov eax, 0x8007000e
jmp 0x105aefc
mov esi, 0x104
push esi
push edi
push dword [ebp - 0x418]
call fcn.01058203
push edi
call fcn.01055e5e
cmp dword [ebp - 0x424], 0
je 0x105abe0
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push edi
push 0x100402c
push esi
push eax
call fcn.0103592d
add esp, 0x14
jmp 0x105ac12
push dword [0x10747d8]
lea eax, [ebp - 0x20c]
push edi
push 0x100a8a0
push esi
push eax
call fcn.0103592d
add esp, 0x14
inc dword [0x10747d8]
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
jne 0x105abe0
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 0x105ac89
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105ac41
push 0x57
pop eax
test eax, eax
jle 0x105ac4d
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push 0x100a850
push 0
call fcn.01055c8a
add esp, 0x14
mov eax, 0x80004005
jmp 0x105aefc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035831
jmp 0x105ac8f
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 0x105ae44
and dword [ebp - 0x41c], 0
push eax
push esi
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x105ae22
push dword [ebp - 0x420]
call fcn.01058856
push dword [ebp - 0x420]
call fcn.01055e5e
and dword [0x10747d8], 0
cmp dword [ebp - 0x424], 0
je 0x105ad0e
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x100402c
push esi
push eax
call fcn.0103592d
add esp, 0x14
jmp 0x105ad45
push dword [0x10747d8]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push 0x100a8a0
push esi
push eax
call fcn.0103592d
add esp, 0x14
inc dword [0x10747d8]
lea eax, [ebp - 0x414]
push eax
call fcn.010561eb
test eax, eax
jne 0x105ad0e
xor esi, esi
lea eax, [ebp - 0x414]
push eax
cmp dword [ebp - 0x418], esi
je 0x105adc3
push dword [ebp - 0x418]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
je 0x105ae22
push dword [ebp - 0x418]
call fcn.010561eb
test eax, eax
je 0x105ad90
push dword [ebp - 0x418]
push 0x100a808
push 1
call fcn.01055c8a
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.0105954e
mov edi, eax
cmp edi, 0xd2af9
jne 0x105ae22
push 0
jmp 0x105ae0d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x105ae22
lea eax, [ebp - 0x20c]
push eax
push 0x100a7c4
push 4
call fcn.01055c8a
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x41c], 1
call fcn.0105954e
mov edi, eax
cmp edi, 0xd2af9
jne 0x105ae22
push esi
lea eax, [ebp - 0x414]
push eax
push 2
mov ecx, ebx
mov edi, 0xd2af8
call fcn.01058b32
push dword [ebp - 0x420]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x41c], 0
pop ecx
je 0x105ae3e
mov eax, edi
jmp 0x105aefc
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 0x105aebd
test edi, edi
je 0x105ae78
push 0x5c
push edi
call fcn.01055e79
test eax, eax
je 0x105ae78
push edi
push 0x100a7a0
push 2
call fcn.01055c8a
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x100a770
push 2
call fcn.01055c8a
add esp, 0xc
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
je 0x105aeac
push edi
push eax
push 8
call fcn.01058b32
mov eax, 0xd2af9
jmp 0x105aefc
push 0
push eax
push 2
call fcn.01058b32
mov eax, 0xd2af8
jmp 0x105aefc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105aecc
push 0x57
pop eax
test eax, eax
jle 0x105aed8
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x105aee3
mov esi, 0x80004005
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100a734
push 2
call fcn.01055c8a
add esp, 0x10
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 0x18