Function at 0x4074a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1094
call fcn.00459eb0
mov eax, dword [0x47f160]
xor eax, esp
mov dword [esp + 0x1090], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push edi
xor edi, edi
push str.ANDROID_PRODUCT_OUT
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 2
call esi
add esp, 4
mov dword [0x4926dc], eax
cmp eax, edi
je 0x4074fc
cmp byte [eax], 0
jne 0x407502
mov dword [0x4926dc], edi
push str.ANDROID_SERIAL
call esi
add esp, 4
push str.ANDROID_ADB_SERVER_PORT
mov dword [esp + 0x24], eax
call esi
mov esi, eax
add esp, 4
mov dword [esp + 0x28], 0x13ad
cmp esi, edi
je 0x407582
lea edx, [eax + 1]
jmp 0x407530
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407530
sub eax, edx
je 0x407582
push edi
push edi
push esi
call dword [sym.imp.MSVCR100.dll_strtol]
add esp, 0xc
mov dword [esp + 0x28], eax
cmp eax, edi
jg 0x407582
push esi
push str.adb:_Env_var_ANDROID_ADB_SERVER_PORT_must_be_a_positive_number._Got___s__n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], edi
jle 0x4077c5
mov ebx, dword [sym.imp.MSVCR100.dll_isdigit]
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx]
mov ecx, str.server
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4075c0
test dl, dl
je 0x4075bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4075c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4075a0
xor eax, eax
jmp 0x4075c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4075d1
lea edi, [eax + 1]
jmp 0x4077b1
mov ecx, str.nodaemon
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4075f8
test dl, dl
je 0x4075f4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4075f8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4075d8
xor eax, eax
jmp 0x4075fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40760e
mov dword [esp + 0x14], 1
jmp 0x4077b1
mov ecx, str.fork_server
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407635
test dl, dl
je 0x407631
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407635
add eax, 2
add ecx, 2
test dl, dl
jne 0x407615
xor eax, eax
jmp 0x40763a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40764b
mov dword [esp + 0x10], 1
jmp 0x4077b1
mov ecx, str.persist
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407672
test dl, dl
je 0x40766e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407672
add eax, 2
add ecx, 2
test dl, dl
jne 0x407652
xor eax, eax
jmp 0x407677
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407688
mov dword [esp + 0x24], 1
jmp 0x4077b1
push 2
push 0x46ec74
push esi
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4076e0
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx]
add esi, 2
cmp byte [esi], al
jne 0x4076c1
cmp dword [ebp + 8], 2
jl 0x407568
mov esi, dword [ecx + 4]
dec dword [ebp + 8]
add ecx, 4
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.00407260
mov dword [0x4926dc], eax
test eax, eax
jne 0x4077b1
push esi
push str.adb:_could_not_resolve___p__s__n
jmp 0x407555
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
cmp byte [esi], 0x2d
jne 0x40773e
cmp byte [esi + 1], 0x73
jne 0x40773e
movsx eax, byte [esi + 2]
push eax
call ebx
add esp, 4
test eax, eax
je 0x407711
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
add eax, 2
mov dword [esp + 0x20], eax
jmp 0x4077b1
cmp dword [ebp + 8], 2
jl 0x407568
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
cmp byte [edx + 2], 0
jne 0x407568
mov ecx, dword [eax + 4]
dec dword [ebp + 8]
add eax, 4
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
jmp 0x4077b1
mov edx, 0x46ec98
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407765
test al, al
je 0x407761
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407765
add ecx, 2
add edx, 2
test al, al
jne 0x407745
xor eax, eax
jmp 0x40776a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407774
mov dword [esp + 0x1c], eax
jmp 0x4077b1
mov ecx, 0x46ec9c
mov eax, esi
jmp 0x407780
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4077a0
test dl, dl
je 0x40779c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4077a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x407780
xor eax, eax
jmp 0x4077a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4077c5
mov dword [esp + 0x1c], 1
mov eax, dword [ebp + 8]
add dword [esp + 0xc], 4
dec eax
mov dword [ebp + 8], eax
test eax, eax
jg 0x407591
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [0x47f344], edx
mov dword [0x4926d8], esi
mov dword [0x47f39c], eax
test edi, edi
je 0x407839
cmp dword [esp + 0x14], 0
jne 0x40782e
cmp dword [esp + 0x10], 0
jne 0x40782e
call fcn.00402960
mov esi, eax
test esi, esi
je 0x407817
push str._could_not_start_server__n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00402ba0
cmp dword [ebp + 8], 0
je 0x407568
mov edi, dword [sym.imp.MSVCR100.dll__snprintf]
lea esp, [esp]
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx]
mov ecx, str.devices
mov eax, ebx
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407880
test dl, dl
je 0x40787c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407880
add eax, 2
add ecx, 2
test dl, dl
jne 0x407860
xor eax, eax
jmp 0x407885
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407cf4
mov ecx, str.connect
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4078b4
test dl, dl
je 0x4078b0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4078b4
add eax, 2
add ecx, 2
test dl, dl
jne 0x407894
xor eax, eax
jmp 0x4078b9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407dca
mov ecx, str.disconnect
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4078e8
test dl, dl
je 0x4078e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4078e8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4078c8
xor eax, eax
jmp 0x4078ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407e31
mov ecx, 0x46eda0
mov eax, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407920
test dl, dl
je 0x40791c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407920
add eax, 2
add ecx, 2
test dl, dl
jne 0x407900
xor eax, eax
jmp 0x407925
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407ebb
mov ecx, str.shell
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407954
test dl, dl
je 0x407950
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407954
add eax, 2
add ecx, 2
test dl, dl
jne 0x407934
xor eax, eax
jmp 0x407959
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40885c
mov ecx, str.hell
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407988
test dl, dl
je 0x407984
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407988
add eax, 2
add ecx, 2
test dl, dl
jne 0x407968
xor eax, eax
jmp 0x40798d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40885c
mov ecx, str.kill_server
mov eax, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4079c0
test dl, dl
je 0x4079bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4079c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4079a0
xor eax, eax
jmp 0x4079c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407ee1
mov ecx, str.sideload
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4079f4
test dl, dl
je 0x4079f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4079f4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4079d4
xor eax, eax
jmp 0x4079f9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407f01
mov ecx, str.remount
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407a28
test dl, dl
je 0x407a24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407a28
add eax, 2
add ecx, 2
test dl, dl
jne 0x407a08
xor eax, eax
jmp 0x407a2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4087a5
mov ecx, str.reboot
mov eax, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407a60
test dl, dl
je 0x407a5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407a60
add eax, 2
add ecx, 2
test dl, dl
jne 0x407a40
xor eax, eax
jmp 0x407a65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4087a5
mov ecx, str.reboot_bootloader
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407a94
test dl, dl
je 0x407a90
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407a94
add eax, 2
add ecx, 2
test dl, dl
jne 0x407a74
xor eax, eax
jmp 0x407a99
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4087a5
mov ecx, str.tcpip
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407ac8
test dl, dl
je 0x407ac4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407ac8
add eax, 2
add ecx, 2
test dl, dl
jne 0x407aa8
xor eax, eax
jmp 0x407acd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4087a5
mov ecx, 0x46d544
mov eax, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407b00
test dl, dl
je 0x407afc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407b00
add eax, 2
add ecx, 2
test dl, dl
jne 0x407ae0
xor eax, eax
jmp 0x407b05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4087a5
mov ecx, str.root
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407b34
test dl, dl
je 0x407b30
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407b34
add eax, 2
add ecx, 2
test dl, dl
jne 0x407b14
xor eax, eax
jmp 0x407b39
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4087a5
mov ecx, str.bugreport
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407b68
test dl, dl
je 0x407b64
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407b68
add eax, 2
add ecx, 2
test dl, dl
jne 0x407b48
xor eax, eax
jmp 0x407b6d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407f32
push 9
push str.wait_for_
push ebx
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x407f71
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
push 0xf
push str.wait_for_device
push esi
call dword [sym.imp.MSVCR100.dll_strncmp]
mov ecx, dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x407bc7
test ecx, ecx
jne 0x407bb8
mov esi, str.wait_for_usb
jmp 0x407bc7
mov esi, str.wait_for_local
cmp ecx, 1
je 0x407bc7
mov esi, str.wait_for_any
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407be5
push esi
push eax
push str.host_serial:_s:_s
push 0x1000
lea eax, [esp + 0xa8]
push eax
jmp 0x407c13
mov eax, str.host
test ecx, ecx
jne 0x407bf5
mov eax, str.host_usb
jmp 0x407bff
cmp ecx, 1
jne 0x407bff
mov eax, str.host_local
push esi
push eax
push str._s:_s
push 0x1000
lea ecx, [esp + 0xa8]
push ecx
call edi
lea edx, [esp + 0xac]
add esp, 0x14
push edx
call fcn.00405860
mov esi, eax
add esp, 4
test esi, esi
js 0x407c66
mov ecx, esi
call fcn.00405480
test eax, eax
jne 0x407c5f
mov eax, dword [ebp + 8]
cmp eax, 1
jle 0x407d96
add dword [esp + 0xc], 4
dec eax
mov dword [ebp + 8], eax
test eax, eax
je 0x407568
mov esi, dword [esp + 0x20]
jmp 0x407850
mov eax, esi
call fcn.0040f8f0
test byte [0x4805a8], 1
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
je 0x407ce3
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x480590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.adb_commandline
push str.commandline.cpp
push str._s::_s__:
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call edi
push 0x4926e0
push str.failure:__s__n
mov dword [eax], ebx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov dword [eax], ebx
push 0x4926e0
push str.error:__s_n
call esi
jmp 0x40755b
mov eax, dword [ebp + 8]
cmp eax, 2
jge 0x407d03
mov eax, 0x46e90d
jmp 0x407d42
jne 0x407dad
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 4]
mov ecx, 0x46dd48
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407d37
test dl, dl
je 0x407d33
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407d37
add eax, 2
add ecx, 2
test dl, dl
jne 0x407d17
xor eax, eax
jmp 0x407d3c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407dad
mov eax, esi
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
push edx
push str.host:_s_s
lea eax, [esp + 0xa4]
push 0x1000
push eax
call edi
lea ecx, [esp + 0xac]
add esp, 0x14
push ecx
call fcn.00405bb0
mov esi, eax
add esp, 4
test esi, esi
je 0x407568
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push str.List_of_devices_attached__n
call edi
add esp, 4
push esi
push 0x46ed00
call edi
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push str.Usage:_adb_devices___l__n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
jmp 0x407568
cmp dword [ebp + 8], 2
je 0x407dd7
push str.Usage:_adb_connect__host__:_port___n
jmp 0x407db2
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
push eax
push str.host:connect:_s
lea ecx, [esp + 0xa0]
push 0x1000
push ecx
call edi
lea edx, [esp + 0xa8]
push edx
call fcn.00405bb0
add esp, 0x14
test eax, eax
je 0x407568
push eax
push 0x46ed00
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp eax, 2
jle 0x407e43
push str.Usage:_adb_disconnect___host__:_port____n
jmp 0x407db2
jne 0x407e66
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push str.host:disconnect:_s
lea edx, [esp + 0xa0]
push 0x1000
push edx
call edi
add esp, 0x10
jmp 0x407e7d
push str.host:disconnect:
lea eax, [esp + 0x9c]
push 0x1000
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x98]
push ecx
call fcn.00405bb0
add esp, 4
test eax, eax
je 0x407568
push eax
push 0x46ed00
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00409470
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push str.host:kill
call fcn.004055e0
add esp, 4
cmp eax, 0xffffffff
jne 0x407d96
push str._server_not_running__n
jmp 0x407db2
cmp dword [ebp + 8], 2
jne 0x407568
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
call fcn.00406830
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov eax, 1
cmp dword [ebp + 8], eax
jne 0x408ce4
mov edx, dword [esp + 0x1c]
push 0
push str.bugreport
push str.shell
push esi
push edx
call fcn.00408d00
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov ecx, str.forward
mov eax, edx
mov edi, edi
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x407fa0
test bl, bl
je 0x407f9c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x407fa0
add eax, 2
add ecx, 2
test bl, bl
jne 0x407f80
xor eax, eax
jmp 0x407fa5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40804e
cmp dword [ebp + 8], 3
jne 0x407568
test esi, esi
je 0x407fe1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
push esi
push str.host_serial:_s:forward:_s__s
lea eax, [esp + 0xa8]
push 0x1000
push eax
call edi
add esp, 0x18
jmp 0x40802b
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x407ffc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
push str.host_usb:forward:_s__s
jmp 0x408019
cmp eax, 1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
jne 0x408014
push str.host_local:forward:_s__s
jmp 0x408019
push str.host:forward:_s__s
lea eax, [esp + 0xa4]
push 0x1000
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x98]
call fcn.00405b80
test eax, eax
je 0x407d96
push 0x4926e0
push str.error:__s_n
jmp 0x407555
mov ecx, 0x46efec
mov eax, edx
mov edi, 2
lea ebx, [ebx]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x40807e
test bl, bl
je 0x40807a
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x40807e
add eax, edi
add ecx, edi
test bl, bl
jne 0x408060
xor eax, eax
jmp 0x408083
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4080b1
cmp dword [ebp + 8], edi
jne 0x407568
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 4]
call fcn.0040a210
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.push
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4080d6
test bl, bl
je 0x4080d2
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4080d6
add eax, edi
add ecx, edi
test bl, bl
jne 0x4080b8
xor eax, eax
jmp 0x4080db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40810d
cmp dword [ebp + 8], 3
jne 0x407568
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
call fcn.0040a910
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.pull
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408132
test bl, bl
je 0x40812e
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408132
add eax, edi
add ecx, edi
test bl, bl
jne 0x408114
xor eax, eax
jmp 0x408137
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40819c
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x40816b
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 4]
push 0x46f000
call fcn.0040ae40
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x407568
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
call fcn.0040ae40
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.install
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4081c1
test bl, bl
je 0x4081bd
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4081c1
add eax, edi
add ecx, edi
test bl, bl
jne 0x4081a3
xor eax, eax
jmp 0x4081c6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4081f8
mov eax, dword [ebp + 8]
cmp eax, edi
jl 0x407568
mov edx, dword [esp + 0xc]
push edx
push eax
call fcn.00409050
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.uninstall
mov eax, edx
nop
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x40821e
test bl, bl
je 0x40821a
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x40821e
add eax, edi
add ecx, edi
test bl, bl
jne 0x408200
xor eax, eax
jmp 0x408223
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408250
mov ecx, dword [ebp + 8]
cmp ecx, edi
jl 0x407568
mov edx, dword [esp + 0xc]
call fcn.00408f40
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.sync
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408275
test bl, bl
je 0x408271
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408275
add eax, edi
add ecx, edi
test bl, bl
jne 0x408257
xor eax, eax
jmp 0x40827a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408371
mov dword [esp + 0x10], eax
cmp dword [ebp + 8], edi
jge 0x40828f
xor eax, eax
jmp 0x4082e8
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 4]
mov ecx, 0x46dd48
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4082c0
test dl, dl
je 0x4082bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4082c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4082a0
xor eax, eax
jmp 0x4082c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4082dc
cmp dword [ebp + 8], 3
mov dword [esp + 0x10], 1
jne 0x40828b
mov eax, dword [edi + 8]
jmp 0x4082e8
cmp dword [ebp + 8], 2
jne 0x407568
mov eax, esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00408d80
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x407568
mov esi, dword [esp + 0x24]
test esi, esi
je 0x408326
mov eax, dword [esp + 0x10]
push eax
mov edi, str._system
mov ebx, esi
call fcn.0040b0c0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408344
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408344
mov ecx, dword [esp + 0x10]
push ecx
mov edi, str._data
mov ebx, eax
call fcn.0040b0c0
add esp, 4
mov ebx, eax
push esi
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call esi
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.get_state
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408396
test bl, bl
je 0x408392
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408396
add eax, edi
add ecx, edi
test bl, bl
jne 0x408378
xor eax, eax
jmp 0x40839b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408789
mov ecx, str.get_serialno
mov eax, edx
lea ebx, [ebx]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4083ce
test bl, bl
je 0x4083ca
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4083ce
add eax, edi
add ecx, edi
test bl, bl
jne 0x4083b0
xor eax, eax
jmp 0x4083d3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408789
mov ecx, str.get_devpath
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408400
test bl, bl
je 0x4083fc
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408400
add eax, edi
add ecx, edi
test bl, bl
jne 0x4083e2
xor eax, eax
jmp 0x408405
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408789
mov ecx, str.status_window
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408432
test bl, bl
je 0x40842e
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408432
add eax, edi
add ecx, edi
test bl, bl
jne 0x408414
xor eax, eax
jmp 0x408437
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408445
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00406890
mov ecx, str.logcat
mov eax, edx
lea esp, [esp]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x40846e
test bl, bl
je 0x40846a
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x40846e
add eax, edi
add ecx, edi
test bl, bl
jne 0x408450
xor eax, eax
jmp 0x408473
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408764
mov ecx, str.lolcat
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4084a0
test bl, bl
je 0x40849c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4084a0
add eax, edi
add ecx, edi
test bl, bl
jne 0x408482
xor eax, eax
jmp 0x4084a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408764
mov ecx, str.longcat
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4084d2
test bl, bl
je 0x4084ce
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4084d2
add eax, edi
add ecx, edi
test bl, bl
jne 0x4084b4
xor eax, eax
jmp 0x4084d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408764
mov ecx, 0x46f048
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408504
test bl, bl
je 0x408500
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408504
add eax, edi
add ecx, edi
test bl, bl
jne 0x4084e6
xor eax, eax
jmp 0x408509
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40853e
push edx
push str.error:_adb__s_not_implemented_on_Win32_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.start_server
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408563
test bl, bl
je 0x40855f
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408563
add eax, edi
add ecx, edi
test bl, bl
jne 0x408545
xor eax, eax
jmp 0x408568
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40858e
push str.host:start_server
call fcn.00405860
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.backup
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4085b3
test bl, bl
je 0x4085af
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4085b3
add eax, edi
add ecx, edi
test bl, bl
jne 0x408595
xor eax, eax
jmp 0x4085b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4085dd
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00406c00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.restore
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408602
test bl, bl
je 0x4085fe
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408602
add eax, edi
add ecx, edi
test bl, bl
jne 0x4085e4
xor eax, eax
jmp 0x408607
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408631
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00406f10
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov ecx, str.jdwp
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408656
test bl, bl
je 0x408652
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408656
add eax, edi
add ecx, edi
test bl, bl
jne 0x408638
xor eax, eax
jmp 0x40865b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4086a8
push str.jdwp
call fcn.00405860
mov esi, eax
add esp, 4
test esi, esi
js 0x408699
push esi
call fcn.00405dd0
add esp, 4
mov eax, esi
call fcn.0040f8f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push 0x4926e0
push str.error:__s_n
jmp 0x408513
mov ecx, str.help
mov eax, edx
nop
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4086ce
test bl, bl
je 0x4086ca
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4086ce
add eax, edi
add ecx, edi
test bl, bl
jne 0x4086b0
xor eax, eax
jmp 0x4086d3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407d96
mov ecx, 0x46f06c
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x408700
test bl, bl
je 0x4086fc
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x408700
add eax, edi
add ecx, edi
test bl, bl
jne 0x4086e2
xor eax, eax
jmp 0x408705
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407d96
mov ecx, str.version
mov eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408732
test dl, dl
je 0x40872e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408732
add eax, edi
add ecx, edi
test dl, dl
jne 0x408714
xor eax, eax
jmp 0x408737
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407568
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x20
call fcn.00405db0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push edx
call fcn.00406a40
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x98]
call fcn.004065b0
mov eax, esi
push eax
jmp 0x407e85
mov ebx, dword [esp + 0xc]
mov esi, dword [ebx]
mov ecx, str.reboot_bootloader
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4087d2
test dl, dl
je 0x4087ce
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4087d2
add eax, 2
add ecx, 2
test dl, dl
jne 0x4087b2
xor eax, eax
jmp 0x4087d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4087ee
push str.reboot:bootloader
lea ecx, [esp + 0x34]
push 0x64
push ecx
call edi
add esp, 0xc
jmp 0x40881e
cmp dword [ebp + 8], 1
jle 0x40880c
mov edx, dword [ebx + 4]
push edx
push esi
push str._s:_s
lea eax, [esp + 0x3c]
push 0x64
push eax
call edi
add esp, 0x14
jmp 0x40881e
push esi
push 0x46ef20
lea ecx, [esp + 0x38]
push 0x64
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x30]
push edx
call fcn.00405860
mov esi, eax
add esp, 4
test esi, esi
js 0x40803f
push esi
call fcn.00405dd0
add esp, 4
mov eax, esi
call fcn.0040f8f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
cmp byte [ecx], 0x68
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
sete al
mov byte [esp + 0x1b], al
test al, al
je 0x408893
push str.e_41_33m
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call ebx
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
cmp dword [ebp + 8], 2
jge 0x40894e
test byte [0x4805a8], 1
je 0x40890c
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
mov edi, dword [eax]
push 0x480590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.adb_commandline
push str.commandline.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call esi
push str.starting_interactive_shell_n
mov dword [eax], edi
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0xc
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov dword [eax], edi
call fcn.00406540
cmp byte [esp + 0x1b], 0
mov esi, eax
je 0x408937
push str.e_0m
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call ebx
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 4]
push edx
push str.shell:_s
lea eax, [esp + 0xa0]
push 0x1000
push eax
call edi
mov eax, dword [ebp + 8]
sub eax, 2
add esi, 8
add esp, 0x10
mov dword [ebp + 8], eax
mov dword [esp + 0xc], esi
test eax, eax
jle 0x408a3f
dec dword [ebp + 8]
lea edi, [esp + 0x98]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408990
mov esi, dword [esp + 0xc]
mov cx, word [0x46e958]
mov eax, dword [esi]
mov word [edi], cx
cmp byte [eax], 0
je 0x4089c1
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x4089c1
xor edx, edx
jmp 0x4089e1
lea edi, [esp + 0x98]
mov edx, 1
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4089d0
mov ax, word [0x46ee00]
mov word [edi], ax
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0xc], esi
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089f0
lea edi, [esp + 0x98]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408a01
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test edx, edx
je 0x408a35
lea edi, [esp + 0x98]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408a23
mov cx, word [0x46ee00]
mov word [edi], cx
cmp dword [ebp + 8], 0
jg 0x408985
mov edi, dword [sym.imp.MSVCR100.dll_fprintf]
mov esi, dword [sym.imp.MSVCR100.dll__errno]
jmp 0x408a50
test byte [0x4805a8], 1
je 0x408acc
call esi
mov edx, dword [eax]
push 0x480590
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.adb_commandline
push str.commandline.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call edi
add esp, 0x10
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x98]
push edx
push str.interactive_shell_loop._buff_s_n
mov dword [eax], ecx
call ebx
add eax, 0x40
push eax
call edi
add esp, 0xc
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea edx, [esp + 0x98]
push edx
call fcn.00405860
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
js 0x408bea
test byte [0x4805a8], 1
je 0x408b5d
call esi
mov eax, dword [eax]
push 0x480590
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.adb_commandline
push str.commandline.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call edi
add esp, 0x10
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push str.about_to_read_and_dump_fd_d__n
mov dword [eax], ecx
call ebx
add eax, 0x40
push eax
call edi
add esp, 0xc
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
push edx
call fcn.00405dd0
add esp, 4
test byte [0x4805a8], 1
je 0x408bd7
call esi
mov eax, dword [eax]
push 0x480590
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.adb_commandline
push str.commandline.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call edi
add esp, 0x10
call esi
mov ecx, dword [esp + 0x14]
push str.read_and_dump___done._n
mov dword [eax], ecx
call ebx
add eax, 0x40
push eax
call edi
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0xc
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x10]
call fcn.0040f8f0
mov dword [esp + 0x10], 0
jmp 0x408c07
push 0x4926e0
push str.error:__s_n
call ebx
add eax, 0x40
push eax
call edi
add esp, 0xc
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x24], 0
je 0x408c47
push str._n__waiting_for_device___n
call ebx
add eax, 0x40
push eax
call edi
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push str.wait_for_device
push eax
push ecx
call fcn.00408d00
add esp, 0x10
jmp 0x408a50
cmp byte [esp + 0x1b], 0
je 0x408c6b
push str.e_0m
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call ebx
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
test byte [0x4805a8], 1
je 0x408ce0
call esi
mov edx, dword [eax]
push 0x480590
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.adb_commandline
push str.commandline.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call edi
add esp, 0x10
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push edx
push str.interactive_shell_loop._return_r_d_n
mov dword [eax], ecx
call ebx
add eax, 0x40
push eax
call edi
add esp, 0xc
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x109c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret