Function at 0x1005edf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5825
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x10105230]
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 0x1005f0fe
cmp dword [ebp + 8], 0
je 0x1005f093
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1005ef9b
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 0x1005ee6f
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 0x1005eea1
cmp eax, 0x17
je 0x1005eea1
test ecx, ecx
je 0x1005f0be
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005f0be
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 0x1005ef48
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 [0x1010eef8]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005ef63
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1005ef63
cmp dword [ebp - 0x14], 0x1c
jg 0x1005ef63
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
cmp ecx, 0x1c
jg 0x1005ef69
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 0x1005ef69
cmp eax, 0x17
jne 0x1005ef66
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 0x1005eee8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1005f0be
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 0x1005ee83
cmp eax, 1
jne 0x1005f051
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 0x1005efd2
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 0x1005f040
mov dword [ebp + 8], 0
test ecx, ecx
je 0x1005f111
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 0x1005f0be
mov edx, dword [ecx]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005f0be
mov dword [ebp + 8], 1
test ecx, ecx
je 0x1005f116
jmp 0x1005f011
mov ecx, dword [ebp + 0xc]
cmp eax, 2
jne 0x1005f062
add dword [esi + 0x28], ecx
adc dword [esi + 0x2c], 0
jmp 0x1005f06e
cmp eax, 3
jne 0x1005f06e
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
mov edx, dword [edi + 0x44]
test edx, edx
je 0x1005f0be
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 0x1005f0bb
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1005f0be
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 0x1005f0d4
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005f0d4
push eax
call fcn.100951ac
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005f0f3
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.1009517b
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.10091db0
call fcn.10091db0
int3