Function at 0x5df01daa
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x1c4]
push eax
mov dword [ebp - 8], eax
call ebx
mov esi, dword [ebp + 0xc]
push 0
push esi
push edi
call fcn.5df01b6e
push esi
push edi
call fcn.5df017cb
test byte [esi + 0x20], 0x80
je 0x5df01de9
push esi
push edi
call fcn.5df01b3c
test byte [esi + 0x20], 0x40
je 0x5df01df6
push esi
push edi
call fcn.5df019d7
test byte [esi + 0x20], 0x20
je 0x5df01e03
push esi
push edi
call fcn.5df01a4a
mov eax, dword [esi + 0x10]
mov edi, 0x5df0b560
cmp eax, 0xffffffff
je 0x5df01ea1
xor ecx, ecx
inc ecx
mov word [ebp - 4], cx
xor ecx, ecx
push 4
mov word [ebp - 2], cx
lea ecx, [ebp - 4]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push edi
call ebx
push 0x30
call fcn.5df0154e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x5df01e68
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x10]
push dword [ebp + 8]
call fcn.5df0157e
cmp eax, 0xffffffff
jne 0x5df01e8d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x5df01e8d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [ebx], ecx
mov dword [eax + 0x24], ebx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x1c], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
and dword [ebx + 4], 0
push edi
mov dword [ebx + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [esi + 0x10], 0xffffffff
cmp dword [esi + 0x18], 0xffffffff
jne 0x5df01e9d
and dword [esi + 0x20], 0xfffffff3
jmp 0x5df01ea1
and dword [esi + 0x20], 0xfffffffb
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x5df01f32
xor ecx, ecx
inc ecx
mov word [ebp - 4], cx
xor ecx, ecx
push 4
mov word [ebp - 2], cx
lea ecx, [ebp - 4]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x30
call fcn.5df0154e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x5df01f05
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x18]
push dword [ebp + 8]
call fcn.5df0157e
cmp eax, 0xffffffff
jne 0x5df01f2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x5df01f2a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [ebx], ecx
mov dword [eax + 0x24], ebx
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x1c], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
and dword [ebx + 4], 0
push edi
mov dword [ebx + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [esi + 0x18], 0xffffffff
and dword [esi + 0x20], 0xfffffff7
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x40]
je 0x5df01f47
push eax
call fcn.5df01525
mov eax, dword [esi + 0x40]
pop ecx
mov dword [esi + 0x3c], eax
lea ebx, [esi + 0x28]
cmp dword [ebx], ebx
je 0x5df01f97
mov eax, dword [ebp + 8]
add eax, 0x120
mov dword [ebp + 8], eax
mov edi, dword [ebx]
sub edi, 0x74
lea eax, [edi + 0x74]
push eax
call fcn.5df039c5
push dword [ebp + 8]
mov dword [edi + 0xac], 0x88770168
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
mov dword [edi + 0xa8], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.5df04588
cmp dword [ebx], ebx
jne 0x5df01f59
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc