Function at 0x41f9b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f282
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x463140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x220], ebx
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push str.SOFTWAREApple_Computer__Inc.iPodRegisteredApps4
mov byte [ebp - 4], 1
push closesocket
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x41faff
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebx - 8]
mov dword [ebp - 0x230], ecx
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x208
or eax, ecx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0x208
jge 0x41fa82
mov eax, 0x208
lea ecx, [ebp - 0x220]
call fcn.00404fef
mov ebx, dword [ebp - 0x220]
push str.path
lea edx, [ebp - 0x230]
push edx
lea esi, [ebp - 0x224]
mov edi, ebx
call fcn.00406b21
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00439a48
xor esi, esi
add esp, 8
cmp eax, esi
jl 0x41fbe4
cmp eax, dword [ebx - 8]
jg 0x41fbe4
push str..dll
push str..exe
lea edx, [ebp - 0x220]
xor ecx, ecx
mov dword [ebx - 0xc], eax
push edx
mov word [ebx + eax*2], cx
call fcn.0040ccbc
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x41faf1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x230], esi
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], esi
xor esi, esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fc51
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
mov byte [ebp - 4], 2
push ecx
mov word [ebp - 0x218], ax
call fcn.00437620
add esp, 0xc
push 1
push 0x1a
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push str._sThinkSkyiToolsDriver
push ecx
call fcn.00404457
mov edx, dword [ebp - 0x21c]
add esp, 0xc
push esi
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x224]
push str.iTunes.dll
push eax
lea ecx, [ebp - 0x21c]
call fcn.004038cf
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
je 0x41fc05
cmp dword [edi + 0xc], esi
lea ebx, [edi + 0xc]
jl 0x41fbee
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x41fbee
call fcn.00404e00
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41fbd9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ebx, [esi + 0x10]
mov dword [ebp - 0x220], ebx
jmp 0x41fc03
push 0x80070057
call fcn.004050e3
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x220]
call fcn.00404ec0
mov ebx, dword [ebp - 0x220]
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fc2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fc51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fca0
add ebx, 0xfffffff0
mov byte [ebp - 4], al
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fc7b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x41fc8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41fe77
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 8
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push str.SOFTWAREApple_Inc.Apple_Mobile_Device_SupportShared
mov byte [ebp - 4], 9
push closesocket
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fdae
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ecx
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, 0x208
or eax, ecx
mov dword [ebp - 0x240], 0x208
jge 0x41fd4b
mov eax, 0x208
lea ecx, [ebp - 0x224]
call fcn.00404fef
mov edi, dword [ebp - 0x224]
push str.AirTrafficHostDLL
lea edx, [ebp - 0x23c]
push edx
lea esi, [ebp - 0x240]
call fcn.00406b21
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00439a48
xor esi, esi
add esp, 8
cmp eax, esi
jl 0x41fbe4
cmp eax, dword [edi - 8]
jg 0x41fbe4
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x41fda2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], esi
mov esi, dword [ebp - 0x23c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add edi, 0xfffffff0
mov byte [ebp - 4], 8
test eax, eax
jne 0x41fe1d
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41fdd9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test esi, esi
je 0x41fde4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fe04
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x41fc8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41fe77
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41fe36
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test esi, esi
je 0x41fe41
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fe61
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x41fe72
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00437608
mov esp, ebp
pop ebp
ret