Function at 0x6dc08b89
Capabilities:
Get socket status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov ecx, dword [0x6dc3a848]
mov esi, dword [ebp + 8]
cmp ecx, 0x6dc3a848
je 0x6dc08bb1
test byte [ecx + 0x1c], 0x80
jne 0x6dc1dc58
mov ebx, 0x6dc08d00
mov eax, dword [esi + 8]
and dword [ebp - 0x110], 0
test eax, eax
je 0x6dc08bd4
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x6dc0f535
cmp dword [ebp - 0x110], 0
je 0x6dc1dc83
lea eax, [esi + 0xb0]
mov edx, 0x7530
cmp dword [eax], edx
ja 0x6dc1dcab
mov eax, dword [eax]
push edi
xor edx, edx
mov edi, 0x3e8
div edi
lea edi, [esi + 0xe0]
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xa0]
mov dword [ebp - 8], edx
cmp eax, 0x5c0
jb 0x6dc1dcb8
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x6dc0ecda
cmp dword [ebp - 0x110], 1
jne 0x6dc12bf4
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x6dc12bda
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x6dc12c05
lea ecx, [ebp - 0x110]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x6dc12c05
mov eax, dword [esi + 8]
mov dword [ebp + 8], 2
mov dword [esi + 0x98], eax
lea eax, [esi + 0x90]
push eax
lea eax, [esi + 0x70]
push eax
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0xa0]
mov dword [ebp - 4], ebx
push edi
push dword [ebp + 8]
push dword [esi + 0x98]
call sym.DNSAPI.dll_Socket_RecvFrom
cmp eax, 0xffffffff
je 0x6dc1dcfb
mov word [esi + 0xde], ax
rol word [edi], 8
rol word [edi + 4], 8
rol word [edi + 6], 8
rol word [edi + 8], 8
rol word [edi + 0xa], 8
push ebx
push ebx
push esi
call fcn.6dc0a836
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
jl 0x6dc1dce1
mov eax, 0x5b4
jmp 0x6dc08cf9
xor eax, eax
cmp eax, dword [ebp - 0x110]
jae 0x6dc0f557
cmp dword [ebp + eax*4 - 0x10c], edx
je 0x6dc0f551
inc eax
cmp eax, dword [ebp - 0x110]
jb 0x6dc0f53f
cmp eax, dword [ebp - 0x110]
jne 0x6dc08bdf
cmp dword [ebp - 0x110], 0x40
jae 0x6dc08bdf
mov dword [ebp + eax*4 - 0x10c], edx
inc dword [ebp - 0x110]
jmp 0x6dc08bdf
lea ecx, [ebp - 0x110]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x6dc08c64
jmp 0x6dc1dcec
cmp dword [ebp - 0x110], ebx
je 0x6dc0ece0
jmp 0x6dc08c59
mov eax, dword [ebp - 0x10c]
jmp 0x6dc08c8e
push dword [esi + 0xb0]
mov ebx, 0x6dc08d00
push dword [esi + 0xa0]
push esi
push ebx
push 0x25
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.6dc28e84
mov ecx, dword [0x6dc3a848]
jmp 0x6dc08bb6
cmp ecx, 0x6dc3a848
je 0x6dc1dca3
test dword [ecx + 0x1c], 0x2000000
je 0x6dc1dca3
push esi
push ebx
push 0x26
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.6dc242f2
push 0x57
pop eax
jmp 0x6dc08cfa
mov dword [eax], edx
mov ecx, dword [0x6dc3a848]
jmp 0x6dc08bff
cmp ecx, 0x6dc3a848
je 0x6dc1dcd9
test dword [ecx + 0x1c], 0x2000000
je 0x6dc1dcd9
push eax
push esi
push ebx
push 0x27
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.6dc28ddf
push 0x57
pop eax
jmp 0x6dc08cf9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x6dc08cf9
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], 0x17
jmp 0x6dc08c8e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
mov edi, eax
push edi
push esi
call fcn.6dc0a836
mov ebx, 0x2746
cmp edi, ebx
jne 0x6dc1dd40
mov eax, dword [0x6dc3a848]
cmp eax, 0x6dc3a848
je 0x6dc1dd39
test byte [eax + 0x1c], 0x80
je 0x6dc1dd39
push esi
push 0x6dc08d00
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.6dc242f2
mov eax, ebx
jmp 0x6dc08cf9
cmp edi, 0x2738
jne 0x6dc1dd54
mov eax, 0x5c0
mov word [esi + 0xde], ax
mov eax, edi
jmp 0x6dc08cf9