Function at 0x409532
Capabilities:
Check if file exists
Get common file path
Move file

Disassembly:
push 0x22c
mov eax, 0x44b773
call fcn.00439970
mov edi, ecx
push dword [edi + 0x46c]
mov dword [ebp - 0x238], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40960c
mov eax, dword [edi + 0x46c]
push str..zip
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.00434f04
test eax, eax
pop ecx
pop ecx
jne 0x40960c
mov eax, dword [0x45fb34]
mov ebx, 0x45fb34
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
and dword [ebp - 4], 0
lea esi, [ebp - 0x230]
call fcn.00426680
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0042dc70
push edx
push eax
push dword [esi]
lea eax, [ebp - 0x22c]
push str._siTools_Temp__016I64X
push eax
call fcn.00402dc0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00402f9a
mov esi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4095f3
mov eax, esi
call fcn.00426660
push dword [edi + 0x46c]
mov ecx, esi
call fcn.004099c3
test eax, eax
jne 0x409614
lea eax, [esi - 0x10]
call fcn.00402f9a
xor eax, eax
call fcn.004399ba
ret
mov eax, dword [0x45fb34]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
xor esi, esi
push 0x206
lea eax, [ebp - 0x21a]
push esi
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x21c], si
call fcn.00434800
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x234]
push str._sThinkSkyiToolsDriver
push eax
call fcn.00402dc0
mov eax, dword [ebp - 0x234]
add esp, 0xc
call fcn.00426660
mov dword [ebp - 0x230], esi
push str.SOFTWAREApple_Inc.CoreFP
lea esi, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.0040b23d
test eax, eax
jne 0x4097ad
mov esi, str.CoreFP.dll
lea eax, [ebp - 0x228]
push esi
push eax
lea ecx, [ebp - 0x234]
call fcn.00401d56
pop ecx
pop ecx
push dword [eax]
lea eax, [ebp - 0x230]
push str.LibraryPath
push eax
call fcn.0040b203
mov ebx, eax
mov eax, dword [ebp - 0x228]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00402f9a
test bl, bl
je 0x4097ad
lea eax, [ebp - 0x220]
push esi
push eax
lea ecx, [ebp - 0x234]
call fcn.00401d56
mov edi, eax
lea eax, [ebp - 0x228]
push esi
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 4
call fcn.00401d56
mov edi, dword [edi]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
add esp, 0x10
push edi
push eax
call esi
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00402f9a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402f9a
mov edi, str.iTunes.dll
lea eax, [ebp - 0x228]
push edi
push eax
lea ecx, [ebp - 0x234]
call fcn.00401d56
mov ebx, eax
lea eax, [ebp - 0x220]
push edi
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.00401d56
mov ebx, dword [ebx]
mov eax, dword [eax]
add esp, 0x10
push ebx
push eax
call esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402f9a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00402f9a
mov edi, dword [ebp - 0x238]
lea eax, [ebp - 0x224]
push str.AppleApplicationSupport.msi
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401d56
pop ecx
pop ecx
mov byte [ebp - 4], 6
push dword [ebp - 0x224]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409834
push dword [edi + 0x440]
mov edi, 0x453e08
call fcn.0041e430
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040a52c
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x228], esp
push str.___quiet_REBOOTReallySuppress_PARENTUILVL_5_
push ecx
mov ecx, eax
call fcn.00401d56
pop ecx
pop ecx
push dword [ebp - 0x238]
call fcn.00409df4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402f9a
lea eax, [ebp - 0x220]
push str.AppleMobileDeviceSupport64.msi
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401d56
pop ecx
pop ecx
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.00404a69
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402f9a
push dword [ebp - 0x224]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ebx, dword [ebp - 0x238]
mov esi, str.___quiet_REBOOTReallySuppress
je 0x4098da
push dword [ebx + 0x440]
mov edi, 0x453f08
call fcn.0041e430
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040a52c
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x228], esp
push esi
push ecx
mov ecx, eax
call fcn.00401d56
pop ecx
pop ecx
push ebx
call fcn.00409df4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402f9a
lea eax, [ebp - 0x220]
push str.AppleMobileDeviceSupport.msi
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401d56
pop ecx
pop ecx
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.00404a69
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402f9a
push dword [ebp - 0x224]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409975
push dword [ebx + 0x440]
mov edi, str.ck_W
call fcn.0041e430
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040a52c
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x228], esp
push esi
push ecx
mov ecx, eax
call fcn.00401d56
pop ecx
pop ecx
push ebx
call fcn.00409df4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402f9a
mov esi, dword [ebp - 0x22c]
mov ecx, esi
call fcn.00426510
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00402f9a
cmp dword [ebp - 0x230], 0
je 0x4099a5
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
call fcn.00402f9a
lea eax, [esi - 0x10]
call fcn.00402f9a
xor eax, eax
inc eax
jmp 0x40960e