Function at 0x1006fa58
Capabilities:
Move file

Disassembly:
push 0x18
mov eax, 0x10096ddc
call fcn.100871aa
mov esi, ecx
mov edi, dword [esi + 0x10]
xor ebx, ebx
call fcn.1004988a
test al, al
jne 0x1006fcb8
cmp byte [ebp + 8], bl
jne 0x1006fcb8
cmp byte [esi + 0x14], bl
jne 0x1006faf8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1006fcb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1006fab2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
push ebx
lea eax, [ebp + 8]
push 0x10016b78
push eax
call fcn.10078ea6
mov ecx, dword [esi + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
add esp, 0xc
push esi
push 0
call dword [eax + 4]
lea eax, [esi - 0x10]
call fcn.1007924a
jmp 0x1006fcb8
push dword [esi + 0x18]
lea edi, [esi + 0xc]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.1005207b
push 0x10016c20
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.10058a35
push 0
push 7
mov byte [ebp - 4], 2
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x1c]
push 2
push eax
call fcn.1006b172
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x18]
call fcn.10058274
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0x14]
mov ebx, eax
push 0x1001ab1c
lea eax, [ebp + 8]
push eax
call fcn.100580f9
xor edi, edi
push edi
lea eax, [ebp + 8]
push eax
push ebx
push edi
push edi
mov byte [ebp - 4], 3
push dword [esi + 4]
push dword [esi + 0x1c]
call fcn.1005acc1
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1007924a
cmp ebx, edi
jne 0x1006fc61
lea edi, [esi + 8]
mov eax, dword [edi]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.1005225c
test al, al
je 0x1006fc14
mov edi, dword [edi]
push 3
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1006fc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1006fbd9
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x10]
push 0x10016b78
push eax
mov byte [ebp - 4], 5
call fcn.10078ea6
mov ecx, dword [esi + 0x18]
mov esi, dword [ebp - 0x10]
mov eax, dword [ecx]
add esp, 0xc
push esi
push 0
call dword [eax + 4]
jmp 0x1006fc51
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
push dword [edi]
lea eax, [ebp - 0x10]
push 0x10016c30
push eax
call fcn.10078ea6
mov ecx, dword [esi + 0x18]
mov esi, dword [ebp - 0x10]
mov eax, dword [ecx]
add esp, 0xc
push esi
push 0
call dword [eax + 4]
mov ebx, 0x80070002
lea eax, [esi - 0x10]
call fcn.1007924a
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x1006fc9c
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 7
push dword [esi + 8]
lea eax, [ebp + 8]
push 0x10016c90
push eax
call fcn.10078ea6
mov ecx, dword [esi + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
add esp, 0xc
push esi
push edi
call dword [eax + 4]
lea eax, [esi - 0x10]
call fcn.1007924a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100520ca
mov eax, ebx
call fcn.10087296
ret 4