Function at 0x5df0218b
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5df0b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x28], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x1c4]
xor ebx, ebx
inc ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0xffffffff
je 0x5df021df
push dword [ebp + 0xc]
push edi
call fcn.5df01851
mov esi, eax
test esi, esi
jne 0x5df023eb
push dword [ebp - 0x1c]
push edi
call fcn.5df018ab
mov esi, eax
test esi, esi
je 0x5df02213
test byte [esi + 0x20], 5
je 0x5df022c2
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x5df023eb
push esi
push edi
mov dword [esi + 0xc], eax
call fcn.5df02033
jmp 0x5df023eb
cmp dword [ebp - 0x1c], 0
je 0x5df02285
push dword [ebp - 0x1c]
push edi
call fcn.5df01ac7
mov esi, eax
test esi, esi
je 0x5df02285
mov eax, dword [esi + 0x20]
and eax, 4
or eax, ebx
test al, al
jne 0x5df023eb
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x5df02250
cmp dword [esi + 0xc], 0xffffffff
jne 0x5df02250
push esi
push edi
mov dword [esi + 0xc], eax
call fcn.5df02033
test byte [esi + 0x20], 0x20
jne 0x5df0225d
push esi
push edi
call fcn.5df02095
mov eax, dword [esi + 0x18]
or dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
test al, 8
je 0x5df02273
or eax, 0x14
jmp 0x5df02276
or eax, 0x11
push esi
push edi
mov dword [esi + 0x20], eax
call fcn.5df01b3c
jmp 0x5df023eb
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.5df0190e
mov esi, eax
test esi, esi
je 0x5df023eb
cmp dword [ebp + 0xc], 0xffffffff
je 0x5df022a8
push esi
push edi
call fcn.5df02033
cmp dword [ebp - 0x1c], 0
je 0x5df022b5
push esi
push edi
call fcn.5df02095
lea eax, [esi + 8]
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
push eax
lea ecx, [ebp - 0x20]
push ecx
push eax
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.5df0809b
test eax, eax
jne 0x5df023b5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.5df04c2e
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 8
push 0xffff
push dword [ebp - 0x18]
call ebx
cmp eax, 0xffffffff
jne 0x5df0232a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 1
push 6
push dword [ebp - 0x18]
call ebx
cmp eax, 0xffffffff
jne 0x5df02347
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
or dword [esi + 0x20], 1
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x30]
push eax
push 0x8004667e
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x5df02371
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
push 1
push esi
push edi
call fcn.5df01b6e
push 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5df023df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
cmp eax, 0x2748
je 0x5df023d9
cmp eax, 0x2740
je 0x5df023d9
cmp eax, 0x271d
je 0x5df023d9
cmp eax, 0x2733
je 0x5df023eb
xor ebx, ebx
inc ebx
and dword [esi + 0x20], 0xfffffffe
cmp dword [ebp - 0x28], 0
je 0x5df023ce
push ebx
push esi
push edi
call fcn.5df01daa
push esi
push edi
call fcn.5df01fe6
push esi
push edi
call fcn.5df01fae
xor esi, esi
jmp 0x5df023eb
or dword [esi + 0x20], 2
jmp 0x5df023eb
mov eax, dword [esi + 0x20]
and eax, 0xfffffffe
or eax, 4
mov dword [esi + 0x20], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.5df099e0
leave
ret 0xc