Function at 0x1005ac70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1541
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x10100230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x58]
cmp eax, 2
je 0x1005acbe
cmp eax, 0x17
jne 0x1005af5f
cmp eax, 2
jne 0x1005ae81
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1005ace1
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
call dword [eax]
mov dword [ebp - 0x1c], eax
push 0x100dc776
push 0x58
call fcn.100922aa
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1005ad71
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005ad1b
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0
push 0
push 0
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.1005a3c0
mov ebx, eax
test ebx, ebx
je 0x1005ad71
push 0x100dc776
push 0x40
call fcn.10091f7a
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005ad9e
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005ad66
mov eax, dword [ecx]
cmp ecx, esi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [esi + 0x24], 0
push 0x58
push ebx
call fcn.10091f2c
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005af5f
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x1c], 0
xor bl, bl
jmp 0x1005afdb
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x40
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005adcb
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x1c], 0
push 0x98
call fcn.10091be2
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005a8e0
push 4
add esi, 0xc
mov edi, eax
push esi
push 0x700b
push 0xffff
mov dword [ebx + 0x14], edi
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea eax, [ebx + 0x54]
push eax
push 0x20
push 0x20
push 0
push dword [ebx + 0x50]
push dword [edi + 0xc]
push dword [esi]
call dword [0x101083c0]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1005afd9
cmp eax, 0x3e5
je 0x1005afd9
cmp byte [ebx + 0x48], 0
je 0x1005ae50
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x1005ae50
push eax
call fcn.10091f5d
add esp, 4
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005ae6f
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push ebx
call fcn.10091f2c
add esp, 8
xor bl, bl
jmp 0x1005afdb
cmp eax, 0x17
jne 0x1005afd9
lea eax, [ebp - 0x68]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1005aead
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
push 0x100dc776
push 0x58
call fcn.100922aa
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1005af3d
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005aee7
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0
push 0
push 0
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.1005a3c0
mov ebx, eax
test ebx, ebx
je 0x1005af3d
push 0x100dc776
push 0x58
call fcn.10091f7a
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005af63
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005af32
mov eax, dword [ecx]
cmp ecx, esi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [esi + 0x24], 0
push 0x58
push ebx
call fcn.10091f2c
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005af5f
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x44], 0
xor bl, bl
jmp 0x1005afdb
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x58
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005af90
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x44], 0
push 0x98
call fcn.10091be2
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005a8e0
push 4
add esi, 0xc
mov edi, eax
push esi
push 0x700b
push 0xffff
mov dword [ebx + 0x14], edi
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea eax, [ebx + 0x54]
push eax
push 0x2c
push 0x2c
jmp 0x1005ae0f
mov bl, 1
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1005aff3
mov esi, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28