Function at 0x1005be20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf595
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x100fd230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1005c12e
cmp dword [ebp + 8], 0
je 0x1005c0c3
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1005bfcb
mov eax, dword [edi + 0x50]
xor ecx, ecx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x6c]
mov dword [ebp + 0x10], edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1005be9f
mov eax, dword [eax]
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [edi + 0x44]
mov eax, dword [eax]
call eax
mov edx, dword [ebp + 0x10]
mov ecx, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x1005bed1
cmp eax, 0x17
je 0x1005bed1
test ecx, ecx
je 0x1005c0ee
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005c0ee
push 4
lea eax, [esi + 0xc]
push eax
push 0x700b
push 0xffff
push dword [edx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x58]
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], ecx
cmp eax, 2
jne 0x1005bf78
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x20
push 0x20
push 0
push dword [ebp - 0x18]
call dword [0x1010634c]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005bf93
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1005bf93
cmp dword [ebp - 0x14], 0x1c
jg 0x1005bf93
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
cmp ecx, 0x1c
jg 0x1005bf99
movups xmm0, xmmword [eax]
movups xmmword [edx + 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edx + 0x6c], xmm0
mov eax, dword [eax + 0x18]
mov dword [edx + 0x74], eax
movups xmm0, xmmword [esi]
movups xmmword [edx + 0x78], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edx + 0x88], xmm0
mov eax, dword [esi + 0x18]
mov dword [edx + 0x90], eax
jmp 0x1005bf99
cmp eax, 0x17
jne 0x1005bf96
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x2c
push 0x2c
jmp 0x1005bf18
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1005c0ee
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
push ecx
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x48]
jmp 0x1005beb3
cmp eax, 1
jne 0x1005c081
mov eax, dword [edi + 0x50]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x44]
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 2
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1005c002
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x20], eax
push 4
lea eax, [esi + 0xc]
mov dword [ebp - 4], 3
push eax
push 0x7010
push 0xffff
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], eax
jne 0x1005c070
mov dword [ebp + 8], 0
test ecx, ecx
je 0x1005c141
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
lea edx, [ebp + 0x10]
push edx
lea edx, [ebp + 0xc]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1005c0ee
mov edx, dword [ecx]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005c0ee
mov dword [ebp + 8], 1
test ecx, ecx
je 0x1005c146
jmp 0x1005c041
mov ecx, dword [ebp + 0xc]
cmp eax, 2
jne 0x1005c092
add dword [esi + 0x28], ecx
adc dword [esi + 0x2c], 0
jmp 0x1005c09e
cmp eax, 3
jne 0x1005c09e
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
mov edx, dword [edi + 0x44]
test edx, edx
je 0x1005c0ee
mov eax, dword [edi + 0x50]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
push ecx
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x1005c0eb
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1005c0ee
mov eax, dword [edi + 0x50]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x14]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp byte [edi + 0x48], 0
je 0x1005c104
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005c104
push eax
call fcn.1008f7ce
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005c123
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 edi
call fcn.1008f79d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.1008c3d0
call fcn.1008c3d0
int3