Function at 0x1005f4b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d58b1
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x10105230]
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 0x1005f4fe
cmp eax, 0x17
jne 0x1005f79f
cmp eax, 2
jne 0x1005f6c1
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 0x1005f521
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
call dword [eax]
mov dword [ebp - 0x1c], eax
push 0x100e074e
push 0x58
call fcn.100954f9
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1005f5b1
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 0x1005f55b
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.1005ec00
mov ebx, eax
test ebx, ebx
je 0x1005f5b1
push 0x100e074e
push 0x40
call fcn.100951c9
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005f5de
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005f5a6
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.1009517b
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005f79f
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 0x1005f81b
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x40
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005f60b
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.10094e31
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005f120
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 [0x1010eef0]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1005f819
cmp eax, 0x3e5
je 0x1005f819
cmp byte [ebx + 0x48], 0
je 0x1005f690
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x1005f690
push eax
call fcn.100951ac
add esp, 4
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005f6af
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.1009517b
add esp, 8
xor bl, bl
jmp 0x1005f81b
cmp eax, 0x17
jne 0x1005f819
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 0x1005f6ed
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
push 0x100e074e
push 0x58
call fcn.100954f9
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1005f77d
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 0x1005f727
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.1005ec00
mov ebx, eax
test ebx, ebx
je 0x1005f77d
push 0x100e074e
push 0x58
call fcn.100951c9
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005f7a3
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005f772
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.1009517b
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005f79f
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 0x1005f81b
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x58
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005f7d0
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.10094e31
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005f120
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 0x1005f64f
mov bl, 1
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1005f833
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