Function at 0x60c9a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x9b71c8], cl
jne 0x60cf2d
mov eax, dword [0x99caf8]
test eax, eax
jne 0x60c9e8
mov edi, 0x99caf8
mov esi, 0x99caf8
jmp 0x60ca01
mov eax, dword [esi]
mov edi, esi
test eax, eax
je 0x60ca01
mov esi, eax
mov eax, dword [eax + 0x10]
cmp eax, 3
jge 0x60c9e0
cmp eax, 2
je 0x60ca4d
mov eax, dword [esi + 4]
test eax, eax
jne 0x60c9e8
lea edi, [esi + 4]
push 0x14
call fcn.0051c3d0
add esp, 4
mov dword [eax + 0x10], 2
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov dword [edi], eax
mov ecx, dword [0x99caf4]
mov ecx, dword [ecx]
test ecx, ecx
je 0x60ca38
mov dword [0x99caf4], ecx
mov eax, dword [edi]
push eax
push dword [0x99caf8]
call fcn.004586f0
add esp, 8
inc dword [0x99cafc]
push str.ADB_MDNS_AUTO_CONNECT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x60cf2d
mov esi, eax
push 0x8c73e8
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x60caf0
push 0x8c7408
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x60cb31
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x60d272
mov ebx, eax
cmp eax, 0xb
jae 0x60cbd1
mov eax, ebx
add al, bl
mov byte [esp], al
lea edi, [esp + 1]
test ebx, ebx
jne 0x60cbfc
jmp 0x60cc07
mov eax, dword [0x86159c]
test byte [eax], 8
jne 0x60d160
mov ecx, 0x99caf4
push dword [0x99caf8]
call fcn.00552bf0
mov dword [0x99cafc], 0
mov dword [0x99caf4], 0x99caf8
mov dword [0x99caf8], 0
jmp 0x60cf2d
mov eax, dword [0x86159c]
test byte [eax], 8
jne 0x60d1e9
mov eax, dword [0x99caf8]
test eax, eax
jne 0x60cb68
mov edi, 0x99caf8
mov esi, 0x99caf8
jmp 0x60cb80
mov eax, dword [esi]
mov edi, esi
test eax, eax
je 0x60cb80
mov esi, eax
cmp dword [eax + 0x10], 0
jg 0x60cb60
jns 0x60cf2d
mov eax, dword [esi + 4]
test eax, eax
jne 0x60cb68
lea edi, [esi + 4]
push 0x14
call fcn.0051c3d0
add esp, 4
mov dword [eax + 0x10], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov dword [edi], eax
mov ecx, dword [0x99caf4]
mov ecx, dword [ecx]
test ecx, ecx
je 0x60cbb7
mov dword [0x99caf4], ecx
mov eax, dword [edi]
push eax
push dword [0x99caf8]
call fcn.004586f0
add esp, 8
inc dword [0x99cafc]
jmp 0x60cf2d
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xc]
or ebx, 0xf
lea eax, [ebx + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
add ebx, 2
mov dword [esp], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 4], ebx
push ebx
push esi
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x10], 0x2c02
lea edx, [esp + 0x10]
mov eax, esp
lea ecx, [esp + 0x20]
push edx
push eax
push ecx
call fcn.004ba900
add esp, 0xc
test byte [esp + 0x10], 1
je 0x60cc52
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
test byte [esp], 1
je 0x60cc64
push dword [esp + 8]
call fcn.0051c570
add esp, 4
lea eax, [esp + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
cmp edi, eax
jne 0x60cc9d
jmp 0x60ce18
add edi, 0xc
cmp edi, dword [esp + 0x30]
je 0x60cdbd
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
test byte [edi], 1
je 0x60ccc0
mov eax, dword [edi + 8]
jmp 0x60ccc3
lea eax, [edi + 1]
push eax
push str.__s._tcp
lea eax, [esp + 0x18]
push eax
call fcn.004ba8a0
add esp, 0xc
movzx eax, byte [esp + 0x10]
mov ebx, eax
and bl, 1
je 0x60ccf0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x60ccf6
shr eax, 1
lea ecx, [esp + 0x11]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
sub esp, 8
movsd xmm0, qword [esp + 0x58]
movsd qword [esp], xmm0
call fcn.0060c920
add esp, 8
mov esi, eax
mov eax, 0xff
test edx, eax
je 0x60cd95
mov ecx, ebx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 4]
lea edi, [esp + 4]
jmp 0x60cd32
mov eax, dword [edi]
mov ebx, edi
test eax, eax
je 0x60cd4b
mov edi, eax
cmp dword [eax + 0x10], esi
jg 0x60cd30
jge 0x60cdae
mov eax, dword [edi + 4]
test eax, eax
jne 0x60cd38
lea ebx, [edi + 4]
push 0x14
call fcn.0051c3d0
add esp, 4
mov dword [eax + 0x10], esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], edi
mov dword [ebx], eax
mov ecx, dword [esp]
mov ecx, dword [ecx]
test ecx, ecx
je 0x60cd78
mov dword [esp], ecx
mov eax, dword [ebx]
mov edi, dword [esp + 0xc]
push eax
push dword [esp + 8]
call fcn.004586f0
add esp, 8
inc dword [esp + 8]
movzx ebx, byte [esp + 0x10]
and bl, 1
test bl, bl
je 0x60cc90
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
jmp 0x60cc90
mov edi, dword [esp + 0xc]
mov ebx, ecx
test bl, bl
jne 0x60cd9d
jmp 0x60cc90
cmp dword [esp + 8], 0
je 0x60ce18
mov ecx, 0x99caf4
push dword [0x99caf8]
call fcn.00552bf0
mov edi, dword [esp]
mov eax, dword [esp + 4]
mov dword [0x99caf4], edi
mov dword [0x99caf8], eax
mov ecx, dword [esp + 8]
mov dword [0x99cafc], ecx
test ecx, ecx
je 0x60ce9b
mov dword [eax + 8], 0x99caf8
lea eax, [esp + 4]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
jmp 0x60ce1e
mov edi, dword [0x99caf4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
cmp edi, 0x99caf8
je 0x60cebd
lea esi, [esp + 0x10]
jmp 0x60ce59
mov edi, eax
cmp eax, 0x99caf8
je 0x60cebd
mov eax, dword [edi + 0x10]
mov ecx, esi
push dword [eax*4 + 0x99cadc]
call fcn.00520360
mov ecx, esi
push 0x8c7426
call fcn.00520360
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x60ce90
nop dword [eax]
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x60ce80
jmp 0x60ce50
mov eax, dword [edi + 8]
cmp dword [eax], edi
mov edi, eax
jne 0x60ce90
jmp 0x60ce50
mov dword [0x99caf4], 0x99caf8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov eax, dword [0x86159c]
test byte [eax], 8
jne 0x60d106
test byte [esp + 0x10], 1
je 0x60cede
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
mov ecx, esp
push dword [esp + 4]
call fcn.00552bf0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x60cf2d
mov eax, dword [esp + 0x24]
mov ecx, esi
cmp eax, esi
jne 0x60cf06
jmp 0x60cf20
mov eax, edi
cmp edi, esi
je 0x60cf1c
lea edi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x60cf00
push dword [eax - 4]
call fcn.0051c570
add esp, 4
jmp 0x60cf00
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
push ecx
call fcn.0051c570
add esp, 4
lea eax, [ebp + 8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
sub esp, 8
movsd xmm0, qword [esp + 0x50]
movsd qword [esp], xmm0
call fcn.0060c920
add esp, 8
mov ecx, 0xff
test edx, ecx
je 0x60cfad
test eax, 0xfffffffd
jne 0x60cfad
mov esi, dword [0x99caf8]
test esi, esi
je 0x60cf9f
lea ecx, [ebp + 0x10]
mov edx, 0x99caf8
nop word cs:[eax + eax]
lea edi, [esi + 4]
cmp dword [esi + 0x10], eax
cmovge edi, esi
cmovge edx, esi
mov esi, dword [edi]
test esi, esi
jne 0x60cf80
cmp edx, 0x99caf8
je 0x60cf9f
cmp dword [edx + 0x10], eax
jle 0x60cfb9
mov eax, dword [0x86159c]
test byte [eax], 8
jne 0x60d085
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], str.adb_EMULATOR
mov dword [esp + 0x3c], 0xc
sub esp, 0x10
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x50]
movsd qword [esp], xmm0
mov bl, 1
call fcn.004bac60
add esp, 0x10
test al, al
je 0x60cfaf
push 0
push 2
call fcn.004b9f30
add esp, 8
test al, al
je 0x60cfad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8c72e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_adb_mdns.cpp
lea ebx, [esp + 0x34]
mov ecx, ebx
call fcn.004b9f90
mov ecx, ebx
call fcn.004b9f60
push 0x25
push str.Ignoring_emulator_transport_service__
push eax
call fcn.00402f60
add esp, 0xc
push esi
push edi
push eax
call fcn.00402f60
add esp, 0xc
push 1
push 0x8c73d0
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, ebx
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x60cfad
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x60cfad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8c72f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_adb_mdns.cpp
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea edi, [esp + 0x20]
push ebx
push str.Auto_connect_for_reg_type__s_disabled
push edi
call fcn.004ba8a0
add esp, 0xc
push edi
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x20], 1
je 0x60d0ff
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov ecx, esp
jmp 0x60d06f
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x60cecb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8c72b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_adb_mdns.cpp
lea esi, [esp + 0x48]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
test byte [esp + 0x10], 1
je 0x60d279
mov eax, dword [esp + 0x18]
jmp 0x60d27d
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x60cafe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8c72d0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_adb_mdns.cpp
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebx, [esp + 0x20]
push str.Disabling_all_auto_connecting
push ebx
call fcn.004ba8a0
add esp, 8
push ebx
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x20], 1
je 0x60d1d5
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov ecx, esp
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x60cafe
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x60cb3f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8c72c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_adb_mdns.cpp
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebx, [esp + 0x20]
push str.Allow_all_auto_connecting
push ebx
call fcn.004ba8a0
add esp, 8
push ebx
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x20], 1
je 0x60d25e
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov ecx, esp
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x60cb3f
mov ecx, esp
call fcn.0051f6b0
lea eax, [esp + 0x11]
lea ebx, [esp + 0x58]
push eax
push str.mdns_auto_connect_allowedlist:___s_
push ebx
call fcn.004ba8a0
add esp, 0xc
push ebx
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x58], 1
je 0x60d2ad
push dword [esp + 0x60]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x34]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x60cecb