Function at 0x401b20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push 0
push 0x409018
push str.hU:li:u:g:La:r:R:o:nwdv
push esi
push edi
call dword [sym.imp.getopt.dll_getopt_long_a]
add esp, 0x14
cmp eax, 0xffffffff
je 0x401ddf
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
lea ecx, [eax - 0x4c]
cmp ecx, 0x26
ja case.default.0x401b68
movzx eax, byte [ecx + 0x401e20]
jmp dword [eax*4 + 0x401e18]
cmp dword [0x4094a8], 0
jne 0x401d96
cmp ecx, 0x2b
ja case.0x401b8c.1
movzx eax, byte [ecx + 0x401e88]
jmp dword [eax*4 + 0x401e48]
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x401db2
push eax
call edx
mov dword [0x409484], eax
add esp, 4
jmp 0x401b33
mov dword [0x409488], 1
jmp 0x401b33
mov dword [0x4094a8], 1
jmp 0x401b33
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x4094a8], 2
push dword [eax]
call edx
mov dword [0x4094a0], eax
add esp, 4
jmp 0x401b33
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x4094a8], 3
push dword [eax]
call edx
mov dword [0x4094a0], eax
add esp, 4
jmp 0x401b33
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x4094a8], 4
push dword [eax]
call edx
mov dword [0x4094a0], eax
add esp, 4
jmp 0x401b33
mov dword [0x4094a8], 5
jmp 0x401b33
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x4094a8], 6
push dword [eax]
call edx
mov dword [0x4094a0], eax
add esp, 4
jmp 0x401b33
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x4094a8], 7
push dword [eax]
call edx
mov dword [0x4094a0], eax
add esp, 4
jmp 0x401b33
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x4094a8], 8
push dword [eax]
call edx
mov dword [0x4094a0], eax
add esp, 4
jmp 0x401b33
mov ecx, dword [0x40948c]
test ecx, ecx
jne 0x401cc0
mov eax, dword [sym.imp.getopt.dll_optarg_a]
push dword [eax]
call edx
mov ebx, eax
add esp, 4
mov dword [0x40948c], ebx
jmp 0x401b33
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401cc3
mov eax, dword [sym.imp.getopt.dll_optarg_a]
sub ecx, edx
mov edx, dword [eax]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x401cd6
sub edx, esi
lea eax, [ecx + 2]
add eax, edx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x40948c]
mov ebx, eax
mov edx, ebx
add esp, 4
mov eax, esi
sub edx, esi
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x401d00
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea edi, [ebx - 1]
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x401d20
mov ax, word [0x406cd4]
mov word [edi], ax
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov edx, dword [eax]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x401d40
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401d50
mov ecx, edx
mov dword [0x40948c], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
jmp 0x401b33
mov dword [0x4094ac], 1
jmp 0x401b33
push 1
call dword [sym.imp.imobiledevice.dll_idevice_set_debug_level]
add esp, 4
jmp 0x401b33
push str.ERROR:_A_mode_has_already_been_supplied._Multiple_modes_are_not_supported._n
call fcn.00401040
add esp, 4
mov edx, esi
call fcn.00401aa0
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.ERROR:_UDID_must_not_be_empty__n
jmp 0x401d9b
mov edx, esi
call fcn.00401aa0
push 0
jmp 0x401dac
push str.1.0.0
push str.libimobiledevice_win32
push str._s__s_n
call fcn.00401040
add esp, 0xc
push 0
jmp 0x401dac
cmp dword [0x4094a8], 0
jne 0x401dfe
push str.ERROR:_No_mode_command_was_supplied._n
call fcn.00401040
add esp, 4
cmp dword [0x4094a8], 0
je case.0x401b8c.1
mov eax, dword [sym.imp.getopt.dll_optind]
mov eax, dword [eax]
cmp eax, 1
jle case.0x401b8c.1
sub edi, eax
test edi, edi
jg case.0x401b8c.1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret