Function at 0x6d776058
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.6d774fdf
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.6d77500b
cmp dword [ebp - 4], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
jge 0x6d776099
test eax, eax
jns 0x6d776099
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d7762da
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, 0x1006
cmp ebx, edi
jne 0x6d776187
push dword [0x6d7815a4]
mov eax, dword [esi]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x17c]
test eax, eax
jne 0x6d7762d8
cmp byte [section..data], al
je 0x6d7762d8
mov eax, dword [esi]
push str.java_lang_Integer
push esi
call dword [eax + 0x18]
test eax, eax
je 0x6d7762d8
mov ecx, dword [esi]
push 0x6d77c248
push str.value
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x6d7762d8
mov ecx, dword [esi]
push eax
push dword [ebp + 0x18]
push esi
call dword [ecx + 0x190]
mov dword [ebp + 0x14], eax
cmp eax, 0x1388
jg 0x6d77611b
and dword [ebp + 0x14], 0
push 4
lea eax, [ebp + 0x14]
push eax
push edi
mov edi, dword [sym.imp.ws2_32.dll_setsockopt]
mov ebx, 0xffff
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jns 0x6d77615a
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x273a
jne 0x6d77614d
mov byte [section..data], 0
jmp 0x6d77615a
push str.setsockopt_SO_RCVTIMEO
push esi
call fcn.6d773a00
pop ecx
pop ecx
cmp dword [ebp - 8], 0xffffffff
je 0x6d7762d8
push 4
lea eax, [ebp + 0x14]
push eax
push 0x1006
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jns 0x6d7762d8
push str.setsockopt_SO_RCVTIMEO
jmp 0x6d7762d0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sym.net.dll__NET_MapSocketOption_12
test eax, eax
je 0x6d7761a0
push str.Invalid_option
jmp 0x6d7761b6
cmp ebx, 8
jg 0x6d7761c6
je 0x6d7761e6
dec ebx
je 0x6d7761e6
dec ebx
dec ebx
je 0x6d7761f6
dec ebx
je 0x6d7761e6
push str.Option_not_supported_by_TwoStacksPlainSocketImpl
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d7762d8
cmp ebx, 0x80
je 0x6d776234
cmp ebx, 0x1000
jle 0x6d7761b1
cmp ebx, 0x1002
jle 0x6d7761f6
cmp ebx, 0x1003
jne 0x6d7761b1
xor eax, eax
cmp byte [ebp + 0x14], al
setne al
mov dword [ebp + 8], eax
jmp 0x6d776285
mov eax, dword [esi]
push str.java_lang_Integer
push esi
call dword [eax + 0x18]
test eax, eax
je 0x6d7762d8
mov ecx, dword [esi]
push 0x6d77c248
push str.value
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x6d7762d8
mov ecx, dword [esi]
push eax
push dword [ebp + 0x18]
push esi
call dword [ecx + 0x190]
jmp 0x6d7761ee
mov eax, dword [esi]
push str.java_lang_Integer
push esi
call dword [eax + 0x18]
test eax, eax
je 0x6d7762d8
mov ecx, dword [esi]
push 0x6d77c248
push str.value
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x6d7762d8
cmp byte [ebp + 0x14], 0
je 0x6d77627b
xor ecx, ecx
push eax
push dword [ebp + 0x18]
inc ecx
mov word [ebp + 8], cx
mov ecx, dword [esi]
push esi
call dword [ecx + 0x190]
jmp 0x6d776281
xor eax, eax
mov word [ebp + 8], ax
mov word [ebp + 0xa], ax
cmp dword [ebp - 4], 0xffffffff
mov edi, str.setsockopt
je 0x6d7762b1
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.6d77b24a
test eax, eax
jns 0x6d7762b1
push edi
push esi
call fcn.6d773a00
pop ecx
pop ecx
cmp dword [ebp - 8], 0xffffffff
je 0x6d7762d8
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.6d77b24a
test eax, eax
jns 0x6d7762d8
push edi
push esi
call fcn.6d773a00
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret 0x14