Function at 0x100b10d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1014bb94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x100b1339
mov ecx, esi
call fcn.10106300
test al, al
je 0x100b1339
test edi, edi
je 0x100b1339
test byte [edi + 4], 1
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x100b114e
mov eax, dword [edi + 8]
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.10106300
test al, al
je 0x100b1339
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x1002
push 0xffff
call fcn.10106460
push eax
call ebx
test eax, eax
jne 0x100b1339
test byte [edi + 4], 2
je 0x100b118b
mov eax, dword [edi + 0xc]
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.10106300
test al, al
je 0x100b1339
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x1001
push 0xffff
call fcn.10106460
push eax
call ebx
test eax, eax
jne 0x100b1339
test byte [edi + 4], 4
je 0x100b11c7
xor eax, eax
mov ecx, esi
cmp dword [edi + 0x10], eax
setne al
mov dword [ebp - 8], eax
call fcn.10106300
test al, al
je 0x100b1339
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 1
push 6
call fcn.10106460
push eax
call ebx
test eax, eax
jne 0x100b1339
test byte [edi + 4], 8
je 0x100b127f
mov ecx, esi
call fcn.10106300
test al, al
je 0x100b1339
push 0x274
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.100e5000
add esp, 0xc
mov ecx, esi
call fcn.10106300
test al, al
je 0x100b1339
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x274
push eax
lea eax, [ebp - 0x27c]
mov ecx, esi
push eax
push 0x2005
push 0xffff
call fcn.10106460
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100b1339
cmp dword [ebp - 0x230], 0x17
jne 0x100b127f
cmp dword [edi + 0x14], 0
mov ecx, 0xa
mov eax, 0x14
cmovne eax, ecx
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.10106300
test al, al
je 0x100b1339
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x17
push 0x29
call fcn.10106460
push eax
call ebx
test eax, eax
jne 0x100b1339
test byte [edi + 4], 0x10
je 0x100b12ba
xor eax, eax
mov ecx, esi
cmp dword [edi + 0x18], eax
setne al
mov dword [ebp - 8], eax
call fcn.10106300
test al, al
je 0x100b1339
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0xfffffffffffffffb
push 0xffff
call fcn.10106460
push eax
call ebx
test eax, eax
jne 0x100b1339
test byte [edi + 4], 0x20
je 0x100b12f1
xor eax, eax
mov ecx, esi
cmp dword [edi + 0x1c], eax
setne al
mov dword [ebp - 8], eax
call fcn.10106300
test al, al
je 0x100b1339
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 4
push 0xffff
call fcn.10106460
push eax
call ebx
test eax, eax
jne 0x100b1339
test byte [edi + 4], 0x40
je 0x100b1323
mov eax, dword [edi + 0x20]
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.10106300
test al, al
je 0x100b1339
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 8
push 0xffff
call fcn.10106460
push eax
call ebx
test eax, eax
jne 0x100b1339
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e3d0f
mov esp, ebp
pop ebp
ret