Function at 0x412e30
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.0040dda0
test eax, eax
je 0x412e90
cmp dword [eax], 0x51df34
jne 0x412e90
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
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 0x412f45
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x561ee0], 0x80
mov ebx, dword [sym.imp.msvcrt.dll__errno]
jne 0x412eb4
call ebx
mov dword [eax], 9
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
call ebx
mov ecx, dword [ebp + 8]
mov esi, 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.0042a1c0
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3b7
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x20]
sub esp, 0x14
call fcn.0042a6d0
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.00505c10
lea ecx, [ebp - 0x20]
call fcn.0042a790
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0xc]
cmp edi, 0x516f30
jne 0x413032
call ebx
mov dword [eax], esi
jmp 0x412e9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x561ee0], 0x80
mov edi, eax
jne 0x412f67
mov eax, edi
call fcn.0040d6f0
mov eax, 0xffffffff
jmp 0x412e86
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov eax, dword [eax]
mov dword [esp + 4], edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.004104a0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.adb_setsockopt:_setsockopt_on_fd__d_level__d_optname__d_failed:__s_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.0042a1c0
lea ecx, [ebp - 0x24]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3c1
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x24]
sub esp, 0x14
call fcn.0042a6d0
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.00505c10
lea ecx, [ebp - 0x24]
call fcn.0042a790
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x516f30
jne 0x41308a
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x516f30
jne 0x413061
call ebx
mov ebx, dword [ebp - 0x2c]
mov dword [eax], ebx
jmp 0x412f56
cmp dword [0x5112ac], 0
jne 0x4130ba
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x412f3c
lea eax, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call fcn.004dba20
push ecx
jmp 0x412f3c
cmp dword [0x5112ac], 0
lea edx, [eax - 4]
jne 0x4130c4
mov edx, dword [eax - 4]
lea esi, [edx - 1]
mov dword [eax - 4], esi
mov eax, edx
test eax, eax
jg 0x413026
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.004dba20
push eax
jmp 0x413026
cmp dword [0x5112ac], 0
lea edx, [eax - 4]
jne 0x4130d3
mov edx, dword [eax - 4]
lea esi, [edx - 1]
mov dword [eax - 4], esi
mov eax, edx
test eax, eax
jg 0x413018
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.004dba20
push edx
jmp 0x413018
sub eax, 4
call fcn.0050df71
jmp 0x413046
mov eax, edx
mov dword [ebp - 0x30], ecx
call fcn.0050df71
mov ecx, dword [ebp - 0x30]
jmp 0x413078
mov eax, edx
mov dword [ebp - 0x30], ecx
call fcn.0050df71
mov ecx, dword [ebp - 0x30]
jmp 0x4130a1