Function at 0x401c00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x12c]
mov dword [0x406018], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [0x4063a4]
test eax, eax
movzx ecx, word [ebp - 0x124]
cmovne edx, ecx
mov dword [ebp - 0x13c], 0
xor eax, eax
mov word [0x4063a4], dx
mov dword [ebp - 0x134], eax
xor ebx, ebx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x114], str.debug
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 0x64
mov dword [ebp - 0x104], str.help
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], 0x68
mov dword [ebp - 0xf4], str.udid
mov dword [ebp - 0xf0], 1
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], 0x75
mov dword [ebp - 0xe4], str.network
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 0x6e
mov dword [ebp - 0xd4], 0x404cb0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], 0x78
mov dword [ebp - 0xc4], str.trigger
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], 0x74
mov dword [ebp - 0xb4], str.untrigger
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0x54
mov dword [ebp - 0xa4], str.match
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 0x6d
mov dword [ebp - 0x94], str.process
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x70
mov dword [ebp - 0x84], str.exclude
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0x65
mov dword [ebp - 0x74], str.quiet
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0x71
mov dword [ebp - 0x64], str.kernel
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x6b
mov dword [ebp - 0x54], str.no_kernel
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x4b
mov dword [ebp - 0x44], str.quiet_list
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], str.no_colors
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
movaps xmm0, xmmword [0x404f50]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
push 0x401be0
push 2
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], str.version
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call esi
push 0x401be0
push 0xf
call esi
push ebx
lea eax, [ebp - 0x114]
push eax
push str.dhu:nxt:T:m:e:p:qkKv
push edi
push dword [ebp + 8]
call dword [sym.imp.getopt.dll_getopt_long_a]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, eax
add esp, 0x24
cmp ecx, 0xffffffff
je 0x40222a
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
lea eax, [ecx - 1]
cmp eax, 0x77
ja case.0x401e98.3
movzx eax, byte [eax + 0x4025bc]
jmp dword [eax*4 + 0x40257c]
push 1
call dword [sym.imp.imobiledevice.dll_idevice_set_debug_level]
add esp, 4
jmp 0x402072
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x4020b5
push dword [0x4063d4]
call esi
mov eax, dword [sym.imp.getopt.dll_optarg_a]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 8
mov dword [0x4063d4], eax
jmp 0x402072
mov dword [0x4063c8], 1
jmp 0x402072
inc dword [ebp - 0x130]
mov ecx, str.CircleJoinRequestedCommCenterHeuristicInterpreterMobileMailPowerUIAgentProtectedCloudKeySyncingSpringBoardUserEventAgentWirelessRadioManagerdaccessorydaccountsdaggregatedanalyticsdappstoredapsdassetsdassistant_servicebackboarddbiometrickitdbluetoothdcalaccessdcallservicesdclouddcom.apple.Safari.SafeBrowsing.ServicecontextstoredcorecapturedcoreduetdcorespeechdcdpddasddataaccessddistnoteddprivacydduetexpertdfindmydevicedfmfdfmflocatordgpsdhealthdhomedidentityservicesdimagentitunescloudditunesstoredkernellocationdmaildmDNSRespondermediaremotedmediaserverdmobileassetdnanoregistrydnanotimekitcompaniondnavdnsurlsessiondpassdpastedphotoanalysisdpowerdpowerlogHelperdptpdrapportdreminddroutinedrunningboarddsearchdsharingdsuggestdsymptomsdtimedthermalmonitorduseractivitydvmdwifidwirelessproxd
call fcn.00401070
jmp 0x402072
cmp ecx, 0x70
jne 0x401f12
inc dword [ebp - 0x134]
jmp 0x401f1d
cmp ecx, 0x65
jne 0x401f1d
inc dword [ebp - 0x130]
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x40211d
call fcn.00401070
jmp 0x402072
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x402145
mov eax, dword [0x406388]
lea eax, [eax*4 + 4]
push eax
push dword [0x4063a0]
call edx
add esp, 8
test eax, eax
je 0x402124
mov dword [0x4063a0], eax
mov eax, dword [sym.imp.getopt.dll_optarg_a]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edx, dword [0x406388]
add esp, 4
mov ecx, dword [0x4063a0]
mov dword [ecx + edx*4], eax
inc edx
mov dword [0x406388], edx
jmp 0x402072
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x40214f
mov eax, dword [0x406390]
lea eax, [eax*4 + 4]
push eax
push dword [0x40638c]
call edx
add esp, 8
test eax, eax
je 0x402124
mov dword [0x40638c], eax
mov eax, dword [sym.imp.getopt.dll_optarg_a]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edx, dword [0x406390]
add esp, 4
mov ecx, dword [0x40638c]
mov dword [ecx + edx*4], eax
inc edx
mov dword [0x406390], edx
jmp 0x402072
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x402159
mov eax, dword [0x4063d8]
lea eax, [eax*4 + 4]
push eax
push dword [0x4063b4]
call edx
add esp, 8
test eax, eax
je 0x402124
mov dword [0x4063b4], eax
mov eax, dword [sym.imp.getopt.dll_optarg_a]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edx, dword [0x4063d8]
add esp, 4
mov ecx, dword [0x4063b4]
mov dword [ecx + edx*4], eax
inc edx
mov dword [0x4063d8], edx
jmp 0x402072
inc dword [ebp - 0x138]
jmp 0x402072
inc ebx
jmp 0x402072
mov dword [0x4063c0], 1
jmp 0x402072
mov dword [ebp - 0x13c], 1
push 0
lea eax, [ebp - 0x114]
push eax
push str.dhu:nxt:T:m:e:p:qkKv
push edi
push dword [ebp + 8]
call dword [sym.imp.getopt.dll_getopt_long_a]
mov ecx, eax
add esp, 0x14
cmp ecx, 0xffffffff
jne 0x401e7f
mov ecx, dword [ebp - 0x138]
test ecx, ecx
jle 0x402163
test ebx, ebx
jle 0x402163
push str.ERROR:__k_and__K_cannot_be_used_together._n
jmp 0x4020ba
push str.ERROR:_UDID_must_not_be_empty__n
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push eax
call fcn.00401010
push 0x2f
push dword [edi]
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 0x10
test eax, eax
je 0x4020e3
lea edi, [eax + 1]
jmp 0x4020e5
mov edi, dword [edi]
push 2
call esi
push edi
push str.Usage:__s__OPTIONS__n
push eax
call fcn.00401010
push 2
call esi
push str._nRelay_syslog_of_a_connected_device._n_nOPTIONS:_n___u____udid_UDID__target_specific_device_by_UDID_n___n____network____connect_to_network_device_n___x____exit_______exit_when_device_disconnects_n___h____help_______prints_usage_information_n___d____debug______enable_communication_debugging_n___v____version____prints_version_information_n___no_colors_______disable_colored_output_n_nFILTER_OPTIONS:_n___m____match_STRING______only_print_messages_that_contain_STRING_n___t____trigger_STRING____start_logging_when_matching_STRING_n___T____untrigger_STRING__stop_logging_when_matching_STRING_n___p____process_PROCESS___only_print_messages_from_matching_process_es__n___e____exclude_PROCESS___print_all_messages_except_matching_process_es__n__________________________PROCESS_is_a_process_name_or_multiple_process_names_n__________________________separated_by___._n___q____quiet_____________set_a_filter_to_exclude_common_noisy_processes_n____quiet_list____________prints_the_list_of_processes_for___quiet_and_exits_n___k____kernel____________only_print_kernel_messages_n___K____no_kernel_________suppress_kernel_messages_n_nFor_filter_examples_consult_idevicesyslog_1__man_page._n_nHomepage:_____https:__github.com_libimobiledevice_win32_libimobiledevice_vs___nBug_Reports:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___n
push eax
call fcn.00401010
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402634
mov esp, ebp
pop ebp
ret
push str.ERROR:_filter_string_must_not_be_empty__n
jmp 0x4020ba
push str.ERROR:_realloc___failed_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.ERROR:_message_filter_string_must_not_be_empty__n
jmp 0x4020ba
push str.ERROR:_trigger_filter_string_must_not_be_empty__n
jmp 0x4020ba
push str.ERROR:_untrigger_filter_string_must_not_be_empty__n
jmp 0x4020ba
mov eax, dword [ebp - 0x134]
test eax, eax
mov eax, dword [ebp - 0x130]
jle 0x402193
test eax, eax
jle 0x402181
push str.ERROR:__p_and__e__q_cannot_be_used_together._n
jmp 0x4020ba
test ebx, ebx
jle 0x4022f0
push str.ERROR:__p_and__K_cannot_be_used_together._n
jmp 0x4020ba
test eax, eax
jle 0x4022f0
mov dword [0x4063c4], 1
test ecx, ecx
je 0x40221c
xor edi, edi
cmp dword [0x4063b8], edi
jle 0x40222a
mov ebx, dword [0x4063ac]
nop dword [eax]
mov eax, dword [ebx + edi*4]
mov ecx, str.kernel
mov dword [ebp - 0x134], eax
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4021f0
test dl, dl
je 0x4021ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4021f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4021d0
xor eax, eax
jmp 0x4021f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402211
push dword [ebp - 0x134]
call esi
mov ebx, dword [0x4063ac]
add esp, 4
mov dword [ebx + edi*4], 0
inc edi
cmp edi, dword [0x4063b8]
jl 0x4021c0
jmp 0x40222a
test ebx, ebx
je 0x40222a
mov ecx, str.kernel
call fcn.00401070
cmp dword [0x4063d8], 0
mov edi, 1
jle 0x40224c
mov eax, dword [0x406380]
cmp dword [0x406390], 0
cmove eax, edi
mov dword [0x406380], eax
cmp dword [ebp - 0x13c], 0
jne 0x402270
push 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll__isatty
mov ecx, dword [0x406384]
add esp, 4
test eax, eax
cmovne ecx, edi
mov dword [0x406384], ecx
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0
push eax
call dword [sym.imp.imobiledevice.dll_idevice_get_device_list_extended]
push dword [ebp - 0x140]
call dword [sym.imp.imobiledevice.dll_idevice_device_list_extended_free]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
cmp dword [ebp - 0x144], 0
jne 0x4023e2
mov eax, dword [0x4063d4]
test eax, eax
jne 0x4023cc
push str.No_device_found._Plug_in_a_device_or_pass_UDID_with__u_to_wait_for_device_to_be_available._n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402634
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x402220
test ebx, ebx
je 0x40222a
mov dword [0x4063c4], 1
jmp 0x402220
push 0x2f
push dword [edi]
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x402325
lea edi, [eax + 1]
jmp 0x402327
mov edi, dword [edi]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call esi
push edi
push str.Usage:__s__OPTIONS__n
push eax
call fcn.00401010
push 1
call esi
push str._nRelay_syslog_of_a_connected_device._n_nOPTIONS:_n___u____udid_UDID__target_specific_device_by_UDID_n___n____network____connect_to_network_device_n___x____exit_______exit_when_device_disconnects_n___h____help_______prints_usage_information_n___d____debug______enable_communication_debugging_n___v____version____prints_version_information_n___no_colors_______disable_colored_output_n_nFILTER_OPTIONS:_n___m____match_STRING______only_print_messages_that_contain_STRING_n___t____trigger_STRING____start_logging_when_matching_STRING_n___T____untrigger_STRING__stop_logging_when_matching_STRING_n___p____process_PROCESS___only_print_messages_from_matching_process_es__n___e____exclude_PROCESS___print_all_messages_except_matching_process_es__n__________________________PROCESS_is_a_process_name_or_multiple_process_names_n__________________________separated_by___._n___q____quiet_____________set_a_filter_to_exclude_common_noisy_processes_n____quiet_list____________prints_the_list_of_processes_for___quiet_and_exits_n___k____kernel____________only_print_kernel_messages_n___K____no_kernel_________suppress_kernel_messages_n_nFor_filter_examples_consult_idevicesyslog_1__man_page._n_nHomepage:_____https:__github.com_libimobiledevice_win32_libimobiledevice_vs___nBug_Reports:__https:__github.com_libimobiledevice_win32_libimobiledevice_vs___n
push eax
call fcn.00401010
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402634
mov esp, ebp
pop ebp
ret
push str.CircleJoinRequestedCommCenterHeuristicInterpreterMobileMailPowerUIAgentProtectedCloudKeySyncingSpringBoardUserEventAgentWirelessRadioManagerdaccessorydaccountsdaggregatedanalyticsdappstoredapsdassetsdassistant_servicebackboarddbiometrickitdbluetoothdcalaccessdcallservicesdclouddcom.apple.Safari.SafeBrowsing.ServicecontextstoredcorecapturedcoreduetdcorespeechdcdpddasddataaccessddistnoteddprivacydduetexpertdfindmydevicedfmfdfmflocatordgpsdhealthdhomedidentityservicesdimagentitunescloudditunesstoredkernellocationdmaildmDNSRespondermediaremotedmediaserverdmobileassetdnanoregistrydnanotimekitcompaniondnavdnsurlsessiondpassdpastedphotoanalysisdpowerdpowerlogHelperdptpdrapportdreminddroutinedrunningboarddsearchdsharingdsuggestdsymptomsdtimedthermalmonitorduseractivitydvmdwifidwirelessproxd
push 0x404198
call fcn.00401040
jmp 0x402565
push str.1.0.0
push str.idevicesyslog
push str._s__s_n
call fcn.00401040
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402634
mov esp, ebp
pop ebp
ret
push 0x2f
push dword [edi]
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x4023bf
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea edi, [eax + 1]
jmp 0x4020e5
mov edi, dword [edi]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x4020e5
push eax
push str.Waiting_for_device_with_UDID__s_to_become_available..._n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 0x400
mov dword [0x4063b0], 0x400
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0
push 0x401a60
mov dword [0x4063bc], eax
call dword [sym.imp.imobiledevice.dll_idevice_event_subscribe]
add esp, 0xc
cmp dword [0x4063a8], 0
jne 0x402430
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push 0x3e8
call edi
cmp dword [0x4063a8], 0
je 0x402420
call dword [sym.imp.imobiledevice.dll_idevice_event_unsubscribe]
push 1
call ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [0x4063cc]
add esp, 8
test eax, eax
je 0x402461
push eax
call dword [sym.imp.imobiledevice.dll_syslog_relay_client_free]
add esp, 4
mov dword [0x4063cc], 0
mov eax, dword [0x406398]
test eax, eax
je 0x40247e
push eax
call dword [sym.imp.imobiledevice.dll_idevice_free]
add esp, 4
mov dword [0x406398], 0
mov eax, dword [0x4063b8]
test eax, eax
jle 0x4024b1
xor edi, edi
test eax, eax
jle 0x4024a6
nop dword [eax]
mov eax, dword [0x4063ac]
push dword [eax + edi*4]
call esi
inc edi
add esp, 4
cmp edi, dword [0x4063b8]
jl 0x402490
push dword [0x4063ac]
call esi
add esp, 4
cmp dword [0x40639c], 0
jle 0x4024c5
push dword [0x4063d0]
call esi
add esp, 4
mov eax, dword [0x406388]
test eax, eax
jle 0x4024f5
xor edi, edi
test eax, eax
jle 0x4024ea
mov eax, dword [0x4063a0]
push dword [eax + edi*4]
call esi
inc edi
add esp, 4
cmp edi, dword [0x406388]
jl 0x4024d4
push dword [0x4063a0]
call esi
add esp, 4
mov eax, dword [0x406390]
test eax, eax
jle 0x402525
xor edi, edi
test eax, eax
jle 0x40251a
mov eax, dword [0x40638c]
push dword [eax + edi*4]
call esi
inc edi
add esp, 4
cmp edi, dword [0x406390]
jl 0x402504
push dword [0x40638c]
call esi
add esp, 4
mov eax, dword [0x4063d8]
test eax, eax
jle 0x402555
xor edi, edi
test eax, eax
jle 0x40254a
mov eax, dword [0x4063b4]
push dword [eax + edi*4]
call esi
inc edi
add esp, 4
cmp edi, dword [0x4063d8]
jl 0x402534
push dword [0x4063b4]
call esi
add esp, 4
push dword [0x4063bc]
call esi
push dword [0x4063d4]
call esi
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00402634
mov esp, ebp
pop ebp
ret