Function at 0x408eab
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x44bbd0
call fcn.00439907
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov eax, dword [0x45fb34]
mov ebx, 0x45fb34
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x45fb34]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push str.SOFTWAREApple_Computer__Inc.iPodRegisteredApps4
mov byte [ebp - 4], 2
push closesocket
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x408fbd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, 0x208
push eax
lea esi, [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.004033c5
push str.path
lea ecx, [ebp - 0x14]
push ecx
lea esi, [ebp - 0x24]
mov edi, eax
call fcn.00404e4d
xor esi, esi
cmp dword [ebp - 0x10], esi
jne 0x408f46
xor eax, eax
jmp 0x408f4f
push dword [ebp - 0x10]
call fcn.00434f36
pop ecx
lea edx, [ebp - 0x10]
call fcn.00402f31
push str..dll
push str..exe
lea eax, [ebp - 0x10]
push eax
call fcn.0040a3b1
push 0x5c
push dword [ebp - 0x10]
call fcn.00437061
cmp eax, esi
pop ecx
pop ecx
jne 0x408f7f
or eax, 0xffffffff
jmp 0x408f84
sub eax, dword [ebp - 0x10]
sar eax, 1
mov ecx, eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.0040b153
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00404a69
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00402f9a
cmp dword [ebp - 0x18], esi
je 0x408fbd
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408ff4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402f9a
lea eax, [esi - 0x10]
call fcn.00402f9a
cmp dword [ebp - 0x14], 0
je 0x408fed
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40910e
xor edi, edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
mov eax, dword [0x45fb34]
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
push eax
push 0x20019
push edi
push str.SOFTWAREApple_Inc.Apple_Mobile_Device_SupportShared
mov byte [ebp - 4], 5
push closesocket
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x409085
mov ebx, dword [ebp - 0x24]
mov eax, 0x208
push eax
lea esi, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
call fcn.004033c5
push str.AirTrafficHostDLL
lea ecx, [ebp - 0x18]
push ecx
lea esi, [ebp - 0x24]
mov edi, eax
call fcn.00404e4d
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x409067
xor eax, eax
jmp 0x40906e
push esi
call fcn.00434f36
pop ecx
lea edx, [ebp - 0x20]
call fcn.00402f31
test ebx, ebx
je 0x409085
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x18], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4090bd
lea eax, [esi - 0x10]
call fcn.00402f9a
cmp dword [ebp - 0x18], 0
je 0x4090a7
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402f9a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x408fd9
mov edi, dword [ebp + 8]
test edi, edi
je 0x4090cf
mov ecx, dword [ebp - 0x10]
call fcn.0042e970
mov word [edi], ax
lea eax, [esi - 0x10]
call fcn.00402f9a
cmp dword [ebp - 0x18], 0
je 0x4090e6
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402f9a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402f9a
cmp dword [ebp - 0x14], 0
je 0x40910b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
call fcn.004399a6
ret 4