Function at 0x401bae
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:nd
push esi
push edi
call dword [sym.imp.getopt.dll_getopt_long_a]
add esp, 0x14
cmp eax, 0xffffffff
je 0x401cd4
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
lea ecx, [eax - 0x4c]
cmp ecx, 0x26
ja case.0x401a88.77
movzx eax, byte [ecx + 0x401d14]
jmp dword [eax*4 + 0x401d0c]
cmp dword [0x409484], 0
jne 0x401ca6
cmp ecx, 0x29
ja case.0x401aac.1
movzx eax, byte [ecx + 0x401d74]
jmp dword [eax*4 + 0x401d3c]
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov eax, dword [eax]
cmp byte [eax], 0
je 0x401cc2
push eax
call edx
mov dword [0x409464], eax
add esp, 4
jmp 0x401a53
mov dword [0x409484], 1
jmp 0x401a53
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x409484], 2
push dword [eax]
call edx
mov dword [0x40947c], eax
add esp, 4
jmp 0x401a53
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x409484], 3
push dword [eax]
call edx
mov dword [0x40947c], eax
add esp, 4
jmp 0x401a53
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x409484], 4
push dword [eax]
call edx
mov dword [0x40947c], eax
add esp, 4
jmp 0x401a53
mov dword [0x409484], 5
jmp 0x401a53
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x409484], 6
push dword [eax]
call edx
mov dword [0x40947c], eax
add esp, 4
jmp 0x401a53
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x409484], 7
push dword [eax]
call edx
mov dword [0x40947c], eax
add esp, 4
jmp 0x401a53
mov eax, dword [sym.imp.getopt.dll_optarg_a]
mov dword [0x409484], 8
push dword [eax]
call edx
mov dword [0x40947c], eax
add esp, 4
jmp 0x401a53
mov ecx, dword [0x409468]
test ecx, ecx
jne 0x401bd1
mov eax, dword [sym.imp.getopt.dll_optarg_a]
push dword [eax]
call edx
mov ebx, eax
add esp, 4
mov dword [0x409468], ebx
jmp 0x401a53
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401bd4
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 0x401be7
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 [0x409468]
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 0x401c10
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 0x401c30
mov ax, word [0x406bec]
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 0x401c50
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401c60
mov ecx, edx
mov dword [0x409468], 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 0x401a53
mov dword [0x409488], 1
jmp 0x401a53
push 1
call dword [sym.imp.imobiledevice.dll_idevice_set_debug_level]
add esp, 4
jmp 0x401a53
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.004019f0
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 0x401cab
mov edx, esi
call fcn.004019f0
push 0
jmp 0x401cbc
cmp dword [0x409484], 0
jne 0x401cf3
push str.ERROR:_No_mode_command_was_supplied._n
call fcn.00401040
add esp, 4
cmp dword [0x409484], 0
je case.0x401aac.1
mov eax, dword [sym.imp.getopt.dll_optind]
mov eax, dword [eax]
cmp eax, 1
jle case.0x401aac.1
sub edi, eax
test edi, edi
jg case.0x401aac.1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret