Function at 0x6dc15d36
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x98]
mov dword [ebp - 4], edi
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc15d66
test byte [eax + 0x1c], 0x80
jne 0x6dc1dd5b
xor ecx, ecx
cmp edi, ecx
je 0x6dc15f0d
cmp edi, 0xffffffff
je 0x6dc15f0d
mov eax, dword [esi + 0xb0]
xor edx, edx
mov ebx, 0x3e8
div ebx
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], 1
imul edx, edx, 0x3e8
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0xc], edx
cmp eax, ecx
jne 0x6dc1dd88
lea ebx, [esi + 0xde]
mov dword [ebp + 8], 2
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
lea eax, [ebp - 0x114]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x6dc1ddd5
push 0
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc15e03
test dword [eax + 0x1c], 0x200
jne 0x6dc1dd99
test edi, edi
je 0x6dc1ddf7
cmp edi, 0xffffffff
je 0x6dc1de85
sub dword [ebp + 8], edi
add ebx, edi
cmp dword [ebp + 8], 0
jne 0x6dc15e74
lea eax, [esi + 0xe0]
cmp ebx, eax
ja 0x6dc15e9a
lea edi, [esi + 0xde]
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov word [edi], ax
cmp ax, 0xc
jb 0x6dc15eff
movzx edi, ax
mov dword [ebp + 8], edi
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc15e68
test dword [eax + 0x1c], 0x200
jne 0x6dc1ddb9
cmp edi, dword [esi + 0xa0]
ja 0x6dc15eff
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x114]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x6dc1ddd5
mov edi, dword [ebp - 4]
jmp 0x6dc15ddb
lea eax, [esi + 0x70]
push eax
mov dword [eax], 0x20
lea eax, [esi + 0x50]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x6dc1de85
xor ecx, ecx
lea eax, [esi + 0xe0]
mov dword [esi + 0x90], ecx
mov byte [esi + 0xcc], 1
mov dword [esi + 0xd4], ecx
rol word [eax], 8
rol word [eax + 4], 8
rol word [eax + 6], 8
rol word [eax + 8], 8
rol word [eax + 0xa], 8
push 1
push ecx
push esi
call fcn.6dc0a836
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
add esi, 0x10
push esi
call fcn.6dc3156a
jmp 0x6dc1de6c
push 0x57
pop eax
jmp 0x6dc15ef8
push dword [esi + 0xb0]
movzx ecx, word [esi + 0xdc]
push ecx
push dword [esi + 0xa0]
push edi
push esi
push 0x6dc08d00
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc2be41
jmp 0x6dc15d66
mov ebx, eax
movzx eax, word [esi + 0xdc]
mov dword [ebp + 8], eax
jmp 0x6dc15dbf
push dword [ebp - 4]
push edi
push 0x6dc08d00
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc28ddf
mov eax, dword [0x6dc3a848]
jmp 0x6dc15e03
push esi
push dword [ebp - 4]
push edi
push 0x6dc08d00
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc28e84
jmp 0x6dc15e68
jge 0x6dc1dde2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x6dc15ef8
push 1
mov edi, 0x5b4
push edi
push esi
call fcn.6dc0a836
mov eax, edi
jmp 0x6dc15ef8
cmp eax, 0x6dc3a848
je 0x6dc1de21
test dword [eax + 0x1c], 0x200
je 0x6dc1de21
push dword [ebp - 4]
push 0x6dc08d00
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc242f2
mov eax, dword [0x6dc3a848]
lea ecx, [esi + 0xde]
cmp word [ecx], 0
jne 0x6dc1de3a
cmp ebx, ecx
jne 0x6dc1de3a
mov dword [ebp - 8], 0x251f
jmp 0x6dc1de7d
cmp eax, 0x6dc3a848
je 0x6dc15eff
test dword [eax + 0x1c], 0x2000000
je 0x6dc15eff
push dword [ebp + 8]
push 0x6dc08d00
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc242f2
jmp 0x6dc15eff
mov dword [ebp - 8], 0x251e
cmp dword [ebp - 8], 0
je 0x6dc1df3b
mov eax, dword [ebp - 8]
jmp 0x6dc15ef8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea eax, [esi + 0xde]
mov dword [ebp - 8], ecx
cmp ebx, eax
jne 0x6dc1dedf
cmp ecx, 0x274a
je 0x6dc1deb2
cmp ecx, 0x2745
je 0x6dc1deb2
cmp ecx, 0x2746
jne 0x6dc1dedf
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc1de73
test dword [eax + 0x1c], 0x200
je 0x6dc1de73
push dword [ebp - 4]
push ecx
push 0x6dc08d00
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc28ddf
jmp 0x6dc1de73
mov eax, dword [0x6dc3a848]
mov edi, 0xde
cmp eax, 0x6dc3a848
je 0x6dc1df16
test dword [eax + 0x1c], 0x2000000
je 0x6dc1df16
push ecx
push dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
sub ecx, edi
push ecx
push 0x6dc08d00
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc28e84
push dword [ebp - 8]
sub ebx, esi
push dword [ebp + 8]
sub ebx, edi
push ebx
push dword [ebp - 4]
push 0x6dc1df78
push 0x6dc1df48
call fcn.6dc35904
add esp, 0x18
jmp 0x6dc1de73
mov eax, 0x251e
jmp 0x6dc15ef8