Function at 0x1005a780
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d0e61
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x100ff230]
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 0x1005a7ce
cmp eax, 0x17
jne 0x1005aa6f
cmp eax, 2
jne 0x1005a991
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 0x1005a7f1
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
call dword [eax]
mov dword [ebp - 0x1c], eax
push 0x100db776
push 0x58
call fcn.10091cf8
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1005a881
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 0x1005a82b
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.10059ed0
mov ebx, eax
test ebx, ebx
je 0x1005a881
push 0x100db776
push 0x40
call fcn.100919c8
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005a8ae
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005a876
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.1009197a
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005aa6f
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 0x1005aaeb
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x40
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005a8db
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.10091630
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005a3f0
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 [0x101073a8]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1005aae9
cmp eax, 0x3e5
je 0x1005aae9
cmp byte [ebx + 0x48], 0
je 0x1005a960
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x1005a960
push eax
call fcn.100919ab
add esp, 4
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005a97f
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.1009197a
add esp, 8
xor bl, bl
jmp 0x1005aaeb
cmp eax, 0x17
jne 0x1005aae9
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 0x1005a9bd
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
push 0x100db776
push 0x58
call fcn.10091cf8
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1005aa4d
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 0x1005a9f7
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.10059ed0
mov ebx, eax
test ebx, ebx
je 0x1005aa4d
push 0x100db776
push 0x58
call fcn.100919c8
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005aa73
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005aa42
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.1009197a
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005aa6f
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 0x1005aaeb
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x58
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005aaa0
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.10091630
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005a3f0
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 0x1005a91f
mov bl, 1
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1005ab03
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