Function at 0x10016f48
Capabilities:
Check if file exists
Move file

Disassembly:
push 0x4c0
mov eax, 0x100306dc
call fcn.1001a75a
mov esi, ecx
mov edi, edx
push esi
mov dword [ebp - 0x488], esi
mov dword [ebp - 0x464], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016f7d
mov eax, 0x44f
call fcn.1001a7dd
ret
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10016f8f
mov eax, 0x450
jmp 0x10016f77
push esi
call fcn.100168cd
pop ecx
test eax, eax
je 0x10016fa9
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.10016b8f
pop ecx
pop ecx
jmp 0x10016f77
lea eax, [ebp - 0x4b0]
push eax
call fcn.1000687e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x460], 1
cmp dword [ebp + 8], ebx
je 0x100171f1
lea eax, [ebp - 0x484]
push eax
call fcn.100067af
lea edx, [ebp - 0x484]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10016ce7
test eax, eax
je 0x10017021
lea esi, [ebp - 0x484]
call fcn.10006c35
push dword [ebp - 0x484]
call fcn.10019e83
pop ecx
mov edi, 0x451
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4b0]
push eax
call fcn.100069f8
mov eax, edi
jmp 0x10016f77
mov esi, dword [ebp - 0x478]
cmp esi, dword [ebp - 0x474]
jbe 0x10017034
call fcn.10019e15
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], esi
mov esi, dword [ebp - 0x474]
cmp dword [ebp - 0x478], esi
jbe 0x10017059
call fcn.10019e15
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x48c], esi
lea edi, [ebp - 0x490]
lea esi, [ebp - 0x46c]
mov dword [ebp - 0x490], eax
call fcn.10006861
test al, al
je 0x100171bd
xor eax, eax
push 0x40e
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
call fcn.1001bc00
add esp, 0xc
push dword [ebp - 0x464]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.10006caa
cmp dword [eax + 0x18], 8
jb 0x100170c5
mov eax, dword [eax + 4]
jmp 0x100170c8
add eax, 4
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001718a
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1001718a
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x440]
call fcn.10005c3d
mov byte [ebp - 4], 2
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x1001712a
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1001719c
lea eax, [ebp - 0x424]
push eax
lea esi, [ebp - 0x4cc]
call fcn.10003a3e
mov eax, esi
push eax
lea ebx, [ebp - 0x4b0]
mov byte [ebp - 4], 3
call fcn.100068b4
push 0xffffffffffffffff
push eax
xor ebx, ebx
lea eax, [ebp - 0x440]
call fcn.10003e61
push ebx
push 1
call fcn.10003f0e
push ebx
push 1
lea esi, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.10003f0e
lea esi, [ebp - 0x46c]
call fcn.10006cd2
xor ebx, ebx
jmp 0x10017046
lea ebx, [ebp - 0x4b0]
call fcn.10016e9c
and dword [ebp - 0x460], 0
push 0
push 1
lea esi, [ebp - 0x440]
call fcn.10003f0e
xor ebx, ebx
lea esi, [ebp - 0x484]
mov byte [ebp - 4], bl
call fcn.10006c35
push dword [ebp - 0x484]
call fcn.10019e83
pop ecx
cmp dword [ebp - 0x460], ebx
jne 0x100171eb
mov edi, 0x452
jmp 0x1001700a
mov esi, dword [ebp - 0x488]
push dword [ebp - 0x464]
lea ecx, [ebp - 0x45c]
push esi
push 0x10036684
push str.__s__x___s___r__o__s___y
call fcn.100063d6
add esp, 0x10
push ebx
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x428], 0xf
call fcn.10004386
mov byte [ebp - 4], 7
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x1001723f
lea eax, [ebp - 0x458]
lea ecx, [ebp - 0x440]
push ecx
push eax
call fcn.10016861
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x440]
mov edi, eax
call fcn.10003e16
cmp edi, ebx
jne 0x10017268
cmp dword [ebp + 8], 1
jne 0x10017273
lea ebx, [ebp - 0x4b0]
call fcn.10016e9c
push 0
push 1
lea esi, [ebp - 0x45c]
call fcn.10003f0e
jmp 0x1001700a