Function at 0x100ac920
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 0x100acb89
mov ecx, esi
call fcn.100a31a0
test al, al
je 0x100acb89
test edi, edi
je 0x100acb89
test byte [edi + 4], 1
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x100ac99e
mov eax, dword [edi + 8]
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.100a31a0
test al, al
je 0x100acb89
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x1002
push 0xffff
call fcn.100a3250
push eax
call ebx
test eax, eax
jne 0x100acb89
test byte [edi + 4], 2
je 0x100ac9db
mov eax, dword [edi + 0xc]
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.100a31a0
test al, al
je 0x100acb89
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x1001
push 0xffff
call fcn.100a3250
push eax
call ebx
test eax, eax
jne 0x100acb89
test byte [edi + 4], 4
je 0x100aca17
xor eax, eax
mov ecx, esi
cmp dword [edi + 0x10], eax
setne al
mov dword [ebp - 8], eax
call fcn.100a31a0
test al, al
je 0x100acb89
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 1
push 6
call fcn.100a3250
push eax
call ebx
test eax, eax
jne 0x100acb89
test byte [edi + 4], 8
je 0x100acacf
mov ecx, esi
call fcn.100a31a0
test al, al
je 0x100acb89
push 0x274
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.100e5000
add esp, 0xc
mov ecx, esi
call fcn.100a31a0
test al, al
je 0x100acb89
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.100a3250
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100acb89
cmp dword [ebp - 0x230], 0x17
jne 0x100acacf
cmp dword [edi + 0x14], 0
mov ecx, 0xa
mov eax, 0x14
cmovne eax, ecx
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.100a31a0
test al, al
je 0x100acb89
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0x17
push 0x29
call fcn.100a3250
push eax
call ebx
test eax, eax
jne 0x100acb89
test byte [edi + 4], 0x10
je 0x100acb0a
xor eax, eax
mov ecx, esi
cmp dword [edi + 0x18], eax
setne al
mov dword [ebp - 8], eax
call fcn.100a31a0
test al, al
je 0x100acb89
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0xfffffffffffffffb
push 0xffff
call fcn.100a3250
push eax
call ebx
test eax, eax
jne 0x100acb89
test byte [edi + 4], 0x20
je 0x100acb41
xor eax, eax
mov ecx, esi
cmp dword [edi + 0x1c], eax
setne al
mov dword [ebp - 8], eax
call fcn.100a31a0
test al, al
je 0x100acb89
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 4
push 0xffff
call fcn.100a3250
push eax
call ebx
test eax, eax
jne 0x100acb89
test byte [edi + 4], 0x40
je 0x100acb73
mov eax, dword [edi + 0x20]
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.100a31a0
test al, al
je 0x100acb89
push 4
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 8
push 0xffff
call fcn.100a3250
push eax
call ebx
test eax, eax
jne 0x100acb89
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