Function at 0x1005c4e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf621
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x100fd230]
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 0x1005c52e
cmp eax, 0x17
jne 0x1005c7cf
cmp eax, 2
jne 0x1005c6f1
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 0x1005c551
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
call dword [eax]
mov dword [ebp - 0x1c], eax
push 0x100d971e
push 0x58
call fcn.1008fb1b
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1005c5e1
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 0x1005c58b
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.1005bc30
mov ebx, eax
test ebx, ebx
je 0x1005c5e1
push 0x100d971e
push 0x40
call fcn.1008f7eb
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005c60e
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005c5d6
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.1008f79d
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005c7cf
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 0x1005c84b
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x40
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1005c63b
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.1008f453
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005c150
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 [0x10106344]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1005c849
cmp eax, 0x3e5
je 0x1005c849
cmp byte [ebx + 0x48], 0
je 0x1005c6c0
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x1005c6c0
push eax
call fcn.1008f7ce
add esp, 4
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005c6df
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.1008f79d
add esp, 8
xor bl, bl
jmp 0x1005c84b
cmp eax, 0x17
jne 0x1005c849
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 0x1005c71d
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
push 0x100d971e
push 0x58
call fcn.1008fb1b
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1005c7ad
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 0x1005c757
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.1005bc30
mov ebx, eax
test ebx, ebx
je 0x1005c7ad
push 0x100d971e
push 0x58
call fcn.1008f7eb
add esp, 8
mov dword [ebx + 0x50], eax
test eax, eax
jne 0x1005c7d3
mov ecx, dword [ebx + 0x44]
lea esi, [ebx + 0x20]
test ecx, ecx
je 0x1005c7a2
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.1008f79d
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005c7cf
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 0x1005c84b
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0x58
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1005c800
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.1008f453
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
push dword [esi + 0x58]
call fcn.1005c150
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 0x1005c67f
mov bl, 1
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1005c863
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