Function at 0x140002e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
xor ebp, ebp
mov r9d, dword [0x14003f08c]
lea r8d, [rbp + 1]
lea rdx, str.._iTunesHelperLog.txt
mov rcx, qword [str.HELPER]
call fcn.1400068a0
call fcn.140006c50
lea rdx, [0x14002e888]
lea rcx, str.iTunesHelper_version:__s
call fcn.1400062d0
cmp qword [rbx + 0x88], rbp
jne 0x140002e70
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x88], rax
lea r8, str.MonitorExtShutdownRequest
mov rdx, rbx
lea rcx, [0x140002b00]
call fcn.1400050a0
call fcn.140003800
mov rcx, rax
call fcn.140003c40
test eax, eax
je 0x140003046
lea r8, [0x14002e7c8]
lea rdx, str.CItunesHelperModule::Run_____Started_the_helper_listener_successfully_
mov ecx, 0x80000000
call fcn.1400065b0
call fcn.140009930
test eax, eax
jne 0x140002ee9
call fcn.140003cd0
mov rcx, rax
call fcn.140004470
test eax, eax
je 0x140003046
lea r8, [0x14002e7c8]
lea rdx, str.CItunesHelperModule::Run_____Started_the_MobileDevice_listener_successfully_
mov ecx, 0x80000000
call fcn.1400065b0
mov rcx, rbx
call fcn.140001e80
test eax, eax
je 0x140003046
lea r8, [0x14002e7c8]
lea rdx, str.CItunesHelperModule::Run_____Registered_with_IPodService_successfully_
mov ecx, 0x80000000
call fcn.1400065b0
call fcn.1400090b0
test eax, eax
je 0x140002f31
call fcn.140004db0
test eax, eax
jns 0x140002f31
lea rdx, str.RegisterIQueryCancelAutoplay_failed__
xor ecx, ecx
call fcn.140005ff0
lea r8, [0x14002e7c8]
lea rdx, str.CItunesHelperModule::Run_____Registered_for_AutoPlay_Cancelling_successfully_
mov ecx, 0x80000000
call fcn.1400065b0
cmp byte [rbx + 0x60], bpl
je 0x140002fdf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140002fd8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140002c40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140002fa4
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rbp
test rsi, rsi
je 0x140002fd8
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test eax, eax
jns 0x140002fcd
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rbx + 0x58]
add edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002fe7
mov edi, 0x80004005
jmp 0x140003044
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jne 0x140003031
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jle 0x140003033
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jg 0x140003002
jmp 0x140003033
js 0x140003044
cmp byte [rbx + 0x60], bpl
je 0x140003042
mov ecx, dword [rbx + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, ebp
mov ebp, edi
lea r8, [0x14002e7c8]
lea rdx, str.CItunesHelperModule::Run_____SHUTTING_DOWN_
mov ecx, 0x80000000
call fcn.1400065b0
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000308a
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rbx + 0x70]
mov rax, qword [rcx]
mov edx, dword [rbx + 0x80]
call qword [rax + 0x40]
call fcn.140009930
test eax, eax
jne 0x1400030a0
call fcn.140003cd0
mov rcx, rax
call fcn.140004530
call fcn.140003800
mov rcx, rax
call fcn.140003cc0
call fcn.140004f00
call fcn.140006b90
mov eax, ebp
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret