Function at 0x42d290
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4362bc
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x2a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x42d3cd
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
push 0x12
push str.iTunesiTunes.dll
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004063e0
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42d3b2
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004032d0
cmp dword [ebp - 0x21c], 0x10
jb 0x42d392
push dword [ebp - 0x230]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
jmp 0x42d59d
cmp dword [ebp - 0x21c], 0x10
mov byte [ebp - 4], 0
jb 0x42d3cd
push dword [ebp - 0x230]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x42d4a1
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
jne 0x42d426
xor ecx, ecx
jmp 0x42d439
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d430
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406720
push 0x12
push str.iTunesiTunes.dll
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.004063e0
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d36d
cmp dword [ebp - 0x21c], 0x10
mov byte [ebp - 4], 0
jb 0x42d4a1
push dword [ebp - 0x230]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x24c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsiTunes.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42d58f
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x24c]
test eax, eax
je 0x42d51c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42d58f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x218], 0
jne 0x42d52f
xor ecx, ecx
jmp 0x42d541
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d538
sub ecx, edx
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00406720
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x258], esp
push str.iTunes.dll
call fcn.004033a0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.iTunes.exe
call fcn.004033a0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0
push eax
call fcn.0042fa70
add esp, 0x34
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.004032d0
cmp dword [ebp - 0x234], 0x10
jb 0x42d5b4
push dword [ebp - 0x248]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004308d0
mov esp, ebp
pop ebp
ret