Function at 0x4b3d60
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 0x4b41f7
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x4b4148
mov ecx, edx
xor ecx, eax
cmp ecx, 0x12345678
jne 0x4b4148
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x4b417a
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x28]
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x4b4051
mov ecx, 0x1c
lea edx, [ebp - 0x144]
call fcn.004b2930
cmp eax, 0xffffffff
je 0x4b407c
cmp eax, 0xfffffffe
je 0x4b4095
lea eax, [ebp - 0x144]
mov dword [esp], eax
call fcn.004b5cc0
mov eax, dword [ebp - 0x144]
cmp eax, 1
jne 0x4b40df
mov edi, dword [ebp - 0x140]
mov dword [esp], edi
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x4b4118
mov eax, dword [ebx + 8]
mov ecx, edi
mov edx, esi
call fcn.004b2930
test eax, eax
js 0x4b4127
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x150], esi
add eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call fcn.004b5b20
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x140]
add eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call fcn.004b5b20
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x140]
add eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x150]
mov dword [esp], eax
call fcn.004b5b20
mov edx, dword [ebx + 8]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
cmp edx, 0x3f
mov dword [ebp - 0x120], eax
ja 0x4b3fc0
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 0x4b3f39
mov dword [esp], edi
mov dword [ebp - 0x15c], eax
call fcn.004ebfd0
mov eax, dword [ebp - 0x15c]
test eax, eax
setg al
movzx eax, al
test eax, eax
mov dword [ebp - 0x154], eax
je 0x4b3f5b
or dword [ebp - 0x128], 1
lea eax, [ebp - 0x154]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x4b3f85
mov edx, dword [ebp - 0x140]
mov dword [esp + 8], eax
lea eax, [ebp - 0x144]
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 0x4b3fa6
mov dword [ebx + 0x24], 0
mov dword [esp], esi
call fcn.004ebfd0
mov eax, dword [ebx + 8]
jmp 0x4b3dc5
mov dword [esp], esi
call fcn.004ebfd0
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 sub.msvcrt.dll_calloc
mov edx, dword [ebp - 0x15c]
test eax, eax
mov edi, eax
je 0x4b419c
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x160], eax
je 0x4b4215
xor ecx, ecx
mov eax, dword [ebp - 0x160]
cmp edx, dword [edi + 4]
jne 0x4b4016
jmp 0x4b4040
cmp edx, dword [edi + ecx*4 + 4]
je 0x4b4040
add ecx, 1
cmp ecx, eax
jne 0x4b4010
mov dword [ebp - 0x160], eax
cmp ecx, 0x3f
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x15c], eax
ja 0x4b3ef0
jmp 0x4b3eda
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x15c], eax
jmp 0x4b3ef0
mov eax, dword [0x5b1e60]
cmp eax, 9
jle 0x4b41d9
cmp eax, 0x3e7
jg 0x4b41bf
add eax, 1
mov dword [0x5b1e60], eax
mov eax, 0xfffefffb
jmp 0x4b3fb0
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 0x4b3fb0
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
cmp edx, 0x63
ja 0x4b3fb0
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 fcn.004b26f0
mov eax, dword [ebp - 0x15c]
jmp 0x4b3fb0
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 fcn.004b26f0
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 fcn.004ebfd0
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 fcn.004b26f0
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 fcn.004b26f0
mov eax, 0xfffefffb
jmp 0x4b3fb0
mov dword [esp + 4], str.dnssd_clientstub_more_bytes:_malloc_failed
mov dword [esp], 0x1388
call fcn.004b26f0
mov dword [ebp - 0x154], 0
jmp 0x4b3f5b
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xfffefffb
sub esp, 4
jmp 0x4b3fb0
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_called_with_DNSServiceRef_with_no_ProcessReply_function
mov dword [esp], 0x1388
call fcn.004b26f0
mov eax, dword [0x5b1e60]
jmp 0x4b405f
mov dword [esp + 4], str.dnssd_clientstub_DNSServiceProcessResult_called_with_NULL_DNSServiceRef
mov dword [esp], 0x1388
call fcn.004b26f0
mov eax, 0xfffefffc
jmp 0x4b3fb0
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov dword [ebp - 0x15c], eax
jmp 0x4b3eda