Function at 0x1000a2c7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push 4
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call sub.msvcr100.dll_memset
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.100091ff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.1000922b
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp + 8], edi
jge 0x1000a31d
cmp eax, edi
jge 0x1000a31d
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x1000a54d
mov edi, dword [ebp + 0x10]
push ebx
mov ebx, 0x1006
cmp edi, ebx
jne 0x1000a3fb
push dword [0x10012578]
mov eax, dword [esi]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x17c]
test eax, eax
jne 0x1000a54c
cmp byte [0x10012008], al
je 0x1000a54c
mov eax, dword [esi]
push str.java_lang_Integer
push esi
call dword [eax + 0x18]
test eax, eax
je 0x1000a54c
mov ecx, dword [esi]
push 0x1000d268
push str.value
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x1000a54c
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 0x1000a39e
and dword [ebp + 0x14], 0
mov edi, dword [sym.imp.ws2_32.dll_setsockopt]
push 4
lea eax, [ebp + 0x14]
push eax
push ebx
mov ebx, 0xffff
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jns 0x1000a3ce
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x273a
jne 0x1000a3f1
mov byte [0x10012008], 0
cmp dword [ebp - 8], 0xffffffff
je 0x1000a54c
push 4
lea eax, [ebp + 0x14]
push eax
push 0x1006
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jns 0x1000a54c
push str.setsockopt_SO_RCVTIMEO
jmp 0x1000a544
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call sym.net.dll__NET_MapSocketOption_12
test eax, eax
je 0x1000a414
push str.Invalid_option
jmp 0x1000a42a
cmp edi, 8
jg 0x1000a43a
je 0x1000a45a
dec edi
je 0x1000a45a
dec edi
dec edi
je 0x1000a46a
dec edi
je 0x1000a45a
push str.Option_not_supported_by_TwoStacksPlainSocketImpl
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x1000a54c
cmp edi, 0x80
je 0x1000a4a8
cmp edi, 0x1000
jle 0x1000a425
cmp edi, 0x1002
jle 0x1000a46a
cmp edi, 0x1003
jne 0x1000a425
xor eax, eax
cmp byte [ebp + 0x14], al
setne al
mov dword [ebp - 4], eax
jmp 0x1000a4f9
mov eax, dword [esi]
push str.java_lang_Integer
push esi
call dword [eax + 0x18]
test eax, eax
je 0x1000a54c
mov ecx, dword [esi]
push 0x1000d268
push str.value
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x1000a54c
mov ecx, dword [esi]
push eax
push dword [ebp + 0x18]
push esi
call dword [ecx + 0x190]
jmp 0x1000a462
mov eax, dword [esi]
push str.java_lang_Integer
push esi
call dword [eax + 0x18]
test eax, eax
je 0x1000a54c
mov ecx, dword [esi]
push 0x1000d268
push str.value
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x1000a54c
cmp byte [ebp + 0x14], 0
je 0x1000a4ef
xor ecx, ecx
push eax
push dword [ebp + 0x18]
inc ecx
mov word [ebp - 4], cx
mov ecx, dword [esi]
push esi
call dword [ecx + 0x190]
jmp 0x1000a4f5
xor eax, eax
mov word [ebp - 4], ax
mov word [ebp - 2], ax
cmp dword [ebp + 8], 0xffffffff
mov edi, str.setsockopt
je 0x1000a525
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10004ac1
test eax, eax
jns 0x1000a525
push edi
push esi
call fcn.1000afaa
pop ecx
pop ecx
cmp dword [ebp - 8], 0xffffffff
je 0x1000a54c
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.10004ac1
test eax, eax
jns 0x1000a54c
push edi
push esi
call fcn.1000afaa
pop ecx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 0x14