Function at 0x408d50
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov eax, 0x215c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004a0230
sub esp, 0xc
push str.ANDROID_PRODUCT_OUT
call sub.msvcrt.dll_getenv
add esp, 0x10
mov dword [0x4d8140], eax
test eax, eax
je 0x408e57
cmp byte [eax], 0
je 0x408e57
sub esp, 0xc
push str.ANDROID_SERIAL
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x2138], eax
mov dword [esp], str.ANDROID_ADB_SERVER_PORT
call sub.msvcrt.dll_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x408db7
cmp byte [eax], 0
jne 0x40930c
mov dword [ebp - 0x2134], 0x13ad
mov edx, dword [ebp + 8]
test edx, edx
jle 0x408f2c
mov dword [ebp - 0x2148], 0
mov dword [ebp - 0x2144], 0
mov dword [ebp - 0x2140], 0
mov dword [ebp - 0x213c], 2
mov dword [ebp - 0x214c], 0
jmp 0x408e25
mov dword [ebp - 0x2144], 1
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x408ea7
mov eax, dword [ebp + 0xc]
mov ecx, 7
cld
mov ebx, dword [eax]
mov edi, 0x4ac20a
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x408e00
mov edi, str.nodaemon
mov ecx, 9
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408e66
mov dword [ebp - 0x214c], 1
jmp 0x408e0a
mov dword [0x4d8140], 0
jmp 0x408d86
cld
mov edi, str.fork_server
mov ecx, 0xc
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408e83
mov dword [ebp - 0x2148], 1
jmp 0x408e0a
cld
mov edi, str.persist
mov ecx, 8
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4091a1
mov dword [ebp - 0x2140], 1
jmp 0x408e0a
push esi
push esi
mov ebx, dword [ebp - 0x2138]
push ebx
mov ecx, dword [ebp - 0x213c]
push ecx
call fcn.0040b3b0
pop edx
mov eax, dword [ebp - 0x2134]
push eax
call fcn.0040b3d0
mov eax, dword [ebp - 0x2144]
add esp, 0x10
test eax, eax
je 0x408f60
mov eax, dword [ebp - 0x2148]
or eax, dword [ebp - 0x214c]
je 0x409353
push eax
push eax
mov eax, dword [ebp - 0x2134]
push eax
mov eax, dword [ebp - 0x2148]
push eax
call fcn.00402e70
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x408f22
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
add eax, 0x40
push esi
push str._could_not_start_server__n
push eax
call fcn.00407ec0
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push eax
mov eax, dword [ebp - 0x2138]
push eax
push 2
call fcn.0040b3b0
pop edi
mov esi, dword [ebp - 0x2134]
push esi
call fcn.0040b3d0
mov dword [ebp - 0x213c], 2
mov dword [ebp - 0x2140], 0
add esp, 0x10
mov eax, dword [ebp + 8]
mov ebx, str.devices
test eax, eax
je 0x409426
mov edx, dword [ebp + 0xc]
mov ecx, 8
cld
mov edx, dword [edx]
mov edi, ebx
mov dword [ebp - 0x212c], edx
mov esi, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x409a7d
cld
mov edi, 0x4ac475
mov ecx, 8
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409a10
cld
mov edi, str.disconnect
mov ecx, 0xb
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409a26
cld
mov edi, 0x4ac50d
mov ecx, 4
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409a9d
cld
mov edi, str.shell
mov ecx, 6
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409432
mov edi, str.hell
mov ecx, 5
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409432
cld
mov edi, str.kill_server
mov ecx, 0xc
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409bf8
cld
mov edi, str.sideload
mov ecx, 9
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409c1b
cld
mov edi, str.remount
mov ecx, 8
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x4095fa
mov edi, str.reboot
mov ecx, 7
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x4095fa
mov edi, str.reboot_bootloader
mov ecx, 0x12
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409613
mov edi, str.tcpip
mov ecx, 6
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x40939f
mov edi, 0x4ac657
mov ecx, 4
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x40939f
mov edi, str.root
mov ecx, 5
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x40939f
cld
mov edi, str.bugreport
mov ecx, 0xa
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409aec
cld
mov edi, 0x4ac680
mov ecx, 9
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409b22
mov edi, str.wait_for_device
mov ecx, 0xf
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409143
mov eax, dword [ebp - 0x213c]
mov dword [ebp - 0x212c], str.wait_for_usb
test eax, eax
je 0x409143
mov dword [ebp - 0x212c], str.wait_for_local
cmp dword [ebp - 0x213c], 1
je 0x409143
mov dword [ebp - 0x212c], str.wait_for_any
push eax
push eax
mov edi, dword [ebp - 0x2138]
mov edx, 0x1000
push edi
lea eax, [ebp - 0x111b]
mov esi, dword [ebp - 0x213c]
push esi
mov ecx, dword [ebp - 0x212c]
call fcn.00407e00
lea ecx, [ebp - 0x111b]
mov dword [esp], ecx
call fcn.0040bf70
add esp, 0x10
test eax, eax
jne 0x409d41
cmp dword [ebp + 8], 1
jle 0x40969e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
dec edx
add eax, 4
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
jmp 0x408f70
cld
mov edi, 0x4a994c
mov ecx, 2
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40936c
lea eax, [ebx + 2]
mov esi, eax
cmp byte [ebx + 2], 0
jne 0x4091e0
cmp dword [ebp + 8], 1
je 0x409426
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
dec eax
mov esi, dword [edx]
mov dword [ebp + 8], eax
test esi, esi
je 0x409de7
mov al, byte [esi]
test al, al
je 0x409de7
mov ecx, dword [sym.imp.msvcrt.dll___mb_cur_max]
movsx edx, al
cmp dword [ecx], 1
jne 0x409405
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
mov ax, word [eax + edx*2]
and eax, 0x103
test eax, eax
je 0x409222
cmp byte [esi + 1], 0x3a
je 0x4096a5
push ebx
push ebx
push 0x2f
push esi
call sub.msvcrt.dll_strchr
pop edx
pop ecx
mov ebx, eax
push 0x5c
push esi
call sub.msvcrt.dll_strchr
add esp, 0x10
test ebx, ebx
je 0x409247
test eax, eax
je 0x40924f
cmp eax, ebx
jbe 0x40924f
test eax, eax
je 0x409df2
push edi
push edi
push 0x103
push 0x4d8150
call sub.msvcrt.dll__getcwd
add esp, 0x10
test eax, eax
je 0x40a082
mov ebx, 0x4d8150
mov eax, dword [ebx]
add ebx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x409270
test edx, 0x8080
je 0x409552
add dl, dl
sbb ebx, 3
sub esp, 0xc
sub ebx, 0x4d8150
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
lea eax, [ebx + eax + 1]
cmp eax, 0x102
ja 0x40955d
mov ecx, 0x4d8150
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x4092bf
test edx, 0x8080
je 0x409547
add dl, dl
sbb ecx, 3
mov word [ecx], 0x5c
push edx
push edx
push esi
push 0x4d8150
call sub.msvcrt.dll_strcat
add esp, 0x10
mov dword [0x4d8140], 0x4d8150
jmp 0x408e0a
push eax
push 0
push 0
push ebx
call sub.msvcrt.dll_strtol
add esp, 0x10
mov dword [ebp - 0x2134], eax
lea edx, [eax - 1]
cmp edx, 0xfffe
jbe 0x408dc1
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push str.adb:_Env_var_ANDROID_ADB_SERVER_PORT_must_be_a_positive_number_less_than_65535._Got___s__n
push eax
call fcn.00407ec0
call fcn.00407fd0
add esp, 0x10
mov ebx, eax
jmp 0x408f22
sub esp, 0xc
mov edi, dword [ebp - 0x2134]
push edi
call fcn.004017f0
add esp, 0x10
mov ebx, eax
jmp 0x408f06
cmp byte [ebx], 0x2d
jne 0x40937b
cmp byte [ebx + 1], 0x73
je 0x4099ac
cld
mov edi, 0x4ac364
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40962f
mov dword [ebp - 0x213c], 0
jmp 0x408e0a
cmp dword [ebp + 8], 1
jle 0x409d30
mov edx, dword [ebp + 0xc]
sub esp, 0xc
lea ebx, [ebp - 0x11b]
mov edx, dword [edx + 4]
push edx
mov eax, dword [ebp - 0x212c]
push eax
push 0x4a997a
push 0x64
push ebx
call fcn.004a0940
add esp, 0x20
sub esp, 0xc
push ebx
call fcn.0040baa0
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x409985
mov eax, ebx
call fcn.004080a0
sub esp, 0xc
push ebx
call fcn.004147e0
xor ebx, ebx
add esp, 0x10
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push eax
push 0x103
push edx
call sub.msvcrt.dll__isctype
add esp, 0x10
jmp 0x409214
xor esi, esi
cmp dword [ebp + 8], 2
je 0x40a501
call fcn.00407fd0
mov ebx, eax
jmp 0x408f22
mov ecx, dword [ebp - 0x212c]
cmp byte [ecx], 0x68
sete byte [ebp - 0x212d]
je 0x4095d5
cmp dword [ebp + 8], 1
jle 0x40958f
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x111b]
mov eax, dword [eax + 4]
push eax
push str.shell:_s
push 0x1000
push edx
call fcn.004a0940
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
sub edi, 2
add esi, 0xc
add esp, 0x10
jmp 0x4094e2
push eax
push eax
push 0x20
push ebx
call sub.msvcrt.dll_strchr
add esp, 0x10
test eax, eax
je 0x4099f9
sub esp, 0xc
lea edx, [ebp - 0x111b]
push edx
call sub.msvcrt.dll_strlen
pop edx
pop ecx
mov word [ebp + eax - 0x111b], 0x22
lea ecx, [ebp - 0x111b]
mov eax, dword [esi - 4]
push eax
push ecx
call sub.msvcrt.dll_strcat
add esp, 0x10
sub esp, 0xc
lea ecx, [ebp - 0x111b]
push ecx
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [ebp + eax - 0x111b], 0x22
add esi, 4
dec edi
cmp edi, 0xffffffff
je 0x4096c4
sub esp, 0xc
lea ecx, [ebp - 0x111b]
push ecx
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [ebp + eax - 0x111b], 0x20
mov ebx, dword [esi - 4]
cmp byte [ebx], 0
jne 0x409480
sub esp, 0xc
lea eax, [ebp - 0x111b]
push eax
call sub.msvcrt.dll_strlen
pop edx
pop ecx
mov word [ebp + eax - 0x111b], 0x22
lea edx, [ebp - 0x111b]
mov eax, dword [esi - 4]
push eax
push edx
call sub.msvcrt.dll_strcat
add esp, 0x10
jmp 0x4094c3
shr edx, 0x10
add ecx, 2
jmp 0x4092e3
shr edx, 0x10
add ebx, 2
jmp 0x409294
mov edi, dword [sym.imp.msvcrt.dll__iob]
push ecx
push ecx
push str.adb:_Couldnt_assemble_path_n
lea eax, [edi + 0x40]
push eax
call fcn.00407ec0
add esp, 0x10
mov dword [0x4d8140], 0
push eax
lea eax, [edi + 0x40]
push esi
push str.adb:_could_not_resolve___p__s__n
jmp 0x40933e
test byte [0x4ed098], 1
jne 0x40a0d6
call fcn.004089a0
cmp byte [ebp - 0x212d], 0
mov ebx, eax
je 0x408f22
sub esp, 0xc
push str.e_0m
call fcn.00408260
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x10
jmp 0x408f22
sub esp, 0xc
push str.e_41_33m
call fcn.00408260
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x10
jmp 0x409448
cld
mov edi, str.reboot_bootloader
mov ecx, 0x12
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40939f
push ecx
push str.reboot:bootloader
lea ebx, [ebp - 0x11b]
push 0x64
push ebx
call fcn.004a0940
add esp, 0x10
jmp 0x4093d0
cld
mov edi, 0x4ac367
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409d76
mov dword [ebp - 0x213c], 1
jmp 0x408e0a
cmp byte [ebp - 0x2127], 0
je 0x40a142
cmp dword [ebp + 8], 1
jne 0x409426
lea eax, [ebp - 0x111b]
push ebx
push str._s:killforward_all
push 0x1000
push eax
call fcn.004a0940
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x111b]
push eax
call fcn.0040bf70
add esp, 0x10
test eax, eax
jne 0x409985
xor ebx, ebx
jmp 0x408f22
cmp byte [esi + 2], 0x5c
jne 0x409222
push eax
push eax
push esi
push 0x4d8150
call sub.msvcrt.dll_strcpy
add esp, 0x10
jmp 0x4092fd
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [ebp - 0x215c], eax
jmp 0x409771
sub esp, 0xc
lea ecx, [ebp - 0x111b]
push ecx
call fcn.0040baa0
add esp, 0x10
mov edi, eax
test eax, eax
js 0x4098d4
test byte [0x4ed098], 1
jne 0x409866
mov eax, edi
call fcn.004080a0
test byte [0x4ed098], 1
jne 0x4097fa
sub esp, 0xc
push edi
xor edi, edi
call fcn.004147e0
add esp, 0x10
mov eax, dword [ebp - 0x2140]
test eax, eax
je 0x4098f9
push eax
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str._n__waiting_for_device___n
add eax, 0x40
push eax
call fcn.00407ec0
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
add esp, 0xc
push 0
push str.wait_for_device
mov eax, dword [ebp - 0x2138]
push eax
mov eax, dword [ebp - 0x213c]
push eax
call fcn.0040ad80
add esp, 0x10
test byte [0x4ed098], 1
je 0x4096d7
call sub.msvcrt.dll__errno
sub esp, 0xc
mov ebx, dword [eax]
push 0x4ed0a8
call sub.KERNEL32.dll_EnterCriticalSection
add esp, 0xc
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4abeaf
mov eax, dword [ebp - 0x215c]
push eax
call fcn.00407ec0
call sub.msvcrt.dll__errno
add esp, 0xc
lea edx, [ebp - 0x111b]
mov dword [eax], ebx
push edx
push str.interactive_shell_loop._buff_s_n
mov eax, dword [ebp - 0x215c]
push eax
call fcn.00407ec0
pop eax
mov eax, dword [ebp - 0x215c]
push eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ed0a8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], ebx
jmp 0x4096d7
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4ed0a8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4abeaf
push ebx
call fcn.00407ec0
call sub.msvcrt.dll__errno
mov dword [eax], esi
pop ecx
pop eax
push str.read_and_dump___done._n
push ebx
call fcn.00407ec0
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ed0a8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
jmp 0x409714
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4ed0a8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4abeaf
push ebx
call fcn.00407ec0
call sub.msvcrt.dll__errno
add esp, 0xc
mov dword [eax], esi
push edi
push str.about_to_read_and_dump_fd_d__n
push ebx
call fcn.00407ec0
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ed0a8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
jmp 0x409700
call fcn.0040b3f0
or edi, 0xffffffff
push edx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4ac047
add eax, 0x40
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x409722
cmp byte [ebp - 0x212d], 0
jne 0x409dc2
mov ebx, edi
test byte [0x4ed098], 1
je 0x408f22
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4ed0a8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4abeaf
push ebx
call fcn.00407ec0
call sub.msvcrt.dll__errno
add esp, 0xc
mov dword [eax], esi
push edi
push str.interactive_shell_loop._return_r_d_n
push ebx
call fcn.00407ec0
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ed0a8
call sub.KERNEL32.dll_LeaveCriticalSection
mov ebx, edi
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
jmp 0x408f22
call fcn.0040b3f0
push edx
push eax
push 0x4ac047
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, 1
add eax, 0x40
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x408f22
lea edx, [ebx + 2]
mov dword [ebp - 0x2138], edx
mov dl, byte [ebx + 2]
movsx eax, dl
sub eax, 0x30
cmp eax, 9
jbe 0x408e0a
cmp dword [ebp + 8], 1
je 0x409426
test dl, dl
jne 0x409426
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add edi, 4
dec esi
mov dword [ebp + 0xc], edi
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [ebp + 8], esi
mov dword [ebp - 0x2138], ecx
jmp 0x408e0a
push eax
push eax
lea eax, [ebp - 0x111b]
push ebx
push eax
call sub.msvcrt.dll_strcat
add esp, 0x10
jmp 0x4094df
cmp dword [ebp + 8], 2
je 0x409ab6
push eax
push eax
push str.Usage:_adb_connect__host__:_port___n
jmp 0x409991
cmp dword [ebp + 8], 2
jg 0x409eb0
je 0x409f3a
lea eax, [ebp - 0x111b]
push edi
push str.host:disconnect:
push 0x1000
push eax
call fcn.004a0940
add esp, 0x10
sub esp, 0xc
lea edx, [ebp - 0x111b]
push edx
call fcn.0040bdf0
add esp, 0x10
test eax, eax
je 0x409ae2
push edx
push edx
push eax
push 0x4ac471
call fcn.00408260
xor ebx, ebx
add esp, 0x10
jmp 0x408f22
cmp dword [ebp + 8], 1
jle 0x409f33
cmp dword [ebp + 8], 2
je 0x409ebc
push ebx
push ebx
push str.Usage:_adb_devices___l__n
jmp 0x409991
push esi
push esi
mov ebx, dword [ebp + 0xc]
push ebx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403c30
add esp, 0x10
mov ebx, eax
jmp 0x408f22
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x111b]
mov eax, dword [eax + 4]
push eax
push str.host:connect:_s
push 0x1000
push ebx
call fcn.004a0940
mov dword [esp], ebx
call fcn.0040bdf0
add esp, 0x10
test eax, eax
jne 0x409a66
mov ebx, 1
jmp 0x408f22
cmp dword [ebp + 8], 1
jne 0x409426
sub esp, 0xc
xor ebx, ebx
push 0
push str.bugreport
push str.shell
mov eax, dword [ebp - 0x2138]
push eax
mov eax, dword [ebp - 0x213c]
push eax
call fcn.0040ad80
add esp, 0x20
jmp 0x408f22
cld
mov ecx, 8
mov edi, 0x4ac6c2
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x409d9a
cld
mov edi, 0x4ac6ca
mov ecx, 8
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409f5f
mov dword [ebp - 0x2120], 0
cmp dword [ebp + 8], 1
jle 0x40a1e1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, 4
mov ebx, dword [edx + 4]
cmp byte [ebx], 0x2d
jne 0x40a1e1
mov dword [ebp + 0xc], eax
mov byte [ebp - 0x2128], 0
mov byte [ebp - 0x2127], 0
mov byte [ebp - 0x2126], 0
mov byte [ebp - 0x2125], 0
jmp 0x409bce
mov byte [ebp - 0x2126], 1
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 1
je 0x409c6b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, 4
mov ebx, dword [ecx + 4]
cmp byte [ebx], 0x2d
jne 0x409c6b
mov dword [ebp + 0xc], eax
cld
mov ecx, 7
mov esi, ebx
mov edi, str.__list
repe cmpsb byte [esi], byte es:[edi]
je 0x409b9e
mov edi, str.__remove
mov ecx, 9
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409c4a
mov byte [ebp - 0x2128], 1
jmp 0x409ba5
sub esp, 0xc
push 0x4ac605
call fcn.0040b5d0
add esp, 0x10
inc eax
jne 0x40969e
push edi
push edi
push str._server_not_running__n
jmp 0x409991
cmp dword [ebp + 8], 2
jne 0x409426
push esi
push 1
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
push ebx
push str.sideload
call fcn.00408930
add esp, 0x10
test eax, eax
setne al
xor ebx, ebx
mov bl, al
jmp 0x408f22
cld
mov edi, str.__remove_all
mov ecx, 0xd
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409fa0
mov byte [ebp - 0x2127], 1
jmp 0x409ba5
movsx edx, byte [ebp - 0x2126]
movsx eax, byte [ebp - 0x2128]
add eax, edx
movsx edx, byte [ebp - 0x2127]
add eax, edx
movsx edx, byte [ebp - 0x2125]
add eax, edx
dec eax
jg 0x409426
mov eax, dword [ebp - 0x2120]
test eax, eax
je 0x40a3e4
mov eax, dword [ebp - 0x2138]
test eax, eax
je 0x40a3c6
mov eax, dword [ebp - 0x2138]
push eax
push str.host_serial:_s
lea ebx, [ebp - 0x11b]
push 0x40
push ebx
call fcn.004a0940
add esp, 0x10
cmp byte [ebp - 0x2126], 0
je 0x409653
cmp dword [ebp + 8], 1
jne 0x409426
push ebx
lea ebx, [ebp - 0x111b]
push str._s:list_forward
push 0x1000
push ebx
call fcn.004a0940
mov dword [esp], ebx
call fcn.0040bdf0
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x40a405
push eax
push eax
push ebx
push 0x4ac71a
call fcn.00408260
mov dword [esp], ebx
call sub.msvcrt.dll_free
xor ebx, ebx
add esp, 0x10
jmp 0x408f22
mov eax, dword [ebp - 0x212c]
push eax
push 0x4ac672
jmp 0x409619
test byte [0x4ed098], 1
jne 0x40a00f
mov edi, dword [sym.imp.msvcrt.dll__iob]
call fcn.0040b3f0
mov ebx, 1
push ecx
push eax
lea eax, [edi + 0x40]
push 0x4ac047
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x408f22
cld
mov edi, 0x4ac36a
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409fc1
mov dword [0x4d800c], 1
jmp 0x408e0a
mov edi, 0x4ac6ca
mov ecx, 8
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
setb al
seta dl
sub dl, al
movsx eax, dl
mov dword [ebp - 0x2120], eax
jmp 0x409b5e
sub esp, 0xc
push str.e_0m
call fcn.00408260
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x10
jmp 0x409906
mov edi, dword [sym.imp.msvcrt.dll__iob]
jmp 0x409576
sub esp, 0xc
push str.ANDROID_BUILD_TOP
call sub.msvcrt.dll_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x409e11
cmp byte [eax], 0
jne 0x40a0b2
sub esp, 0xc
push 0x4ac29f
call sub.msvcrt.dll_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x409e30
cmp byte [eax], 0
jne 0x40a279
lea edi, [ebp - 0x211b]
push ebx
push ebx
push 0x103
push edi
call sub.msvcrt.dll__getcwd
lea ebx, [ebp - 0x11b]
mov edx, ebx
call fcn.00408cd0
add esp, 0x10
test eax, eax
je 0x40a2a4
sub esp, 0xc
push esi
push ebx
push str._sout_targetproduct_s
push 0x103
push 0x4d8150
call fcn.004a0940
add esp, 0x18
push 0
push 0x4d8150
call sub.msvcrt.dll__access
add esp, 0x10
test eax, eax
jns 0x4092fd
mov edi, dword [sym.imp.msvcrt.dll__iob]
push 0x4d8150
push esi
push str.adb:_Couldnt_find_a_product_dir_based_on___p__s_____s__doesnt_exist_n
lea eax, [edi + 0x40]
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x409576
push eax
push eax
push str.Usage:_adb_disconnect___host__:_port____n
jmp 0x409991
mov ecx, dword [ebp + 0xc]
mov eax, 3
mov edi, 0x4ac42f
mov ebx, dword [ecx + 4]
mov ecx, eax
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409a91
sub esp, 0xc
push ebx
lea ebx, [ebp - 0x111b]
mov ecx, dword [ebp - 0x212c]
push ecx
push str.host:_s_s
push 0x1000
push ebx
call fcn.004a0940
add esp, 0x14
push ebx
call fcn.0040bdf0
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x409ae2
sub esp, 0xc
push str.List_of_devices_attached__n
call fcn.00408260
pop eax
pop edx
push ebx
push 0x4ac471
call fcn.00408260
xor ebx, ebx
add esp, 0x10
jmp 0x408f22
mov ebx, 0x4ac44b
jmp 0x409ed8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x111b]
mov eax, dword [edx + 4]
push eax
push str.host:disconnect:_s
push 0x1000
push ecx
call fcn.004a0940
add esp, 0x10
jmp 0x409a50
cld
mov edi, 0x4ac760
mov ecx, 3
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a202
cmp dword [ebp + 8], 2
jne 0x409426
mov edx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, dword [edx + 4]
push eax
call fcn.00410b90
add esp, 0x10
mov ebx, eax
jmp 0x408f22
cld
mov edi, str.__no_rebind
mov ecx, 0xc
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x409426
mov byte [ebp - 0x2125], 1
jmp 0x409ba5
cld
mov edi, 0x4ac36d
mov ecx, 2
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a342
lea eax, [ebx + 2]
cmp byte [ebx + 2], 0
jne 0x409ffe
cmp dword [ebp + 8], 1
je 0x409426
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add ebx, 4
dec ecx
mov dword [ebp + 0xc], ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp + 8], ecx
sub esp, 0xc
push eax
call fcn.0040b3e0
add esp, 0x10
jmp 0x408e0a
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4ed0a8
call sub.KERNEL32.dll_EnterCriticalSection
mov edi, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
lea ebx, [edi + 0x40]
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4abeaf
push ebx
call fcn.00407ec0
call sub.msvcrt.dll__errno
mov dword [eax], esi
call fcn.0040b3f0
add esp, 0xc
push eax
push str.failure:__s__n
push ebx
call fcn.00407ec0
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ed0a8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
jmp 0x409d54
call sub.msvcrt.dll__errno
sub esp, 0xc
mov ebx, dword [eax]
push ebx
call sub.msvcrt.dll_strerror
add esp, 0xc
mov edi, dword [sym.imp.msvcrt.dll__iob]
push eax
lea eax, [edi + 0x40]
push str.adb:_Couldnt_get_CWD:__s_n
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x409576
call fcn.00408c40
test eax, eax
je 0x40a17e
push eax
push eax
push ebx
lea ebx, [ebp - 0x11b]
push ebx
call sub.msvcrt.dll_strcpy
add esp, 0x10
jmp 0x409e5b
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4ed0a8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4abeaf
push ebx
call fcn.00407ec0
call sub.msvcrt.dll__errno
mov dword [eax], esi
pop eax
pop edx
push str.starting_interactive_shell_n
push ebx
call fcn.00407ec0
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ed0a8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
jmp 0x40959c
cmp byte [ebp - 0x2128], 0
je 0x40a1af
cmp dword [ebp + 8], 2
jne 0x409426
mov edx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, dword [edx + 4]
push eax
push ebx
push str._s:killforward:_s
lea ecx, [ebp - 0x111b]
push 0x1000
push ecx
call fcn.004a0940
add esp, 0x20
jmp 0x409684
mov edi, dword [sym.imp.msvcrt.dll__iob]
push eax
push ebx
push str.adb:_bad_ANDROID_BUILD_TOP_value___s__n
lea eax, [edi + 0x40]
push eax
call fcn.00407ec0
add esp, 0x10
push eax
push eax
lea eax, [edi + 0x40]
push str.adb:_Couldnt_find_top_of_build_tree_n
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x409576
cmp dword [ebp + 8], 3
jne 0x409426
mov eax, str.forward:norebind:
cmp byte [ebp - 0x2125], 0
jne 0x40a1cc
mov eax, 0x4ac6c2
push edi
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 8]
push esi
mov ecx, dword [edx + 4]
push ecx
push eax
push ebx
push str._s:_s:_s__s
jmp 0x40a165
mov byte [ebp - 0x2125], 0
mov byte [ebp - 0x2126], 0
mov byte [ebp - 0x2127], 0
mov byte [ebp - 0x2128], 0
jmp 0x409c94
cld
mov edi, str.push
mov ecx, 5
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a2d4
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
dec edx
push ebx
add eax, 4
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x10]
push ebx
call fcn.00407d80
mov edx, dword [ebp - 0x18]
pop esi
test edx, edx
pop edi
je 0x409426
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x409426
mov ebx, dword [ebp - 0x14]
push ebx
push 0
push eax
push edx
call fcn.00411b50
add esp, 0x10
mov ebx, eax
jmp 0x408f22
call fcn.00408c40
test eax, eax
jne 0x40a0bf
mov edi, dword [sym.imp.msvcrt.dll__iob]
push eax
push ebx
push str.adb:_bad_TOP_value___s__n
lea eax, [edi + 0x40]
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x40a197
push eax
push eax
push 0x103
push edi
call fcn.00412530
lea edx, [ebp - 0x11b]
mov eax, edi
call fcn.00408cd0
add esp, 0x10
test eax, eax
jne 0x409e5b
mov edi, dword [sym.imp.msvcrt.dll__iob]
jmp 0x40a197
cld
mov edi, str.pull
mov ecx, 5
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a429
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4ac76d
dec edx
push ebx
add eax, 4
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x14]
push ebx
call fcn.00407d80
mov eax, dword [ebp - 0x18]
pop edx
test eax, eax
pop ecx
je 0x409426
push edi
mov esi, dword [ebp - 0x10]
push esi
mov ebx, dword [ebp - 0x14]
push ebx
push eax
call fcn.004121e0
add esp, 0x10
mov ebx, eax
jmp 0x408f22
cld
mov edi, 0x4ac370
mov ecx, 2
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408ea7
lea esi, [ebx + 2]
cmp byte [ebx + 2], 0
jne 0x40a384
cmp dword [ebp + 8], 1
je 0x409426
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp byte [esi], 0
je 0x40a3a9
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
push eax
push 0
push 0
push esi
call sub.msvcrt.dll_strtol
add esp, 0x10
mov edx, eax
lea eax, [eax - 1]
cmp eax, 0xfffe
ja 0x40a3bd
mov dword [ebp - 0x2134], edx
jmp 0x408e0a
push eax
push eax
push str.adb:_port_number_must_be_a_positive_number_less_than_65536._Got_empty_string._n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
jmp 0x40933e
push eax
push esi
push str.adb:_port_number_must_be_a_positive_number_less_than_65536._Got___s__n
jmp 0x40a3b0
mov edi, dword [ebp - 0x213c]
test edi, edi
je 0x40a3fa
cmp dword [ebp - 0x213c], 1
je 0x40a3ef
push ecx
push 0x4a9975
jmp 0x409cbc
push eax
push 0x4ac6ca
jmp 0x409cbc
push ebx
push str.host_local
jmp 0x409cbc
push esi
push str.host_usb
jmp 0x409cbc
call fcn.0040b3f0
mov bl, 1
push edx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4ac047
add eax, 0x40
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x408f22
cld
mov edi, str.install
mov ecx, 8
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a46d
cmp dword [ebp + 8], 1
jle 0x409426
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2138]
push eax
mov eax, dword [ebp - 0x213c]
push eax
call fcn.0040b030
add esp, 0x10
mov ebx, eax
jmp 0x408f22
cld
mov edi, str.uninstall
mov ecx, 0xa
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a4b1
cmp dword [ebp + 8], 1
jle 0x409426
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x2138]
push eax
mov eax, dword [ebp - 0x213c]
push eax
call fcn.0040b330
add esp, 0x10
mov ebx, eax
jmp 0x408f22
cld
mov edi, str.sync
mov ecx, 5
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a560
cmp dword [ebp + 8], 1
jle 0x40a893
mov ecx, dword [ebp + 0xc]
mov eax, 3
mov edi, 0x4ac42f
mov ebx, dword [ecx + 4]
mov ecx, eax
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40941a
cmp dword [ebp + 8], 3
je 0x40a883
xor ebx, ebx
mov esi, 1
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00408310
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x409426
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a7f3
push ecx
push esi
push str._system
push eax
call fcn.00411aa0
add esp, 0x10
test eax, eax
je 0x40a7f3
mov ebx, eax
sub esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_free
pop eax
mov eax, dword [ebp - 0x18]
push eax
call sub.msvcrt.dll_free
add esp, 0x10
jmp 0x408f22
cld
mov edi, str.get_state
mov ecx, 0xa
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x40a589
mov edi, str.get_serialno
mov ecx, 0xd
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a5b6
push edi
push edi
mov esi, dword [ebp - 0x2138]
lea ebx, [ebp - 0x111b]
push esi
mov edx, 0x1000
mov ecx, dword [ebp - 0x213c]
mov eax, ebx
push ecx
mov ecx, dword [ebp - 0x212c]
call fcn.00407e00
jmp 0x409ad3
mov edi, str.get_devpath
mov ecx, 0xc
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x40a589
cld
mov edi, str.status_window
mov ecx, 0xe
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a6be
push eax
push eax
mov eax, dword [ebp - 0x2138]
mov ecx, str.get_state
push eax
mov edx, 0x1000
mov eax, dword [ebp - 0x213c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x211b]
call fcn.00407e00
mov edi, dword [sym.imp.msvcrt.dll__iob]
xor esi, esi
add esp, 0x10
add edi, 0x20
sub esp, 0xc
push 0xfa
call sub.KERNEL32.dll_Sleep
add esp, 0xc
test ebx, ebx
je 0x40a638
sub esp, 0xc
push ebx
call sub.msvcrt.dll_free
add esp, 0x10
sub esp, 0xc
lea edx, [ebp - 0x211b]
push edx
call fcn.0040bdf0
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x40a815
test esi, esi
je 0x40a674
push eax
push eax
push esi
push ebx
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
je 0x40a618
sub esp, 0xc
push esi
call sub.msvcrt.dll_free
add esp, 0x10
sub esp, 0xc
push ebx
call sub.msvcrt.dll__strdup
add esp, 0xc
mov esi, eax
push 0x1b
push 0x1b
push str._c_2J_c_2H
call fcn.00408260
mov dword [esp], str.Android_Debug_Bridge_n
call fcn.00408260
mov eax, ebx
add esp, 0x10
push edx
push edx
push eax
push str.State:__s_n
call fcn.00408260
mov dword [esp], edi
call sub.msvcrt.dll_fflush
add esp, 0x10
jmp 0x40a618
cld
mov edi, str.logcat
mov ecx, 7
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x40a6eb
mov edi, str.lolcat
mov ecx, 7
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a83d
sub esp, 0xc
push str.ANDROID_LOG_TAGS
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
jne 0x40a704
mov eax, 0x4ac44b
call fcn.00407ff0
lea ecx, [ebp - 0x211b]
push eax
mov ebx, eax
push str.shell:export_ANDROID_LOG_TAGS__s____exec_logcat
push 0x1000
push ecx
call fcn.004a0940
mov dword [esp], ebx
mov edi, str.longcat
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0xc]
cld
mov esi, dword [eax]
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
add esp, 0x10
cmp dl, al
jne 0x40a775
sub esp, 0xc
lea edx, [ebp - 0x211b]
push edx
call sub.msvcrt.dll_strlen
lea ecx, [ebp - 0x211b]
add esp, 0x10
lea eax, [ecx + eax]
mov dword [eax], 0x20762d20
mov dword [eax + 4], 0x676e6f6c
mov byte [eax + 8], 0
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 0x2158], eax
test eax, eax
jle 0x40a7d5
xor esi, esi
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4 + 4]
inc esi
call fcn.00407ff0
sub esp, 0xc
lea ecx, [ebp - 0x211b]
mov ebx, eax
push ecx
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [ebp + eax - 0x211b], 0x20
lea eax, [ebp - 0x211b]
push 0xfff
push ebx
push eax
call sub.msvcrt.dll_strncat
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x10
cmp esi, dword [ebp - 0x2158]
jne 0x40a785
lea ecx, [ebp - 0x211b]
mov edx, dword [ebp - 0x2138]
mov eax, dword [ebp - 0x213c]
xor ebx, ebx
call fcn.0040ae40
jmp 0x408f22
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a542
push edx
push esi
push str._data
push eax
call fcn.00411aa0
add esp, 0x10
mov ebx, eax
jmp 0x40a542
push ecx
push 0x1b
push 0x1b
push str._c_2J_c_2H
call fcn.00408260
mov dword [esp], str.Android_Debug_Bridge_n
call fcn.00408260
mov eax, str.offline
add esp, 0x10
jmp 0x40a6a1
mov ecx, 8
mov esi, dword [ebp - 0x212c]
mov edi, str.longcat
repe cmpsb byte [esi], byte es:[edi]
je 0x40a6eb
cld
mov edi, 0x4ac851
mov ecx, 4
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a89c
push ebx
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407f50
add esp, 0x10
mov ebx, eax
jmp 0x408f22
mov eax, dword [ebp + 0xc]
mov esi, 1
mov ebx, dword [eax + 8]
jmp 0x40a501
xor ebx, ebx
xor esi, esi
jmp 0x40a501
cld
mov edi, str.start_server
mov ecx, 0xd
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a8c8
sub esp, 0xc
push 0x4ac862
call fcn.0040baa0
add esp, 0x10
mov ebx, eax
jmp 0x408f22
cld
mov edi, 0x4ac874
mov ecx, 7
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40aa2c
lea ebx, [ebp - 0x11b]
mov dword [ebp - 0x11b], 0x61622f2e
mov dword [ebp - 0x117], 0x70756b63
mov dword [ebp - 0x113], 0x62612e
cmp dword [ebp + 8], 1
jle 0x409426
mov dword [ebp - 0x2124], ebx
mov ebx, 1
lea edx, [ebx*4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2160], edx
mov eax, 3
cld
mov edi, dword [ecx + edx]
mov esi, 0x4ac87b
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a99c
mov eax, dword [ebp + 8]
dec eax
cmp eax, ebx
je 0x40acb6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2160]
mov eax, dword [eax + edx + 4]
mov dword [ebp - 0x2124], eax
lea eax, [ebx + 2]
cmp eax, dword [ebp + 8]
jg 0x40a986
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2160]
add edx, eax
mov ecx, edx
inc ebx
mov eax, dword [edx + 8]
mov dword [ecx], eax
add edx, 4
lea eax, [ebx + 2]
add ecx, 4
cmp eax, dword [ebp + 8]
jle 0x40a972
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub eax, 2
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov dword [ecx + edx*4], 0
inc ebx
cmp dword [ebp + 8], ebx
jg 0x40a91a
cmp dword [ebp + 8], 1
jle 0x409426
sub esp, 0xc
mov eax, dword [ebp - 0x2124]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x40ac5e
mov ebx, dword [ebp - 0x2124]
inc ebx
push esi
push esi
push 0x2f
push ebx
call sub.msvcrt.dll_strchr
pop edx
pop ecx
push 0x5c
mov esi, eax
push ebx
call sub.msvcrt.dll_strchr
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x40aab6
test eax, eax
je 0x40a9ff
cmp eax, esi
ja 0x40aab6
mov ebx, esi
sub esp, 0xc
mov byte [ebx], 0
mov eax, dword [ebp - 0x2124]
push eax
call sub.msvcrt.dll__mkdir
add esp, 0x10
mov byte [ebx], 0x5c
test eax, eax
jns 0x40a9cf
call sub.msvcrt.dll__errno
cmp dword [eax], 0x11
je 0x40a9cf
jmp 0x40aabe
cld
mov edi, str.restore
mov ecx, 8
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40acca
cmp dword [ebp + 8], 2
jne 0x409426
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
push eax
push eax
push 0
push ebx
call fcn.00417250
add esp, 0x10
mov edi, eax
test eax, eax
js 0x40acaa
sub esp, 0xc
push str.restore:
call fcn.0040baa0
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40aca1
sub esp, 0xc
push str.Now_unlock_your_device_and_confirm_the_restore_operation._n
call fcn.00408260
mov edx, ebx
mov eax, edi
call fcn.004083f0
mov dword [esp], ebx
call fcn.004147e0
mov dword [esp], edi
call fcn.004147e0
xor ebx, ebx
add esp, 0x10
jmp 0x408f22
test ebx, ebx
jne 0x40aa01
push edi
push edi
push 0x1a0
mov esi, dword [ebp - 0x2124]
push esi
call fcn.00416f40
add esp, 0x10
mov edi, eax
test eax, eax
js 0x40ac10
lea eax, [ebp - 0x211b]
push edx
push 0x4ac874
push 0x1000
push eax
call fcn.004a0940
mov edx, dword [ebp + 8]
xor esi, esi
dec edx
add esp, 0x10
mov dword [ebp - 0x2158], edx
sub esp, 0xc
lea ecx, [ebp - 0x211b]
mov ebx, 0xfff
push ecx
call sub.msvcrt.dll_strlen
add esp, 0xc
mov edx, ebx
sub edx, eax
lea ecx, [ebp - 0x211b]
push edx
push 0x4ac8be
push ecx
call sub.msvcrt.dll_strncat
lea eax, [ebp - 0x211b]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add esp, 0xc
sub ebx, eax
lea ecx, [ebp - 0x211b]
push ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4 + 4]
inc esi
push eax
push ecx
call sub.msvcrt.dll_strncat
add esp, 0x10
cmp esi, dword [ebp - 0x2158]
jne 0x40ab04
test byte [0x4ed098], 1
je 0x40abe2
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4ed0a8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.backup
push str.system_core_adb_commandline.c
push 0x4abeaf
push ebx
call fcn.00407ec0
call sub.msvcrt.dll__errno
mov dword [eax], esi
lea eax, [ebp - 0x211b]
push eax
mov eax, dword [ebp - 0x2124]
push eax
push str.backup._filename_s_buf_s_n
push ebx
call fcn.00407ec0
add esp, 0x14
push ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ed0a8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
sub esp, 0xc
lea edx, [ebp - 0x211b]
push edx
call fcn.0040baa0
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40ac36
sub esp, 0xc
push str.Now_unlock_your_device_and_confirm_the_backup_operation._n
call fcn.00408260
mov edx, edi
mov eax, ebx
jmp 0x40aa97
push ebx
mov ecx, dword [ebp - 0x2124]
push ecx
push str.adb:_unable_to_open_file__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
or ebx, 0xffffffff
add eax, 0x40
push eax
call fcn.00407ec0
add esp, 0x10
jmp 0x408f22
push eax
push eax
push str.adb:_unable_to_connect_for_backup_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
or ebx, 0xffffffff
add eax, 0x40
push eax
call fcn.00407ec0
mov dword [esp], edi
call fcn.004147e0
add esp, 0x10
jmp 0x408f22
call sub.msvcrt.dll__errno
cmp dword [eax], 0xd
jne 0x40a9c9
push eax
push eax
push 0x180
mov eax, dword [ebp - 0x2124]
push eax
call sub.msvcrt.dll__chmod
add esp, 0x10
test eax, eax
jne 0x40a9c9
sub esp, 0xc
mov edi, dword [ebp - 0x2124]
push edi
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x40a9c9
push eax
push eax
push str.adb:_unable_to_connect_for_restore_n
jmp 0x40ac3d
push eax
push ebx
push str.adb:_unable_to_open_file__s_n
jmp 0x40ac1d
push eax
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.adb:__f_passed_with_no_filename_n
add eax, 0x40
jmp 0x40933e
cld
mov edi, str.jdwp
mov ecx, 5
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40ad0a
sub esp, 0xc
push str.jdwp
call fcn.0040baa0
add esp, 0x10
mov ebx, eax
test eax, eax
jns 0x4093e6
call fcn.0040b3f0
push esi
push eax
push 0x4ac047
jmp 0x40ac1d
cld
mov edi, str.help
mov ecx, 5
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
je 0x40ad33
mov edi, 0x4ac9b5
mov ecx, 3
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40ad3f
call fcn.00407fa0
xor ebx, ebx
jmp 0x408f22
cld
mov edi, 0x4ac9b8
mov ecx, 8
mov esi, dword [ebp - 0x212c]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40ad6f
sub esp, 0xc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
xor ebx, ebx
push eax
call fcn.00407f80
add esp, 0x10
jmp 0x408f22
call fcn.00407fd0
mov ebx, 1
jmp 0x408f22