Function at 0x427770
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov edx, str.adb_setsockopt
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
call fcn.004233a0
test eax, eax
je 0x4277d0
cmp dword [eax], 0x529430
jne 0x4277d0
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x4277f4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x55503c], 0x80
jne 0x427817
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], 9
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x55503c], 0x80
mov ebx, eax
jne 0x4278b5
mov eax, ebx
call fcn.00423500
mov eax, 0xffffffff
jmp 0x4277c2
call fcn.0042d960
mov ebx, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 2
jg 0x4277df
call ebx
mov ecx, dword [ebp + 8]
lea esi, [ebp - 0x20]
mov edi, dword [eax]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.adb_setsockopt:_invalid_fd__d
call fcn.0042e9a0
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x442
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, esi
sub esp, 0x14
call fcn.0042dbb0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0050d650
mov ecx, esi
call fcn.0042dc40
mov eax, dword [ebp - 0x1c]
mov dword [esp], esi
lea ecx, [eax - 0xc]
call fcn.004e2330
push ecx
call ebx
mov dword [eax], edi
jmp 0x4277df
call fcn.0042d960
cmp eax, 2
lea esi, [esi]
jg 0x427809
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp + 4], ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0042ecc0
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [esp], edx
mov dword [esp + 4], str.adb_setsockopt:_setsockopt_on_fd__d_level__d_optname__d_failed:__s_n
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [ebp - 0x30], edx
mov dword [esp + 0xc], esi
mov esi, dword [ebp + 8]
mov dword [esp + 8], esi
lea esi, [ebp - 0x24]
call fcn.0042e9a0
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x450
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, esi
sub esp, 0x14
call fcn.0042dbb0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050d650
mov ecx, esi
call fcn.0042dc40
mov edx, dword [ebp - 0x1c]
mov dword [esp], esi
lea ecx, [edx - 0xc]
call fcn.004e2330
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
lea ecx, [esi - 0xc]
push eax
mov dword [esp], edx
call fcn.004e2330
push edx
call edi
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x427809