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

Disassembly:
sub esp, 0xab0
mov eax, dword [0x10027400]
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 + 0x24], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
call ebx
xor ecx, ecx
cmp dword [edi + 0x18], ecx
jne 0x10004346
mov eax, 0xffffffe0
jmp 0x10004379
cmp ebp, ecx
jne 0x10004351
mov eax, 0xffffffd4
jmp 0x10004379
mov ebp, dword [edi + 0xc]
cmp ebp, ecx
mov edx, dword [esi]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 0xffffffd3
jge 0x10004396
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.1000e6bf
add esp, 0xab0
ret 0xc
xor ecx, ecx
mov edx, dword [edi + 0x14]
cmp edx, ecx
je 0x100043df
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 0x100043df
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 0x100043c4
xor ecx, ecx
mov edx, dword [edi + 8]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x138]
push edx
push ecx
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x40], ecx
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x1000441d
push str.select___returned_error____n
mov dword [esp + 0x14], 0xffffffd3
sub ebp, 1
call ebx
jmp 0x10004462
cmp eax, 1
jge 0x10004436
push str.select___timed_out_n
mov dword [esp + 0x14], 0xffffffdb
sub ebp, 1
call ebx
jmp 0x10004462
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10004462
mov esi, 1
cmp dword [eax], esi
jb 0x10004462
mov edx, dword [eax + esi*4]
lea ecx, [esp + 0x30]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x1000446f
mov eax, dword [edi + 0x14]
add esi, 1
cmp esi, dword [eax]
jbe 0x10004446
test ebp, ebp
jge 0x10004394
jmp 0x1000436e
mov eax, dword [edi + esi*4 + 0x1c]
mov ecx, dword [edi + 0x14]
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.1000e4d5
add esp, 0x10
lea ecx, [esp + 0x2b8]
push ecx
call ebx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x23c]
push eax
mov eax, dword [edi + 0x14]
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 0x100044d6
push str.recvfrom___returned_error____n
call ebx
mov eax, 0xffffffd1
jmp 0x10004379
mov edi, dword [esp + 0x24]
push 0x401
lea edx, [esp + 0x6bc]
push 0
push edx
mov dword [edi], eax
call fcn.1000e570
mov eax, dword [0x10028718]
mov esi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x1000450c
push 1
call fcn.10003720
mov dword [0x10028718], 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 0x10004561
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.1000e4d5
add esp, 0x10
lea eax, [esp + 0x2b8]
push eax
jmp 0x1000457f
push esi
lea ecx, [esp + 0x2bc]
push str.getnameinfo___failed._returned:__d_n
push ecx
call fcn.1000e4d5
add esp, 0xc
lea edx, [esp + 0x2b8]
push edx
call ebx
mov edx, dword [esp + 0x18]
test edx, edx
je 0x100045a0
lea eax, [esp + 0x6b8]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10004594
xor eax, eax
jmp 0x10004379