Function at 0x6dc09b13
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], 1
mov eax, dword [0x6dc3a848]
mov ebx, 0x6dc3a848
mov edi, 0x6dc098c4
cmp eax, ebx
je 0x6dc09b46
test byte [eax + 0x1c], 8
jne 0x6dc1ef5c
mov esi, dword [ebp + 0xc]
dec esi
neg esi
sbb esi, esi
and esi, 0xb
add esi, 6
push dword [ebp + 0x18]
push 0
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x6dc1ef80
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x3005
push 0xffff
push dword [ebp - 8]
call esi
cmp eax, 0xffffffff
je 0x6dc1effa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.6dc09c06
mov dword [ebp - 4], eax
test eax, eax
jne 0x6dc1f023
cmp dword [ebp + 0xc], 2
jne 0x6dc09be4
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
dec eax
dec eax
neg eax
sbb eax, eax
push 0x13
and eax, 0x29
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], 1
call esi
cmp eax, 0xffffffff
je 0x6dc1f090
mov eax, dword [0x6dc3a848]
cmp eax, ebx
je 0x6dc09bf7
test byte [eax + 0x1c], 8
jne 0x6dc1f0c0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14
push dword [ebp + 0x18]
movzx ecx, word [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc2be41
jmp 0x6dc09b46
and dword [ebp - 8], 0
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x6dc3a848]
cmp eax, ebx
je 0x6dc1efb5
test byte [eax + 0x1c], 8
je 0x6dc1efb5
push dword [ebp - 4]
push dword [ebp + 0xc]
push edi
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc28ddf
mov eax, dword [0x6dc3a848]
cmp dword [ebp - 4], 0x276d
jne 0x6dc1f028
cmp dword [ebp - 0xc], 0
jne 0x6dc1f028
cmp eax, ebx
je 0x6dc1efdf
test byte [eax + 0x1c], 8
je 0x6dc1efdf
push dword [ebp + 0xc]
push edi
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc242f2
push 0
mov dword [ebp - 0xc], 1
call sym.DNSAPI.dll_Socket_InitWinsock
mov dword [ebp - 4], eax
test eax, eax
je 0x6dc09b54
jmp 0x6dc1f023
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x6dc3a848]
cmp eax, ebx
je 0x6dc1f064
test byte [eax + 0x1c], 8
je 0x6dc1f028
push dword [ebp - 4]
push edi
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc242f2
mov eax, dword [0x6dc3a848]
cmp eax, ebx
je 0x6dc1f064
test byte [eax + 0x1c], 8
je 0x6dc1f064
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [ebp + 0x10]
call fcn.6dc3156a
push eax
push dword [ebp + 0xc]
mov eax, dword [0x6dc3a848]
push dword [ebp + 8]
push dword [ebp - 4]
push edi
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc2bd9b
cmp dword [ebp - 8], 0
je 0x6dc1f073
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 4], 0
jne 0x6dc1f080
mov dword [ebp - 4], 0x267b
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x6dc09bfa
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x6dc3a848]
cmp eax, ebx
je 0x6dc1f064
test byte [eax + 0x1c], 8
je 0x6dc1f028
push dword [ebp - 4]
push 2
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc28ddf
jmp 0x6dc1f023
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [ebp + 0x10]
call fcn.6dc3156a
push eax
push dword [ebp + 0xc]
mov eax, dword [0x6dc3a848]
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc2bd9b
jmp 0x6dc09bf7