Function at 0x466030
Capabilities:
Resolve dns

Disassembly:
push ebp
mov edx, str.DEFAULT
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
lea ebx, [eax + eax*8]
sub esp, 0x4c
shl ebx, 2
lea esi, [ebx + 0x4c02c0]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [esp + 8], edi
mov dword [esp + 4], str.creating_socket:__d___s:_s_
test eax, eax
cmovne edx, eax
test ecx, ecx
mov eax, str.LOCAL
cmovne eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp], 0x8a
call sym.brltty.exe_logMessage
cmp dword [ebx + 0x4c02c0], 1
je 0x466202
mov eax, dword [sym.brltty.exe_getaddrinfoProc]
test eax, eax
je 0x466234
lea edx, [ebp - 0x28]
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 8], 0x49c020
mov dword [esp + 4], edx
mov edx, dword [esi + 8]
mov dword [esp], edx
call eax
sub esp, 0x10
test eax, eax
jne 0x4662f7
mov ebx, dword [ebp - 0x28]
test ebx, ebx
jne 0x4660da
jmp 0x4663f9
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x4660fc
mov edi, dword [ebx + 0x10]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [esp + 4], edi
mov edi, dword [ebx + 0x18]
mov dword [esp], edi
call fcn.00465960
cmp eax, 0xffffffff
mov edx, eax
je 0x4660d3
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], edx
mov dword [esp], eax
call dword [sym.brltty.exe_freeaddrinfoProc]
mov edx, dword [ebp - 0x40]
sub esp, 4
cmp edx, 0xffffffff
je 0x466327
mov eax, dword [esi + 8]
test eax, eax
je 0x466136
mov dword [esp], eax
mov dword [ebp - 0x40], edx
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x40]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x466152
mov dword [esp], eax
mov dword [ebp - 0x40], edx
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x40]
mov dword [esi + 0xc], 0
cmp edx, 0xffffffff
mov ebx, 0xffffffff
mov dword [ebp - 0x40], edx
je 0x4661d1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.kernel32.dll_CreateEventA
mov edx, dword [ebp - 0x40]
sub esp, 0x10
test eax, eax
mov dword [esi + 0x20], eax
je 0x4663c3
mov dword [esp + 8], eax
mov dword [esp + 4], str.event_____p
mov dword [esp], 0x8a
mov dword [ebp - 0x40], edx
call sym.brltty.exe_logMessage
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0x20]
mov dword [esp + 8], 8
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ws2_32.dll_WSAEventSelect
mov edx, dword [ebp - 0x40]
mov ebx, edx
sub esp, 0xc
mov eax, ebx
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x466211
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], str.socket__d_created__fd__p_
mov dword [esp], 0x8a
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call fcn.004656e0
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4661db
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], str.error_while_creating_socket__d
mov dword [esp], 4
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4663ab
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym.brltty.exe_isUnsignedInteger
test eax, eax
je 0x466380
mov eax, dword [ebp - 0x2c]
lea edx, [eax - 1]
cmp edx, 0xfffe
ja 0x466354
mov dword [esp], eax
call sub.ws2_32.dll_htons
sub esp, 4
mov word [ebp - 0x26], ax
mov eax, dword [esi + 8]
test eax, eax
je 0x4663e2
mov dword [esp], eax
call sub.ws2_32.dll_inet_addr
sub esp, 4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [ebp - 0x24], eax
call sub.ws2_32.dll_htonl
sub esp, 4
cmp ebx, eax
je 0x466405
lea eax, [ebp - 0x28]
mov edx, 1
mov dword [esp], eax
mov ecx, 6
mov eax, 2
mov dword [esp + 4], 0x10
call fcn.00465960
mov edx, eax
jmp 0x466111
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov ebx, 0xffffffff
mov dword [esp + 4], str.getaddrinfo__s__s_:__d
mov dword [esp], 4
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
jmp 0x4661d1
mov eax, dword [esi + 0xc]
mov dword [esp + 4], str.unable_to_find_a_local_TCP_port__s:_s__
mov dword [esp], 4
mov dword [ebp - 0x40], edx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
mov edx, dword [ebp - 0x40]
jmp 0x46611a
mov eax, dword [esi + 0xc]
mov dword [esp + 4], str.invalid_TCP_port:__s
mov dword [esp], 3
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
mov ebx, 0xffffffff
jmp 0x4661d1
mov eax, dword [esi + 0xc]
mov dword [esp + 4], 0x49a62e
mov dword [esp], eax
call sub.ws2_32.dll_getservbyname
sub esp, 8
test eax, eax
je 0x4664a3
movzx eax, word [eax + 8]
mov word [ebp - 0x26], ax
jmp 0x46629c
mov dword [esp], 0x1005
call sub.ws2_32.dll_htons
sub esp, 4
mov word [ebp - 0x26], ax
jmp 0x46629c
mov dword [esp], str.CreateEvent
call sym.brltty.exe_logWindowsSystemError
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call sub.ws2_32.dll_closesocket
sub esp, 4
jmp 0x4661d1
mov dword [esp], 0x7f000001
call sub.ws2_32.dll_htonl
sub esp, 4
mov dword [ebp - 0x24], eax
jmp 0x4662ce
xor eax, eax
mov edx, 0xffffffff
jmp 0x4660ff
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.ws2_32.dll_gethostbyname
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4664cc
cmp word [eax + 8], 2
je 0x466450
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
movsx eax, word [ebx + 8]
mov dword [esp + 4], str.unknown_address_type__d
mov dword [esp], 3
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
jmp 0x46636f
movsx eax, word [eax + 0xa]
cmp ax, 4
jbe 0x466486
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
movsx eax, word [ebx + 0xa]
mov dword [esp + 4], str.address_too_big:__d
mov dword [esp], 3
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
jmp 0x46636f
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x24]
mov ecx, dword [ecx]
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
jmp 0x4662ce
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.TCP_port__s:__d
mov dword [esp], 3
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
jmp 0x46636f
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.gethostbyname__s_:__d
mov dword [esp], 3
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
call sym.brltty.exe_logMessage
jmp 0x46636f