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

Disassembly:
push 0x234
mov eax, 0x44f108
call fcn.0044b8c8
mov esi, ecx
push dword [esi + 0x478]
mov dword [ebp - 0x234], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bb43
mov esi, dword [esi + 0x478]
push str..zip
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.00439d9e
pop ecx
pop ecx
test eax, eax
jne 0x40bb43
mov eax, dword [section..data]
mov ebx, section..data
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
xor edi, edi
lea esi, [ebp - 0x228]
mov dword [ebp - 4], edi
call fcn.0041dd70
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0041efc0
push edx
push eax
push dword [esi]
lea eax, [ebp - 0x22c]
push str._siTools_Temp__016I64X
push eax
call fcn.00404457
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x228]
add esp, 0x14
add eax, 0xfffffff0
call fcn.0040507e
mov esi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bb24
mov eax, esi
call fcn.0041dd50
mov eax, dword [ebp - 0x234]
push dword [eax + 0x478]
mov ecx, esi
call fcn.0040bf20
test eax, eax
jne 0x40bb4b
lea eax, [esi - 0x10]
call fcn.0040507e
xor eax, eax
call fcn.0044b912
ret
mov eax, dword [section..data]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
xor eax, eax
mov byte [ebp - 4], 2
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.00437620
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push str._sThinkSkyiToolsDriver
push eax
call fcn.00404457
mov eax, dword [ebp - 0x228]
add esp, 0xc
call fcn.0041dd50
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
push str.SOFTWAREApple_Inc.CoreFP
push closesocket
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.0040d608
test eax, eax
jne 0x40bced
mov esi, str.CoreFP.dll
lea eax, [ebp - 0x230]
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.004038cf
pop ecx
pop ecx
push dword [eax]
lea eax, [ebp - 0x240]
push str.LibraryPath
push eax
call fcn.0040d564
mov ebx, eax
mov eax, dword [ebp - 0x230]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
call fcn.0040507e
inc bl
je 0x40bced
lea eax, [ebp - 0x220]
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.004038cf
mov edi, eax
lea eax, [ebp - 0x230]
push esi
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 4
call fcn.004038cf
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 - 0x230]
add eax, 0xfffffff0
call fcn.0040507e
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040507e
mov edi, str.iTunes.dll
lea eax, [ebp - 0x230]
push edi
push eax
lea ecx, [ebp - 0x228]
call fcn.004038cf
mov ebx, eax
lea eax, [ebp - 0x220]
push edi
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.004038cf
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.0040507e
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.0040507e
lea eax, [ebp - 0x224]
push str.AppleApplicationSupport.msi
push eax
lea ecx, [ebp - 0x22c]
call fcn.004038cf
pop ecx
pop ecx
mov byte [ebp - 4], 6
push dword [ebp - 0x224]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bd83
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
push eax
mov ecx, 0x457898
call fcn.00404da4
push dword [ebp - 0x234]
call fcn.0040c9f1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040ce38
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x230], esp
push str.___quiet_REBOOTReallySuppress_PARENTUILVL_5_
push ecx
mov ecx, eax
call fcn.004038cf
pop ecx
pop ecx
push dword [ebp - 0x234]
call fcn.0040c358
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040507e
lea eax, [ebp - 0x220]
push str.AppleMobileDeviceSupport64.msi
push eax
lea ecx, [ebp - 0x22c]
call fcn.004038cf
pop ecx
pop ecx
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.004068ad
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040507e
push dword [ebp - 0x224]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
mov esi, str.___quiet_REBOOTReallySuppress
test eax, eax
je 0x40be35
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
push eax
mov ecx, 0x457998
call fcn.00404da4
push dword [ebp - 0x234]
call fcn.0040c9f1
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.0040ce38
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
push ecx
mov ecx, eax
call fcn.004038cf
pop ecx
pop ecx
push dword [ebp - 0x234]
call fcn.0040c358
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040507e
lea eax, [ebp - 0x220]
push str.AppleMobileDeviceSupport.msi
push eax
lea ecx, [ebp - 0x22c]
call fcn.004038cf
pop ecx
pop ecx
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.004068ad
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040507e
push dword [ebp - 0x224]
call ebx
test eax, eax
je 0x40bedc
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
push eax
mov ecx, str.ck_W
call fcn.00404da4
push dword [ebp - 0x234]
call fcn.0040c9f1
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.0040ce38
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
push ecx
mov ecx, eax
call fcn.004038cf
pop ecx
pop ecx
push dword [ebp - 0x234]
call fcn.0040c358
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040507e
mov edi, dword [ebp - 0x22c]
mov ecx, edi
call fcn.0041db90
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040507e
lea esi, [ebp - 0x240]
call fcn.00406c3a
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.0040507e
lea eax, [edi - 0x10]
call fcn.0040507e
xor eax, eax
inc eax
jmp 0x40bb45