Function at 0x401dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, edx
mov dword [esp + 0x44], ecx
lea ebx, [ebp + 8]
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
jne 0x402358
mov edi, dword [ebx + 4]
lea eax, [edi - 0x100001]
cmp eax, 0xffefffff
ja 0x401e4c
lea eax, [esp + 0x10]
push edi
push str.bad_service_name_length___zd_
push eax
call fcn.004ba8a0
add esp, 0xc
test byte [esi], 1
je 0x401e31
mov eax, dword [esi + 8]
mov byte [eax], 0
mov dword [esi + 4], 0
test byte [esi], 1
je 0x401e31
push dword [esi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [esi], xmm0
mov ebx, 0xffffffff
jmp 0x40233d
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [0x99d478]
mov dword [esp + 0x64], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x68], eax
sub esp, 0x18
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.0044ca50
add esp, 0x18
test al, al
je 0x401f6c
cmp edi, 4
jb 0x401ed9
mov eax, dword [ebx]
cmp dword [eax], 0x74736f68
jne 0x401ed9
cmp byte [ebp + 0x10], 0
je 0x402244
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov ecx, dword [0x99d474]
mov edx, dword [0x99d470]
mov eax, edx
or eax, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
je 0x401fd3
mov edi, ebx
lea ebx, [esp + 0x10]
mov ecx, ebx
push str.host:transport_id:
call fcn.00520360
lea eax, [esp + 0x20]
push dword [0x99d474]
push dword [0x99d470]
push eax
call fcn.0051de50
add esp, 0xc
movzx eax, byte [esp + 0x20]
test al, 1
je 0x401ffb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x402001
mov eax, dword [0x99d478]
test byte [esp + 0x38], 1
je 0x401f7e
mov ecx, dword [esp + 0x40]
jmp 0x401f82
lea ecx, [esp + 0x39]
lea edx, [esp + 0x10]
push ecx
push eax
push str.cannot_connect_to_daemon_at__s:__s
push edx
call fcn.004ba8a0
add esp, 0x10
test byte [esi], 1
je 0x401fb8
mov eax, dword [esi + 8]
mov byte [eax], 0
mov dword [esi + 4], 0
test byte [esi], 1
je 0x401fb8
push dword [esi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [esi], xmm0
mov ebx, 0xfffffffe
jmp 0x402300
cmp dword [0x99d468], 0
je 0x402032
mov edi, ebx
lea ebx, [esp + 0x10]
mov ecx, ebx
push str.host:tport:serial:
call fcn.00520360
mov ecx, ebx
push dword [0x99d468]
jmp 0x40209b
shr eax, 1
lea edx, [esp + 0x21]
mov ecx, ebx
push eax
push edx
call fcn.00520110
test byte [esp + 0x20], 1
je 0x40201d
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [0x99d470]
mov ecx, dword [0x99d474]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
jmp 0x4020a0
mov eax, dword [0x962004]
cmp eax, 3
ja case.default.0x402055
xor edi, edi
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0
mov dword [esp], 0
jmp dword [eax*4 + 0x8610c0]
mov edi, ebx
mov dword [esp], 0x8613d2
jmp 0x402086
mov edi, ebx
mov dword [esp], 0x8613ce
jmp 0x402086
mov edi, ebx
mov dword [esp], 0x8613d6
jmp 0x402086
mov edi, ebx
mov dword [esp], 0x8613dc
lea ebx, [esp + 0x10]
mov ecx, ebx
push str.host:tport:
call fcn.00520360
mov ecx, ebx
push dword [esp]
call fcn.00520360
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
movzx eax, byte [esp + 0x10]
test al, 1
je 0x4020bb
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x4020c1
shr eax, 1
lea ecx, [esp + 0x11]
mov ebx, edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
sub esp, 0xc
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 4], xmm0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.00445db0
add esp, 0xc
test al, al
je 0x402181
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
jne 0x4023cc
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
push esi
push eax
call fcn.00401630
add esp, 8
test al, al
je 0x4021cf
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
jne 0x402151
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push 8
push ecx
push eax
call fcn.00445f90
add esp, 0xc
test al, al
je 0x402347
mov eax, dword [0x86159c]
test byte [eax], 1
jne 0x402524
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, edi
shr eax, 8
mov dword [esp + 8], eax
mov dword [esp + 0x1c], ecx
shld edi, ecx, 0x18
mov dword [esp], 0
jmp case.0x402055.3
lea eax, [esp + 0x20]
push str.write_failure_during_connection
push eax
call fcn.00449460
add esp, 8
test byte [esi], 1
je 0x4021b5
mov eax, dword [esi + 8]
mov byte [eax], 0
mov dword [esi + 4], 0
test byte [esi], 1
je 0x4021b5
push dword [esi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esi], xmm0
xor edi, edi
mov al, 1
mov dword [esp], eax
jmp 0x4021e4
mov eax, dword [0x86159c]
mov cl, 1
mov dword [esp], ecx
test byte [eax], 1
jne 0x402438
xor edi, edi
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], edi
mov edi, ebx
test byte [esp + 0x10], 1
je 0x40220d
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
mov ebx, 0xffffffff
cmp byte [esp], 0
jne 0x402300
cmp dword [esp + 0x44], 0
mov ebx, edi
je 0x402244
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
shld edx, ecx, 8
shl ecx, 8
movzx eax, byte [esp + 0x1c]
or eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
movsd xmm0, qword [ebx]
movsd qword [esp + 0x74], xmm0
sub esp, 0xc
movsd xmm0, qword [esp + 0x80]
movsd qword [esp + 4], xmm0
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00445db0
add esp, 0xc
test al, al
je 0x4022b6
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
mov ebx, 0xffffffff
push esi
push eax
call fcn.00401630
add esp, 8
test al, al
je 0x402300
mov eax, dword [0x86159c]
test byte [eax], 1
jne 0x402495
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xc], 0xffffffff
jmp 0x402300
lea eax, [esp + 0x10]
push str.write_failure_during_connection
push eax
call fcn.00449460
add esp, 8
test byte [esi], 1
je 0x4022ea
mov eax, dword [esi + 8]
mov byte [eax], 0
mov dword [esi + 4], 0
test byte [esi], 1
je 0x4022ea
push dword [esi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x10]
movsd qword [esi], xmm0
mov ebx, 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40231a
push eax
call fcn.00448c60
add esp, 4
mov dword [esp + 0xc], 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
test byte [esp + 0x38], 1
je 0x40233d
push dword [esp + 0x40]
call fcn.0051c570
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
push str.failed_to_read_transport_id_from_server
call fcn.005205a0
jmp 0x4021c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 4], eax
sub esp, 0x14
movaps xmm0, xmmword [0x861070]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_client_adb_client.cpp
lea ebx, [esp + 0x24]
mov ecx, ebx
call fcn.004b9f90
mov ecx, ebx
call fcn.004b9f60
push 0xe
push str._adb_connect:
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [ebp + 8]
mov edi, dword [ecx + 4]
push edi
lea ecx, [ebp + 8]
push dword [ecx]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, ebx
lea ebx, [ebp + 8]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
jmp 0x401def
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
sub esp, 0x14
movaps xmm0, xmmword [0x861080]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_client_adb_client.cpp
mov edi, ebx
lea ebx, [esp + 0x34]
mov ecx, ebx
call fcn.004b9f90
mov ecx, ebx
call fcn.004b9f60
push 0x1e
push str.Switch_transport_in_progress:
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00402f30
add esp, 8
mov ecx, ebx
mov ebx, edi
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp]
mov dword [eax], ecx
jmp 0x402105
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x4021e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 4], eax
sub esp, 0x14
movaps xmm0, xmmword [0x861090]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_client_adb_client.cpp
lea edi, [esp + 0x40]
mov ecx, edi
call fcn.004b9f90
mov ecx, edi
call fcn.004b9f60
mov dword [esp + 8], eax
test byte [esi], 1
je 0x4025ba
mov eax, dword [esi + 8]
jmp 0x4025bd
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x4022a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8610b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_client_adb_client.cpp
lea esi, [esp + 0x34]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebx, [esp + 0x10]
push dword [esp + 0xc]
push str._adb_connect:_return_fd__d
push ebx
call fcn.004ba8a0
add esp, 0xc
push ebx
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x10], 1
je 0x40250e
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x4022a8
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x40215f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 4], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8610a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_client_adb_client.cpp
lea ebx, [esp + 0x6c]
mov ecx, ebx
call fcn.004b9f90
mov ecx, ebx
call fcn.004b9f60
mov ebx, eax
lea edi, [esp + 0x20]
push str.Switch_transport_success
push edi
call fcn.004ba8a0
add esp, 8
push edi
push ebx
call fcn.00402f30
add esp, 8
test byte [esp + 0x20], 1
je 0x40259d
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x58]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
lea ebx, [ebp + 8]
jmp 0x40215f
lea eax, [esi + 1]
lea edi, [esp + 0x20]
push eax
push str.Switch_transport_failed:__s
push edi
call fcn.004ba8a0
add esp, 0xc
push edi
push dword [esp + 0xc]
call fcn.00402f30
add esp, 8
test byte [esp + 0x20], 1
je 0x4025f0
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
jmp 0x4021e2