Function at 0x6dc09c06
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6dc391d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x30], edi
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc09c37
test byte [eax + 0x1c], 8
jne 0x6dc1edbe
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x24]
push eax
push 0xfffffffffffffffb
mov ebx, 0xffff
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], 1
call esi
test edi, edi
jne 0x6dc1ede1
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x20], ax
mov dword [ebp - 0x2c], 0x10
cmp eax, 0x17
je 0x6dc15705
mov ax, word [ebp + 0x14]
test ax, ax
ja 0x6dc0fc31
cmp word [ebp - 0x1e], 0
movzx eax, word [ebp - 0x1e]
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
jne 0x6dc0fc3a
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x6dc1eebf
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc09cd0
test byte [eax + 0x1c], 8
jne 0x6dc1ee7b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6dc02eaf
leave
ret 0x10
mov word [ebp - 0x1e], ax
jmp 0x6dc09c8d
mov edi, dword [sym.imp.WS2_32.dll_bind]
call edi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x6dc09cba
jmp 0x6dc1edf5
mov dword [ebp - 0x2c], 0x1c
jmp 0x6dc09c80
movzx ecx, word [ebp + 0x14]
push ecx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x6dc098c4
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc2be04
jmp 0x6dc09c37
push edi
push 0x1c
lea eax, [ebp - 0x20]
push eax
call fcn.6dc314bf
mov dword [ebp - 0x2c], eax
jmp 0x6dc09c80
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov ecx, dword [0x6dc3a848]
cmp ecx, 0x6dc3a848
je 0x6dc1ee3b
test byte [ecx + 0x1c], 8
je 0x6dc1ee3b
push eax
push dword [ebp - 0x30]
call fcn.6dc3156a
push eax
movzx eax, word [ebp - 0x34]
push eax
push dword [ebp + 0xc]
mov eax, dword [0x6dc3a848]
push dword [ebp + 8]
push 0x6dc098c4
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc2bd9b
cmp dword [ebp - 0x24], 0
je 0x6dc1eeb3
and dword [ebp - 0x24], 0
push 4
lea eax, [ebp - 0x24]
push eax
push 0xfffffffffffffffb
push ebx
push dword [ebp + 8]
call esi
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], 1
call esi
push dword [ebp - 0x2c]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
jmp 0x6dc0fc40
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [ebp - 0x30]
call fcn.6dc3156a
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x6dc098c4
push 0x39
mov eax, dword [0x6dc3a848]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc2be83
jmp 0x6dc09cd0
mov dword [ebp - 0x28], 0x267b
jmp 0x6dc09cd0
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc09cd0
test byte [eax + 0x1c], 8
je 0x6dc09cd0
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.6dc3156a
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x6dc098c4
push 0x36
jmp 0x6dc1ee9e