Function at 0x1005a5b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d14b5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x10100230]
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 0x1005a8be
cmp dword [ebp + 8], 0
je 0x1005a853
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1005a75b
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 0x1005a62f
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 0x1005a661
cmp eax, 0x17
je 0x1005a661
test ecx, ecx
je 0x1005a87e
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005a87e
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 0x1005a708
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 [0x101083c8]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005a723
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1005a723
cmp dword [ebp - 0x14], 0x1c
jg 0x1005a723
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
cmp ecx, 0x1c
jg 0x1005a729
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 0x1005a729
cmp eax, 0x17
jne 0x1005a726
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 0x1005a6a8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1005a87e
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 0x1005a643
cmp eax, 1
jne 0x1005a811
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 0x1005a792
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 0x1005a800
mov dword [ebp + 8], 0
test ecx, ecx
je 0x1005a8d1
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 0x1005a87e
mov edx, dword [ecx]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1005a87e
mov dword [ebp + 8], 1
test ecx, ecx
je 0x1005a8d6
jmp 0x1005a7d1
mov ecx, dword [ebp + 0xc]
cmp eax, 2
jne 0x1005a822
add dword [esi + 0x28], ecx
adc dword [esi + 0x2c], 0
jmp 0x1005a82e
cmp eax, 3
jne 0x1005a82e
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
mov edx, dword [edi + 0x44]
test edx, edx
je 0x1005a87e
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 0x1005a87b
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1005a87e
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 0x1005a894
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005a894
push eax
call fcn.10091f5d
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005a8b3
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.10091f2c
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.1008eb10
call fcn.1008eb10
int3