Function at 0x42e210
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x69c
mov eax, dword [0x4b7014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
push esi
push edi
cmp dword [eax + 4], 0
mov dword [ebp - 0x694], eax
jne 0x42e598
mov dword [ebp - 0x69c], str.reconnect
lea edx, [ebp - 0x68c]
mov dword [ebp - 0x698], str.offline
lea ecx, [ebp - 0x488]
movq xmm0, qword [ebp - 0x69c]
push 0
push 0
mov dword [ebp - 0x488], str.._adb_adb.exe
movq qword [ebp - 0x484], xmm0
mov dword [ebp - 0x47c], 0
call fcn.0042dcf0
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42e2cf
mov esi, dword [ebp - 0x68c]
test esi, esi
je 0x42e2cf
push 0x1388
push esi
call ebx
test eax, eax
jne 0x42e2c0
lea eax, [ebp - 0x68c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42e2cf
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x68c], 0xffffffff
call edi
lea eax, [ebp - 0x408]
mov dword [ebp - 0x488], str.._adb_adb.exe
push 0x400
push eax
lea edx, [ebp - 0x68c]
mov dword [ebp - 0x484], str.devices
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x480], 0
call fcn.0042dcf0
add esp, 8
test eax, eax
jne 0x42e568
mov esi, dword [ebp - 0x68c]
test esi, esi
je 0x42e568
push 0x1388
push esi
call ebx
test eax, eax
jne 0x42e341
lea eax, [ebp - 0x68c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42e350
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x68c], 0xffffffff
call edi
cmp dword [ebp - 0x68c], 0
jne 0x42e568
xor eax, eax
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x690], eax
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x408]
push 0x4af944
push eax
call fcn.0045a72e
mov ebx, dword [ebp - 0x694]
add esp, 0xc
mov esi, eax
add ebx, 8
cmp byte [esi], 0
je 0x42e4ed
push str.List_of
push esi
call fcn.00457e10
add esp, 8
test eax, eax
jne 0x42e4ed
push str._daemon
push esi
call fcn.00457e10
add esp, 8
test eax, eax
jne 0x42e4ed
push 0x180
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.004581b0
add esp, 0xc
push 0x20
push esi
call fcn.00458080
mov edi, eax
add esp, 8
test edi, edi
jne 0x42e401
push 9
push esi
call fcn.00458080
mov edi, eax
add esp, 8
test edi, edi
je 0x42e50d
mov eax, edi
sub eax, esi
je 0x42e4ed
cmp eax, 0xff
mov ecx, 0xff
cmova eax, ecx
push eax
push esi
mov byte [eax + esi], 0
lea eax, [ebp - 0x688]
push eax
call fcn.00458310
mov al, byte [edi + 1]
lea esi, [edi + 1]
add esp, 0xc
cmp al, 0xd
je 0x42e44b
test al, al
je 0x42e44b
cmp al, 0x20
je 0x42e443
cmp al, 9
jne 0x42e44b
mov al, byte [esi + 1]
inc esi
cmp al, 0xd
jne 0x42e437
push 0
push esi
call fcn.00458080
add esp, 8
test eax, eax
je 0x42e50d
sub eax, esi
je 0x42e4ed
cmp eax, 0x7f
mov ecx, 0x7f
cmova eax, ecx
push eax
lea eax, [ebp - 0x588]
push esi
push eax
call fcn.00458310
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
jne 0x42e49d
push 0x200
call fcn.004555e4
mov dword [ebp - 0x698], eax
add esp, 4
mov dword [ebx], eax
mov edi, eax
lea esi, [ebp - 0x688]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx]
lea esi, [ebp - 0x588]
add edi, 0x100
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push 0x80
add eax, 0x180
push 0
push eax
call fcn.004581b0
mov edi, dword [ebp - 0x68c]
add esp, 0xc
inc edi
add ebx, 4
mov dword [ebp - 0x68c], edi
cmp edi, 8
je 0x42e50d
lea eax, [ebp - 0x690]
push eax
push 0x4af944
push 0
call fcn.0045a72e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42e391
mov eax, dword [ebp - 0x68c]
cmp eax, 8
jae 0x42e552
mov ecx, dword [ebp - 0x694]
lea esi, [eax + 2]
mov edi, 8
sub edi, eax
lea esi, [ecx + esi*4]
nop dword [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x42e54a
push 0x200
push eax
call fcn.00455614
add esp, 8
mov dword [esi], 0
add esi, 4
sub edi, 1
jne 0x42e530
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004555d3
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0x1a
push dword [0x4b9a40]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
push str.Error
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004555d3
mov esp, ebp
pop ebp
ret