Function at 0x4bc5e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x154], 0
test edi, edi
je 0x4bca77
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x4bc9c8
mov ecx, edx
xor ecx, eax
cmp ecx, 0x12345678
jne 0x4bc9c8
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x4bc9fa
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x28]
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x4bc8d1
mov ecx, 0x1c
lea edx, [tv.tv_sec]
call dbg.read_all
cmp eax, 0xffffffff
je 0x4bc8fc
cmp eax, 0xfffffffe
je 0x4bc915
lea eax, [tv.tv_sec]
mov dword [esp], eax
call dbg.ConvertHeaderBytes
mov eax, dword [tv.tv_sec]
cmp eax, 1
jne 0x4bc95f
mov edi, dword [tv.tv_usec]
mov dword [esp], edi
call sym._malloc
test eax, eax
mov esi, eax
je 0x4bc998
mov eax, dword [ebx + 8]
mov ecx, edi
mov edx, esi
call dbg.read_all
test eax, eax
js 0x4bc9a7
mov eax, dword [tv.tv_usec]
mov dword [ebp - 0x150], esi
add eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call dbg.get_uint32
mov dword [ebp - 0x128], eax
mov eax, dword [tv.tv_usec]
add eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call dbg.get_uint32
mov dword [ebp - 0x124], eax
mov eax, dword [tv.tv_usec]
add eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call dbg.get_uint32
mov edx, dword [ebx + 8]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
cmp edx, 0x3f
mov dword [ebp - 0x120], eax
ja 0x4bc840
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov dword [ebp - 0x11c], 0
mov edi, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x160]
mov dword [edi + ecx*4 + 4], edx
add eax, 1
mov dword [edi], eax
lea esi, [esi]
add edx, 1
lea eax, [ebp - 0x14c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
cmp edi, dword [ebp - 0x15c]
je 0x4bc7b9
mov dword [esp], edi
mov dword [ebp - 0x15c], eax
call sym._free
mov eax, dword [ebp - 0x15c]
test eax, eax
setg al
movzx eax, al
test eax, eax
mov dword [ebp - 0x154], eax
je 0x4bc7db
or dword [ebp - 0x128], 1
lea eax, [ebp - 0x154]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x4bc805
mov edx, dword [tv.tv_usec]
mov dword [esp + 8], eax
lea eax, [tv.tv_sec]
mov dword [esp + 4], eax
mov dword [esp], ebx
add edx, esi
mov dword [esp + 0xc], edx
call dword [ebx + 0x28]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x4bc826
mov dword [ebx + 0x24], 0
mov dword [esp], esi
call sym._free
mov eax, dword [ebx + 8]
jmp 0x4bc645
mov dword [esp], esi
call sym._free
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, edx
shr eax, 5
add eax, 1
mov dword [esp + 4], 4
mov dword [esp], eax
mov dword [ebp - 0x15c], edx
call sym._calloc
mov edx, dword [ebp - 0x15c]
test eax, eax
mov edi, eax
je 0x4bca1c
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x160], eax
je 0x4bca95
xor ecx, ecx
mov eax, dword [ebp - 0x160]
cmp edx, dword [edi + 4]
jne 0x4bc896
jmp 0x4bc8c0
cmp edx, dword [edi + ecx*4 + 4]
je 0x4bc8c0
add ecx, 1
cmp ecx, eax
jne 0x4bc890
mov dword [ebp - 0x160], eax
cmp ecx, 0x3f
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x15c], eax
ja 0x4bc770
jmp 0x4bc75a
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x15c], eax
jmp 0x4bc770
mov eax, dword [0x5bcda0]
cmp eax, 9
jle 0x4bca59
cmp eax, 0x3e7
jg 0x4bca3f
add eax, 1
mov dword [0x5bcda0], eax
mov eax, 0xfffefffb
jmp 0x4bc830
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0
lea esp, [ebp - 0xc]
mov eax, 0xfffeffe5
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edx, dword [ebp - 0x154]
xor eax, eax
test edx, edx
je 0x4bc830
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
cmp edx, 0x63
ja 0x4bc830
add edx, 1
mov dword [ebx + 0x20], edx
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_error:_select_indicated_data_was_waiting_but_read_all_returned_EWOULDBLOCK
mov dword [esp], 0x1388
mov dword [ebp - 0x15c], eax
call dbg.syslog
mov eax, dword [ebp - 0x15c]
jmp 0x4bc830
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_daemon_version__d_does_not_match_client_version__d
mov dword [esp], 0x1388
call dbg.syslog
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0
lea esp, [ebp - 0xc]
mov eax, 0xfffefff1
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea esp, [ebp - 0xc]
mov eax, 0xfffefffd
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0
mov dword [esp], esi
call sym._free
lea esp, [ebp - 0xc]
mov eax, 0xfffeffe5
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_called_with_invalid_DNSServiceRef__p__08X__08X
mov dword [esp], 0x1388
mov dword [esp + 8], eax
call dbg.syslog
lea esp, [ebp - 0xc]
mov eax, 0xfffefffb
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 8], ebx
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_undefined_for_kDNSServiceFlagsShareConnection_subordinate_DNSServiceRef__p
mov dword [esp], 0x1388
call dbg.syslog
mov eax, 0xfffefffb
jmp 0x4bc830
mov dword [esp + 4], str.dnssd_clientstub_more_bytes:_malloc_failed
mov dword [esp], 0x1388
call dbg.syslog
mov dword [ebp - 0x154], 0
jmp 0x4bc7db
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xfffefffb
sub esp, 4
jmp 0x4bc830
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_called_with_DNSServiceRef_with_no_ProcessReply_function
mov dword [esp], 0x1388
call dbg.syslog
mov eax, dword [0x5bcda0]
jmp 0x4bc8df
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_called_with_NULL_DNSServiceRef
mov dword [esp], 0x1388
call dbg.syslog
mov eax, 0xfffefffc
jmp 0x4bc830
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov dword [ebp - 0x15c], eax
jmp 0x4bc75a