Function at 0x407f00
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov eax, 0x214c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00418cf0
sub esp, 0xc
push str.ANDROID_PRODUCT_OUT
call sub.msvcrt_getenv
add esp, 0x10
mov dword [0x42a080], eax
test eax, eax
je 0x408008
cmp byte [eax], 0
je 0x408008
sub esp, 0xc
push str.ANDROID_SERIAL
call sub.msvcrt_getenv
mov dword [ebp - 0x2130], eax
mov dword [esp], str.ANDROID_ADB_SERVER_PORT
call sub.msvcrt_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x407f67
cmp byte [eax], 0
jne 0x408496
mov dword [ebp - 0x212c], 0x13ad
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4080dd
mov dword [ebp - 0x2134], 2
mov dword [ebp - 0x2144], 0
mov dword [ebp - 0x2140], 0
mov dword [ebp - 0x213c], 0
mov dword [ebp - 0x2138], 0
jmp 0x407fd5
mov dword [ebp - 0x213c], 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 0x408058
mov eax, dword [ebp + 0xc]
mov ecx, 7
cld
mov ebx, dword [eax]
mov edi, str.server
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x407fb0
cld
mov edi, str.nodaemon
mov ecx, 9
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408017
mov dword [ebp - 0x2144], 1
jmp 0x407fba
mov dword [0x42a080], 0
jmp 0x407f36
cld
mov edi, str.fork_server
mov ecx, 0xc
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408034
mov dword [ebp - 0x2140], 1
jmp 0x407fba
cld
mov edi, str.persist
mov ecx, 8
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40833d
mov dword [ebp - 0x2138], 1
jmp 0x407fba
push esi
push esi
mov ebx, dword [ebp - 0x2130]
push ebx
mov ecx, dword [ebp - 0x2134]
push ecx
call fcn.0040a0c0
pop edx
mov eax, dword [ebp - 0x212c]
push eax
call fcn.0040a0e0
mov eax, dword [ebp - 0x213c]
add esp, 0x10
test eax, eax
je 0x408111
mov edx, dword [ebp - 0x2140]
or edx, dword [ebp - 0x2144]
je 0x4084c3
push eax
push eax
mov eax, dword [ebp - 0x212c]
push eax
mov eax, dword [ebp - 0x2140]
push eax
call fcn.00403460
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x4080d3
mov eax, dword [sym.imp.msvcrt__iob]
push esi
add eax, 0x40
push esi
push str._could_not_start_server__n
push eax
call fcn.00407350
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 - 0x2130]
push eax
push 2
call fcn.0040a0c0
pop edi
mov esi, dword [ebp - 0x212c]
push esi
call fcn.0040a0e0
mov dword [ebp - 0x2138], 0
mov dword [ebp - 0x2134], 2
add esp, 0x10
mov eax, dword [ebp + 8]
mov ebx, str.devices
test eax, eax
je 0x40860f
mov ecx, dword [ebp + 0xc]
mov edi, ebx
cld
mov ecx, dword [ecx]
mov dword [ebp - 0x2124], ecx
mov ecx, 8
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408c2c
cld
mov edi, str.connect
mov ecx, 8
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408bbb
cld
mov edi, str.disconnect
mov ecx, 0xb
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408bd1
cld
mov edi, 0x4238cd
mov ecx, 4
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408c99
cld
mov edi, str.shell
mov ecx, 6
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x40861b
mov edi, str.hell
mov ecx, 5
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x40861b
cld
mov edi, str.kill_server
mov ecx, 0xc
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408cb2
cld
mov edi, str.remount
mov ecx, 8
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408561
mov edi, str.reboot
mov ecx, 7
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408561
mov edi, str.reboot_bootloader
mov ecx, 0x12
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408727
mov edi, str.tcpip
mov ecx, 6
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x40857a
mov edi, 0x423a0e
mov ecx, 4
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x40857a
mov edi, str.root
mov ecx, 5
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x40857a
cld
mov edi, str.bugreport
mov ecx, 0xa
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408d44
cld
mov edi, 0x423a37
mov ecx, 9
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x408767
mov edi, str.wait_for_device
mov ecx, 0xf
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x4082df
mov eax, dword [ebp - 0x2134]
mov dword [ebp - 0x2124], str.wait_for_usb
test eax, eax
je 0x4082df
mov dword [ebp - 0x2124], str.wait_for_local
cmp dword [ebp - 0x2134], 1
je 0x4082df
mov dword [ebp - 0x2124], str.wait_for_any
push edi
push edi
mov esi, dword [ebp - 0x2130]
mov edx, 0x1000
push esi
lea eax, [ebp - 0x1117]
mov ecx, dword [ebp - 0x2134]
push ecx
mov ecx, dword [ebp - 0x2124]
call fcn.00407290
lea edx, [ebp - 0x1117]
mov dword [esp], edx
call fcn.0040abd0
add esp, 0x10
test eax, eax
jne 0x408d0f
cmp dword [ebp + 8], 1
jle 0x4087df
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
jmp 0x408121
cld
mov edi, 0x4236aa
mov ecx, 2
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4084dc
cmp byte [ebx + 2], 0
jne 0x4085e0
cmp dword [ebp + 8], 1
je 0x40860f
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add esi, 4
dec ebx
mov dword [ebp + 0xc], esi
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov dword [ebp + 8], ebx
test esi, esi
je 0x408d8b
mov al, byte [esi]
test al, al
je 0x408d8b
movsx edx, al
mov eax, dword [sym.imp.msvcrt___mb_cur_max]
cmp dword [eax], 1
jne 0x4085ee
mov eax, dword [sym.imp.msvcrt__pctype]
mov eax, dword [eax]
mov ax, word [eax + edx*2]
and eax, 0x103
test eax, eax
je 0x4083bc
cmp byte [esi + 1], 0x3a
je 0x408867
push ebx
push ebx
push 0x2f
push esi
call sub.msvcrt_strchr
pop edx
pop ecx
mov ebx, eax
push 0x5c
push esi
call sub.msvcrt_strchr
add esp, 0x10
test ebx, ebx
je 0x4083e1
test eax, eax
je 0x4083e9
cmp eax, ebx
jbe 0x4083e9
test eax, eax
je 0x408dbb
push eax
push eax
push 0x103
push 0x42a090
call sub.msvcrt.dll__getcwd
add esp, 0x10
test eax, eax
je 0x408f6b
mov ebx, 0x42a090
mov eax, dword [ebx]
add ebx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x40840a
test edx, 0x8080
je 0x4087f1
add dl, dl
sbb ebx, 3
sub esp, 0xc
sub ebx, 0x42a090
push esi
call sub.msvcrt_strlen
add esp, 0x10
lea eax, [ebx + eax + 1]
cmp eax, 0x102
jbe 0x40850f
mov edi, dword [sym.imp.msvcrt__iob]
push eax
push eax
push str.adb:_Couldnt_assemble_path_n
lea eax, [edi + 0x40]
push eax
call fcn.00407350
add esp, 0x10
mov dword [0x42a080], 0
push eax
lea eax, [edi + 0x40]
push esi
push str.adb:_could_not_resolve___p__s__n
push eax
call fcn.00407350
call fcn.00407460
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
push eax
push 0
push 0
push ebx
call sub.msvcrt_strtol
add esp, 0x10
mov dword [ebp - 0x212c], eax
test eax, eax
jg 0x407f71
mov eax, dword [sym.imp.msvcrt__iob]
push edi
add eax, 0x40
push ebx
push str.adb:_Env_var_ANDROID_ADB_SERVER_PORT_must_be_a_positive_number._Got___s__n
jmp 0x408481
sub esp, 0xc
mov edi, dword [ebp - 0x212c]
push edi
call fcn.004019b0
add esp, 0x10
mov ebx, eax
jmp 0x4080b7
cmp byte [ebx], 0x2d
jne 0x4084eb
cmp byte [ebx + 1], 0x73
je 0x408b6e
cld
mov edi, 0x4237e4
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408743
mov dword [ebp - 0x2134], 0
jmp 0x407fba
mov ecx, 0x42a090
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x408514
test edx, 0x8080
je 0x4087e6
add dl, dl
sbb ecx, 3
mov word [ecx], 0x5c
push eax
push eax
push esi
push 0x42a090
call sub.msvcrt_strcat
add esp, 0x10
mov dword [0x42a080], 0x42a090
jmp 0x407fba
cld
mov edi, str.reboot_bootloader
mov ecx, 0x12
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x408727
cmp dword [ebp + 8], 1
jle 0x408d7a
mov eax, dword [ebp + 0xc]
sub esp, 0xc
lea ebx, [ebp - 0x117]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x2124]
push eax
push str._s:_s
push 0x64
push ebx
call fcn.00419140
add esp, 0x20
sub esp, 0xc
push ebx
call fcn.0040a770
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x408a96
mov eax, ebx
call fcn.00407530
sub esp, 0xc
push ebx
call fcn.00411740
xor ebx, ebx
add esp, 0x10
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 4]
add esi, 2
jmp 0x40837b
push ecx
push ecx
push 0x103
push edx
call sub.msvcrt__isctype
add esp, 0x10
jmp 0x4083ae
xor esi, esi
cmp dword [ebp + 8], 2
je 0x4092a6
call fcn.00407460
mov ebx, eax
jmp 0x4080d3
mov ecx, dword [ebp - 0x2124]
cmp byte [ecx], 0x68
sete byte [ebp - 0x2125]
je 0x408842
cmp dword [ebp + 8], 1
jle 0x4087fc
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1117]
mov eax, dword [eax + 4]
push eax
push str.shell:_s
push 0x1000
push edx
call fcn.00419140
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
sub esi, 2
add edi, 0xc
add esp, 0x10
jmp 0x4086c8
push eax
push eax
push 0x20
push ebx
call sub.msvcrt_strchr
add esp, 0x10
test eax, eax
je 0x408c82
sub esp, 0xc
lea edx, [ebp - 0x1117]
push edx
call sub.msvcrt_strlen
pop edx
pop ecx
lea ecx, [ebp - 0x1117]
mov word [ebp + eax - 0x1117], 0x22
push ebx
push ecx
call sub.msvcrt_strcat
add esp, 0x10
sub esp, 0xc
lea ecx, [ebp - 0x1117]
push ecx
call sub.msvcrt_strlen
add esp, 0x10
mov word [ebp + eax - 0x1117], 0x22
add edi, 4
dec esi
cmp esi, 0xffffffff
je 0x408886
sub esp, 0xc
lea ecx, [ebp - 0x1117]
push ecx
call sub.msvcrt_strlen
add esp, 0x10
mov word [ebp + eax - 0x1117], 0x20
mov ebx, dword [edi - 4]
cmp byte [ebx], 0
jne 0x408669
sub esp, 0xc
lea eax, [ebp - 0x1117]
push eax
call sub.msvcrt_strlen
pop edx
lea edx, [ebp - 0x1117]
pop ecx
mov word [ebp + eax - 0x1117], 0x22
push ebx
push edx
call sub.msvcrt_strcat
add esp, 0x10
jmp 0x4086a9
push edx
push str.reboot:bootloader
lea ebx, [ebp - 0x117]
push 0x64
push ebx
call fcn.00419140
add esp, 0x10
jmp 0x4085ab
cld
mov edi, 0x4237e7
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408058
mov dword [ebp - 0x2134], 1
jmp 0x407fba
cld
mov edi, str.forward
mov ecx, 8
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409017
cmp dword [ebp + 8], 3
jne 0x40860f
mov eax, dword [ebp - 0x2130]
test eax, eax
je 0x408fbf
push eax
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push eax
mov eax, dword [ecx + 4]
push eax
mov edi, dword [ebp - 0x2130]
push edi
push str.host_serial:_s:forward:_s__s
lea eax, [ebp - 0x1117]
push 0x1000
push eax
call fcn.00419140
add esp, 0x20
sub esp, 0xc
lea edx, [ebp - 0x1117]
push edx
call fcn.0040abd0
add esp, 0x10
test eax, eax
jne 0x408a96
xor ebx, ebx
jmp 0x4080d3
shr edx, 0x10
add ecx, 2
jmp 0x408538
shr edx, 0x10
add ebx, 2
jmp 0x40842e
test byte [0x43cb58], 1
jne 0x408eff
call fcn.00407b50
cmp byte [ebp - 0x2125], 0
mov ebx, eax
je 0x4080d3
sub esp, 0xc
push str.e_0m
call fcn.004076f0
mov eax, dword [sym.imp.msvcrt__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt_fflush
add esp, 0x10
jmp 0x4080d3
sub esp, 0xc
push str.e_41_33m
call fcn.004076f0
mov eax, dword [sym.imp.msvcrt__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt_fflush
add esp, 0x10
jmp 0x408631
cmp byte [esi + 2], 0x5c
jne 0x4083bc
push edx
push edx
push esi
push 0x42a090
call sub.msvcrt_strcpy
add esp, 0x10
jmp 0x408552
mov eax, dword [sym.imp.msvcrt__iob]
add eax, 0x40
mov dword [ebp - 0x2150], eax
jmp 0x408933
sub esp, 0xc
lea ecx, [ebp - 0x1117]
push ecx
call fcn.0040a770
add esp, 0x10
mov edi, eax
test eax, eax
js 0x408b49
test byte [0x43cb58], 1
jne 0x408a28
mov eax, edi
call fcn.00407530
test byte [0x43cb58], 1
jne 0x4089bc
sub esp, 0xc
push edi
xor edi, edi
call fcn.00411740
add esp, 0x10
mov eax, dword [ebp - 0x2138]
test eax, eax
je 0x408abd
mov eax, dword [sym.imp.msvcrt__iob]
push edi
add eax, 0x40
push edi
push str._n__waiting_for_device___n
push eax
call fcn.00407350
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
add esp, 0xc
push 0
push str.wait_for_device
mov esi, dword [ebp - 0x2130]
push esi
mov ebx, dword [ebp - 0x2134]
push ebx
call fcn.00409ae0
add esp, 0x10
test byte [0x43cb58], 1
je 0x408899
call sub.msvcrt__errno
sub esp, 0xc
mov ebx, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
add esp, 0xc
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4233d0
mov eax, dword [ebp - 0x2150]
push eax
call fcn.00407350
call sub.msvcrt__errno
add esp, 0xc
lea edx, [ebp - 0x1117]
mov dword [eax], ebx
push edx
push str.interactive_shell_loop._buff_s_n
mov eax, dword [ebp - 0x2150]
push eax
call fcn.00407350
pop eax
mov eax, dword [ebp - 0x2150]
push eax
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], ebx
jmp 0x408899
call sub.msvcrt__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4233d0
push ebx
call fcn.00407350
call sub.msvcrt__errno
mov dword [eax], esi
pop ecx
pop eax
push str.read_and_dump___done._n
push ebx
call fcn.00407350
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], esi
jmp 0x4088d6
call sub.msvcrt__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4233d0
push ebx
call fcn.00407350
call sub.msvcrt__errno
add esp, 0xc
mov dword [eax], esi
push edi
push str.about_to_read_and_dump_fd_d__n
push ebx
call fcn.00407350
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], esi
jmp 0x4088c2
call fcn.0040a0f0
push esi
push eax
push 0x423568
mov eax, dword [sym.imp.msvcrt__iob]
mov ebx, 1
add eax, 0x40
push eax
call fcn.00407350
add esp, 0x10
jmp 0x4080d3
cmp byte [ebp - 0x2125], 0
jne 0x408d96
mov ebx, edi
test byte [0x43cb58], 1
je 0x4080d3
call sub.msvcrt__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4233d0
push ebx
call fcn.00407350
call sub.msvcrt__errno
add esp, 0xc
mov dword [eax], esi
push edi
push str.interactive_shell_loop._return_r_d_n
push ebx
call fcn.00407350
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
mov ebx, edi
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], esi
jmp 0x4080d3
call fcn.0040a0f0
or edi, 0xffffffff
push edx
push eax
mov eax, dword [sym.imp.msvcrt__iob]
push 0x423568
add eax, 0x40
push eax
call fcn.00407350
add esp, 0x10
jmp 0x4088e4
lea ecx, [ebx + 2]
mov dword [ebp - 0x2130], ecx
mov dl, byte [ebx + 2]
movsx eax, dl
sub eax, 0x30
cmp eax, 9
jbe 0x407fba
cmp dword [ebp + 8], 1
je 0x40860f
test dl, dl
jne 0x40860f
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x2130], eax
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
jmp 0x407fba
cmp dword [ebp + 8], 2
je 0x408cd5
push eax
push eax
push str.Usage:_adb_connect__host__:_port___n
jmp 0x408aa2
cmp dword [ebp + 8], 2
jg 0x408e80
je 0x408ff2
lea eax, [ebp - 0x1117]
push edi
push str.host:disconnect:
push 0x1000
push eax
call fcn.00419140
add esp, 0x10
sub esp, 0xc
lea edx, [ebp - 0x1117]
push edx
call fcn.0040aa70
add esp, 0x10
test eax, eax
je 0x408d05
push edx
push edx
push eax
push 0x423831
call fcn.004076f0
xor ebx, ebx
add esp, 0x10
jmp 0x4080d3
mov ecx, dword [ebp - 0x2124]
lea ebx, [ebp - 0x1117]
push ecx
push 0x42380e
push 0x1000
push ebx
call fcn.00419140
mov dword [esp], ebx
call fcn.0040aa70
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x408d05
sub esp, 0xc
push str.List_of_devices_attached__n
call fcn.004076f0
pop eax
pop edx
push ebx
push 0x423831
call fcn.004076f0
xor ebx, ebx
add esp, 0x10
jmp 0x4080d3
push eax
push eax
lea eax, [ebp - 0x1117]
push ebx
push eax
call sub.msvcrt_strcat
add esp, 0x10
jmp 0x4086c5
push esi
push esi
mov ebx, dword [ebp + 0xc]
push ebx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004035c0
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
sub esp, 0xc
push 0x4239c5
call fcn.0040a2d0
add esp, 0x10
inc eax
jne 0x4087df
push ecx
push ecx
push str._server_not_running__n
jmp 0x408aa2
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x1117]
mov eax, dword [eax + 4]
push eax
push str.host:connect:_s
push 0x1000
push ebx
call fcn.00419140
mov dword [esp], ebx
call fcn.0040aa70
add esp, 0x10
test eax, eax
jne 0x408c15
mov ebx, 1
jmp 0x4080d3
test byte [0x43cb58], 1
jne 0x408e8c
mov edi, dword [sym.imp.msvcrt__iob]
call fcn.0040a0f0
mov ebx, 1
push edx
push eax
lea eax, [edi + 0x40]
push 0x423568
push eax
call fcn.00407350
add esp, 0x10
jmp 0x4080d3
cmp dword [ebp + 8], 1
jne 0x40860f
sub esp, 0xc
xor ebx, ebx
push 0
push str.bugreport
push str.shell
mov eax, dword [ebp - 0x2130]
push eax
mov eax, dword [ebp - 0x2134]
push eax
call fcn.00409ae0
add esp, 0x20
jmp 0x4080d3
mov eax, dword [ebp - 0x2124]
push eax
push 0x423a29
jmp 0x40872d
mov edi, dword [sym.imp.msvcrt__iob]
jmp 0x40846d
sub esp, 0xc
push str.e_0m
call fcn.004076f0
mov eax, dword [sym.imp.msvcrt__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt_fflush
add esp, 0x10
jmp 0x408aca
sub esp, 0xc
push str.ANDROID_BUILD_TOP
call sub.msvcrt_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x408dda
cmp byte [eax], 0
jne 0x408f9b
sub esp, 0xc
push 0x42371f
call sub.msvcrt_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x408df9
cmp byte [eax], 0
jne 0x4090c0
lea edi, [ebp - 0x2117]
push ebx
push ebx
push 0x103
push edi
call sub.msvcrt.dll__getcwd
lea ebx, [ebp - 0x117]
mov edx, ebx
call fcn.00407e80
add esp, 0x10
test eax, eax
je 0x409140
sub esp, 0xc
push esi
push ebx
push str._sout_targetproduct_s
push 0x103
push 0x42a090
call fcn.00419140
add esp, 0x18
push 0
push 0x42a090
call sub.msvcrt.dll__access
add esp, 0x10
test eax, eax
jns 0x408552
mov edi, dword [sym.imp.msvcrt__iob]
push 0x42a090
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.00407350
add esp, 0x10
jmp 0x40846d
push eax
push eax
push str.Usage:_adb_disconnect___host__:_port____n
jmp 0x408aa2
call sub.msvcrt__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov edi, dword [sym.imp.msvcrt__iob]
add esp, 0xc
lea ebx, [edi + 0x40]
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4233d0
push ebx
call fcn.00407350
call sub.msvcrt__errno
mov dword [eax], esi
call fcn.0040a0f0
add esp, 0xc
push eax
push str.failure:__s__n
push ebx
call fcn.00407350
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], esi
jmp 0x408d22
call sub.msvcrt__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_commandline
push str.system_core_adb_commandline.c
push 0x4233d0
push ebx
call fcn.00407350
call sub.msvcrt__errno
mov dword [eax], esi
pop eax
pop edx
push str.starting_interactive_shell_n
push ebx
call fcn.00407350
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], esi
jmp 0x408809
call sub.msvcrt__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt_strerror
add esp, 0xc
mov edi, dword [sym.imp.msvcrt__iob]
push eax
lea eax, [edi + 0x40]
push str.adb:_Couldnt_get_CWD:__s_n
push eax
call fcn.00407350
add esp, 0x10
jmp 0x40846d
call fcn.00407df0
test eax, eax
je 0x40904f
push ecx
push ecx
push ebx
lea ebx, [ebp - 0x117]
push ebx
call sub.msvcrt_strcpy
add esp, 0x10
jmp 0x408e24
mov esi, dword [ebp - 0x2134]
test esi, esi
je 0x409114
cmp dword [ebp - 0x2134], 1
je 0x4090e8
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, dword [ecx + 8]
push eax
mov edi, dword [ecx + 4]
push edi
push str.host:forward:_s__s
jmp 0x4087b1
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1117]
mov eax, dword [edx + 4]
push eax
push str.host:disconnect:_s
push 0x1000
push ecx
call fcn.00419140
add esp, 0x10
jmp 0x408bfb
cld
mov edi, 0x423ae1
mov ecx, 3
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409080
cmp dword [ebp + 8], 2
jne 0x40860f
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov ebx, dword [ecx + 4]
push ebx
call fcn.0040dcf0
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
mov edi, dword [sym.imp.msvcrt__iob]
push eax
push ebx
push str.adb:_bad_ANDROID_BUILD_TOP_value___s__n
lea eax, [edi + 0x40]
push eax
call fcn.00407350
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.00407350
add esp, 0x10
jmp 0x40846d
cld
mov edi, str.push
mov ecx, 5
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409170
cmp dword [ebp + 8], 3
jne 0x40860f
push ecx
push 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
push edx
mov eax, dword [eax + 4]
push eax
call fcn.0040eaa0
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
call fcn.00407df0
test eax, eax
jne 0x408fa8
mov edi, dword [sym.imp.msvcrt__iob]
push eax
push ebx
push str.adb:_bad_TOP_value___s__n
lea eax, [edi + 0x40]
push eax
call fcn.00407350
add esp, 0x10
jmp 0x409068
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov edx, dword [eax + 8]
push edx
lea edx, [ebp - 0x1117]
mov eax, dword [eax + 4]
push eax
push str.host_local:forward:_s__s
push 0x1000
push edx
call fcn.00419140
add esp, 0x20
jmp 0x4087c5
mov edx, dword [ebp + 0xc]
sub esp, 0xc
mov ebx, dword [edx + 8]
push ebx
mov ecx, dword [edx + 4]
push ecx
lea ecx, [ebp - 0x1117]
push str.host_usb:forward:_s__s
push 0x1000
push ecx
call fcn.00419140
add esp, 0x20
jmp 0x4087c5
push edx
push edx
push 0x103
push edi
call fcn.0040f3b0
lea edx, [ebp - 0x117]
mov eax, edi
call fcn.00407e80
add esp, 0x10
test eax, eax
jne 0x408e24
mov edi, dword [sym.imp.msvcrt__iob]
jmp 0x409068
cld
mov edi, str.pull
mov ecx, 5
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x4091b1
cmp dword [ebp + 8], 2
je 0x4091f5
cmp dword [ebp + 8], 3
jne 0x40860f
push edi
push edi
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
push esi
mov ebx, dword [ecx + 4]
push ebx
call fcn.0040f060
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
cld
mov edi, str.install
mov ecx, 8
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409212
cmp dword [ebp + 8], 1
jle 0x40860f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2130]
push eax
mov eax, dword [ebp - 0x2134]
push eax
call fcn.00409d90
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
push eax
push eax
push 0x423aee
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.0040f060
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
cld
mov edi, str.uninstall
mov ecx, 0xa
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409256
cmp dword [ebp + 8], 1
jle 0x40860f
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x2130]
push eax
mov eax, dword [ebp - 0x2134]
push eax
call fcn.0040a040
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
cld
mov edi, str.sync
mov ecx, 5
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409305
cmp dword [ebp + 8], 1
jle 0x4095cf
mov eax, dword [ebp + 0xc]
mov edi, 0x423b07
mov ebx, dword [eax + 4]
mov eax, 3
mov esi, ebx
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408603
cmp dword [ebp + 8], 3
je 0x4095bf
xor ebx, ebx
mov esi, 1
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004077a0
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x40860f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x409519
push ecx
push esi
push str._system
push eax
call fcn.0040e9f0
add esp, 0x10
test eax, eax
je 0x409519
mov ebx, eax
sub esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt_free
pop eax
mov eax, dword [ebp - 0x14]
push eax
call sub.msvcrt_free
add esp, 0x10
jmp 0x4080d3
cld
mov edi, str.get_state
mov ecx, 0xa
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x40932e
mov edi, str.get_serialno
mov ecx, 0xd
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40935b
push edi
push edi
mov esi, dword [ebp - 0x2130]
lea ebx, [ebp - 0x1117]
push esi
mov edx, 0x1000
mov ecx, dword [ebp - 0x2134]
mov eax, ebx
push ecx
mov ecx, dword [ebp - 0x2124]
call fcn.00407290
jmp 0x408cf2
cld
mov edi, str.status_window
mov ecx, 0xe
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40942c
push eax
push eax
mov eax, dword [ebp - 0x2130]
mov ecx, str.get_state
push eax
mov edx, 0x1000
mov eax, dword [ebp - 0x2134]
xor ebx, ebx
push eax
lea eax, [ebp - 0x2117]
call fcn.00407290
mov edi, dword [sym.imp.msvcrt__iob]
xor esi, esi
add esp, 0x10
add edi, 0x20
jmp 0x4093cc
test esi, esi
je 0x409547
push eax
push eax
push esi
push ebx
call sub.msvcrt_strcmp
add esp, 0x10
test eax, eax
jne 0x40953b
sub esp, 0xc
push 0xfa
call sub.KERNEL32.dll_Sleep
add esp, 0xc
test ebx, ebx
je 0x4093ec
sub esp, 0xc
push ebx
call sub.msvcrt_free
add esp, 0x10
sub esp, 0xc
lea edx, [ebp - 0x2117]
push edx
call fcn.0040aa70
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x4093b0
push ecx
push 0x1b
push 0x1b
push str._c_2J_c_2H
call fcn.004076f0
mov dword [esp], str.Android_Debug_Bridge_n
call fcn.004076f0
mov eax, str.offline
add esp, 0x10
jmp 0x409574
cld
mov edi, str.logcat
mov ecx, 7
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x409459
mov edi, str.lolcat
mov ecx, 7
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409591
sub esp, 0xc
push str.ANDROID_LOG_TAGS
call sub.msvcrt_getenv
add esp, 0x10
test eax, eax
jne 0x409472
mov eax, 0x423b90
call fcn.00407480
lea ecx, [ebp - 0x2117]
push eax
mov ebx, eax
push str.shell:export_ANDROID_LOG_TAGS__s____exec_logcat
push 0x1000
push ecx
call fcn.00419140
mov dword [esp], ebx
call sub.msvcrt_free
mov eax, dword [ebp + 8]
dec eax
add esp, 0x10
mov dword [ebp - 0x214c], eax
test eax, eax
jle 0x4094fb
xor esi, esi
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4 + 4]
inc esi
call fcn.00407480
sub esp, 0xc
lea ecx, [ebp - 0x2117]
mov ebx, eax
push ecx
call sub.msvcrt_strlen
add esp, 0xc
mov word [ebp + eax - 0x2117], 0x20
lea eax, [ebp - 0x2117]
push 0xfff
push ebx
push eax
call sub.msvcrt_strncat
mov dword [esp], ebx
call sub.msvcrt_free
add esp, 0x10
cmp esi, dword [ebp - 0x214c]
jne 0x4094ab
lea ecx, [ebp - 0x2117]
mov edx, dword [ebp - 0x2130]
mov eax, dword [ebp - 0x2134]
xor ebx, ebx
call fcn.00409ba0
jmp 0x4080d3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4092e7
push edx
push esi
push str._data
push eax
call fcn.0040e9f0
add esp, 0x10
mov ebx, eax
jmp 0x4092e7
sub esp, 0xc
push esi
call sub.msvcrt_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.004076f0
mov dword [esp], str.Android_Debug_Bridge_n
call fcn.004076f0
mov eax, ebx
add esp, 0x10
push edx
push edx
push eax
push str.State:__s_n
call fcn.004076f0
mov dword [esp], edi
call sub.msvcrt_fflush
add esp, 0x10
jmp 0x4093cc
cld
mov edi, 0x423bc5
mov ecx, 4
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x4095d8
push ebx
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004073e0
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
mov eax, dword [ebp + 0xc]
mov esi, 1
mov ebx, dword [eax + 8]
jmp 0x4092a6
xor ebx, ebx
xor esi, esi
jmp 0x4092a6
cld
mov edi, str.start_server
mov ecx, 0xd
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409604
sub esp, 0xc
push 0x423bd6
call fcn.0040a770
add esp, 0x10
mov ebx, eax
jmp 0x4080d3
cld
mov edi, 0x423be8
mov ecx, 7
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409765
lea ebx, [ebp - 0x117]
mov dword [ebp - 0x117], 0x61622f2e
mov dword [ebp - 0x113], 0x70756b63
mov dword [ebp - 0x10f], 0x62612e
cmp dword [ebp + 8], 1
jle 0x40860f
mov dword [ebp - 0x2120], ebx
mov ebx, 1
lea edx, [ebx*4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2154], edx
mov eax, 3
cld
mov edi, dword [ecx + edx]
mov esi, 0x423bef
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4096d5
mov eax, dword [ebp + 8]
dec eax
cmp eax, ebx
je 0x409a0e
mov eax, dword [ebp - 0x2154]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + edx + 4]
mov dword [ebp - 0x2120], eax
lea eax, [ebx + 2]
cmp dword [ebp + 8], eax
jl 0x4096bf
mov eax, dword [ebp - 0x2154]
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 dword [ebp + 8], eax
jge 0x4096ab
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 0x409656
cmp dword [ebp + 8], 1
jle 0x40860f
sub esp, 0xc
mov eax, dword [ebp - 0x2120]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
inc eax
je 0x409997
mov ebx, dword [ebp - 0x2120]
inc ebx
push esi
push esi
push 0x2f
push ebx
call sub.msvcrt_strchr
pop edx
pop ecx
push 0x5c
mov esi, eax
push ebx
call sub.msvcrt_strchr
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x4097e3
test eax, eax
je 0x409738
cmp eax, esi
ja 0x4097e3
mov ebx, esi
sub esp, 0xc
mov byte [ebx], 0
mov edi, dword [ebp - 0x2120]
push edi
call sub.msvcrt__mkdir
add esp, 0x10
mov byte [ebx], 0x5c
test eax, eax
jns 0x409708
call sub.msvcrt__errno
cmp dword [eax], 0x11
je 0x409708
jmp 0x4097eb
cld
mov edi, str.restore
mov ecx, 8
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409a22
cmp dword [ebp + 8], 2
jne 0x40860f
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
push eax
push eax
push 0
push ebx
call fcn.004141a0
add esp, 0x10
mov esi, eax
test eax, eax
js 0x409a02
sub esp, 0xc
push str.restore:
call fcn.0040a770
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x4099da
mov edx, eax
mov eax, esi
call fcn.00407880
sub esp, 0xc
push ebx
call fcn.00411740
mov dword [esp], esi
xor ebx, ebx
call fcn.00411740
add esp, 0x10
jmp 0x4080d3
test ebx, ebx
jne 0x40973a
push esi
push esi
push 0x1a0
mov ebx, dword [ebp - 0x2120]
push ebx
call fcn.00413e90
add esp, 0x10
mov edi, eax
test eax, eax
js 0x409949
push eax
lea eax, [ebp - 0x2117]
push 0x423be8
push 0x1000
push eax
call fcn.00419140
mov edx, dword [ebp + 8]
xor esi, esi
dec edx
add esp, 0x10
mov dword [ebp - 0x214c], edx
sub esp, 0xc
lea ecx, [ebp - 0x2117]
mov ebx, 0xfff
push ecx
call sub.msvcrt_strlen
add esp, 0xc
mov edx, ebx
sub edx, eax
lea ecx, [ebp - 0x2117]
push edx
push 0x423c32
push ecx
call sub.msvcrt_strncat
lea eax, [ebp - 0x2117]
mov dword [esp], eax
call sub.msvcrt_strlen
add esp, 0xc
sub ebx, eax
lea ecx, [ebp - 0x2117]
push ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4 + 4]
inc esi
push eax
push ecx
call sub.msvcrt_strncat
add esp, 0x10
cmp esi, dword [ebp - 0x214c]
jne 0x409831
test byte [0x43cb58], 1
je 0x40990f
call sub.msvcrt__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.backup
push str.system_core_adb_commandline.c
push 0x4233d0
push ebx
call fcn.00407350
call sub.msvcrt__errno
mov dword [eax], esi
lea eax, [ebp - 0x2117]
push eax
mov eax, dword [ebp - 0x2120]
push eax
push str.backup._filename_s_buf_s_n
push ebx
call fcn.00407350
add esp, 0x14
push ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], esi
sub esp, 0xc
lea edx, [ebp - 0x2117]
push edx
call fcn.0040a770
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40996f
mov edx, edi
call fcn.00407880
sub esp, 0xc
push ebx
call fcn.00411740
mov dword [esp], edi
xor ebx, ebx
call fcn.00411740
add esp, 0x10
jmp 0x4080d3
push ecx
mov edx, dword [ebp - 0x2120]
push edx
push str.adb:_unable_to_open_file__s_n
mov eax, dword [sym.imp.msvcrt__iob]
or ebx, 0xffffffff
add eax, 0x40
push eax
call fcn.00407350
add esp, 0x10
jmp 0x4080d3
push eax
push eax
mov eax, dword [sym.imp.msvcrt__iob]
push str.adb:_unable_to_connect_for_backup_n
add eax, 0x40
or ebx, 0xffffffff
push eax
call fcn.00407350
mov dword [esp], edi
call fcn.00411740
add esp, 0x10
jmp 0x4080d3
call sub.msvcrt__errno
cmp dword [eax], 0xd
jne 0x409702
push eax
push eax
push 0x180
mov eax, dword [ebp - 0x2120]
push eax
call sub.msvcrt.dll__chmod
add esp, 0x10
test eax, eax
jne 0x409702
sub esp, 0xc
mov edi, dword [ebp - 0x2120]
push edi
call sub.msvcrt.dll__unlink
add esp, 0x10
jmp 0x409702
mov eax, dword [sym.imp.msvcrt__iob]
push edi
add eax, 0x40
push edi
push str.adb:_unable_to_connect_for_backup_n
push eax
call fcn.00407350
mov dword [esp], esi
call fcn.00411740
or ebx, 0xffffffff
add esp, 0x10
jmp 0x4080d3
push eax
push ebx
push str.adb:_unable_to_open_file__s_n
jmp 0x409956
push eax
push eax
mov eax, dword [sym.imp.msvcrt__iob]
push str.adb:__f_passed_with_no_filename_n
add eax, 0x40
jmp 0x408481
cld
mov edi, str.jdwp
mov ecx, 5
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409a62
sub esp, 0xc
push str.jdwp
call fcn.0040a770
add esp, 0x10
mov ebx, eax
test eax, eax
jns 0x4085c1
call fcn.0040a0f0
push esi
push eax
push 0x423568
jmp 0x409956
cld
mov edi, str.help
mov ecx, 5
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
je 0x409a8b
mov edi, 0x423c8e
mov ecx, 3
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409a97
call fcn.00407430
xor ebx, ebx
jmp 0x4080d3
cld
mov edi, str.version
mov ecx, 8
mov esi, dword [ebp - 0x2124]
repe cmpsb byte [esi], byte es:[edi]
jne 0x409ac7
sub esp, 0xc
mov eax, dword [sym.imp.msvcrt__iob]
add eax, 0x20
xor ebx, ebx
push eax
call fcn.00407410
add esp, 0x10
jmp 0x4080d3
call fcn.00407460
mov ebx, 1
jmp 0x4080d3