Function at 0x10076530
Capabilities:
Get socket status
Print debug messages
Receive data
Receive data on socket

Disassembly:
sub esp, 0xab0
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0xaac], eax
mov eax, dword [esp + 0xabc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
mov ebp, dword [esp + 0xabc]
push esi
mov esi, dword [esp + 0xac4]
push edi
push str.IPInterface::receive______n
mov edi, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], eax
call ebx
xor ecx, ecx
cmp dword [edi + 0x1c], ecx
jne 0x10076584
lea eax, [ecx - 0x20]
jmp 0x100765b7
cmp ebp, ecx
jne 0x1007658f
mov eax, 0xffffffd4
jmp 0x100765b7
mov ebp, dword [edi + 0x10]
cmp ebp, ecx
mov edx, dword [esi]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 0xffffffd3
jge 0x100765d4
push str.___IPInterface::receive___n
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xabc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100c59be
add esp, 0xab0
ret 0xc
xor ecx, ecx
mov edx, dword [edi + 0x18]
cmp edx, ecx
je 0x1007661d
mov dword [esp + 0x30], ecx
mov dword [esp + 0x134], ecx
mov eax, edx
mov esi, dword [eax]
mov dword [esp + 0x30], esi
mov eax, dword [eax]
mov dword [esp + 0x134], eax
xor eax, eax
cmp dword [edx], ecx
jbe 0x1007661d
mov ecx, edx
add ecx, 4
mov esi, dword [ecx]
mov dword [esp + eax*4 + 0x34], esi
mov esi, dword [ecx]
mov dword [esp + eax*4 + 0x138], esi
add eax, 1
add ecx, 4
cmp eax, dword [edx]
jb 0x10076602
xor ecx, ecx
mov esi, 1
cmp dword [edi + 0xc], esi
jne 0x1007663a
mov edx, dword [edi + 8]
imul edx, edx, 0x3e8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x10076645
mov eax, dword [edi + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x138]
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push ecx
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x10076677
push str.select___returned_error____n
mov dword [esp + 0x14], 0xffffffd3
sub ebp, esi
call ebx
jmp 0x100766bc
cmp eax, esi
jge 0x1007668e
push str.select___timed_out_n
mov dword [esp + 0x14], 0xffffffdb
sub ebp, esi
call ebx
jmp 0x100766bc
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100766bc
cmp dword [eax], esi
jb 0x100766bc
lea esp, [esp]
mov edx, dword [eax + esi*4]
lea ecx, [esp + 0x30]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x100766c9
mov eax, dword [edi + 0x18]
add esi, 1
cmp esi, dword [eax]
jbe 0x100766a0
test ebp, ebp
jge 0x100765d2
jmp 0x100765ac
mov eax, dword [edi + esi*4 + 0x20]
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + esi*4]
push eax
push edx
lea eax, [esp + 0x2c0]
push str.receiving_on_socket:__d__family:__d..._n
push eax
call fcn.100c8016
add esp, 0x10
lea ecx, [esp + 0x2b8]
push ecx
call ebx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x23c]
push eax
mov eax, dword [edi + 0x18]
push 0
push ecx
mov ecx, dword [eax + esi*4]
push edx
push ecx
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x10076730
push str.recvfrom___returned_error____n
call ebx
mov eax, 0xffffffd1
jmp 0x100765b7
mov edi, dword [esp + 0x2c]
push 0x401
lea edx, [esp + 0x6bc]
push 0
push edx
mov dword [edi], eax
call fcn.100c7d20
mov eax, dword [0x10146e78]
mov esi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x10076766
push 1
call fcn.10070f50
mov dword [0x10146e78], eax
push 2
push 0
push 0
push 0x401
lea ecx, [esp + 0x6c8]
push ecx
push esi
lea edx, [esp + 0x250]
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
test esi, esi
jne 0x100767bb
mov ecx, dword [edi]
lea eax, [esp + 0x6b8]
push eax
push ecx
lea edx, [esp + 0x2c0]
push str.received__d_bytes_from__s_n
push edx
call fcn.100c8016
add esp, 0x10
lea eax, [esp + 0x2b8]
push eax
jmp 0x100767d9
push esi
lea ecx, [esp + 0x2bc]
push str.getnameinfo___failed._returned:__d_n
push ecx
call fcn.100c8016
add esp, 0xc
lea edx, [esp + 0x2b8]
push edx
call ebx
mov edx, dword [esp + 0x20]
test edx, edx
je 0x100767fc
lea eax, [esp + 0x6b8]
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x100767f0
xor eax, eax
jmp 0x100765b7