Function at 0x140024410
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x498
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, qword [rcx + 8]
mov rsi, rcx
test rdi, rdi
je 0x140024756
mov qword [r11 + 0x18], rbp
lea rbp, [0x1400ff560]
mov qword [r11 + 0x20], r14
lea r14, [0x140000000]
mov qword [r11 - 0x18], r15
lea r15, [0x1400a98ad]
mov qword [r11 + 0x10], rbx
mov eax, dword [rdi + 4]
cmp eax, 2
je 0x140024474
cmp eax, 0x17
jne 0x140024729
cmp dword [0x1400eee5c], 0x10
jge 0x140024796
mov edx, dword [rdi + 0x10]
lea rax, [rsp + 0x48]
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x30], 0xa
mov r9d, 0x401
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1400244d2
mov ecx, eax
call fcn.14003d9b0
mov rdx, rax
lea rcx, str.getnameinfo_failed:__.100s
call fcn.140046b30
jmp 0x140024729
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call fcn.14002dd40
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140024535
call fcn.140084fc0
mov r8d, dword [rax]
lea eax, [r8 - 0x64]
cmp eax, 0x28
ja 0x140024514
cdqe
lea rcx, str.socket:__.100s
mov rdx, qword [r14 + rax*8 + 0xa9e90]
call fcn.140046be0
jmp 0x140024729
mov edx, 0x5e
mov rcx, rbp
call fcn.14008b31c
mov rdx, rbp
lea rcx, str.socket:__.100s
call fcn.140046be0
jmp 0x140024729
mov ecx, ebx
call fcn.14003d7d0
mov ecx, ebx
cmp eax, 0xffffffff
jne 0x14002454d
call fcn.14002ed90
jmp 0x140024729
mov edx, 8
lea r8d, [rdx - 7]
call fcn.14002eee0
cmp eax, 0xffffffff
jne 0x140024587
call fcn.140084fc0
mov ecx, dword [rax]
call fcn.14002af70
mov rdx, rax
lea rcx, str.socket:_CLOEXEC:__s
call fcn.140046be0
mov ecx, ebx
call fcn.14002ed90
jmp 0x140024729
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov edx, 0xffff
mov r8d, 4
mov ecx, ebx
call fcn.14002df80
cmp eax, 0xffffffff
jne 0x1400245e6
call fcn.140084fc0
mov r8d, dword [rax]
lea eax, [r8 - 0x64]
cmp eax, 0x28
ja 0x1400245c8
cdqe
mov r8, qword [r14 + rax*8 + 0xa9e90]
jmp 0x1400245d8
mov edx, 0x5e
mov rcx, rbp
call fcn.14008b31c
mov r8, rbp
mov edx, ebx
lea rcx, str.setsockopt_SO_REUSEADDR_fd__d:__s
call fcn.140046b30
cmp qword [rsi], 0
je 0x140024604
lea rcx, str.Setting_routing_domain_is_not_supported_on_this_platform
call fcn.140046b30
mov ecx, ebx
call fcn.14002ed90
jmp 0x140024729
cmp dword [rdi + 4], 0x17
jne 0x14002467b
mov r8d, ebx
mov dword [rsp + 0x40], 1
lea rdx, str.sock_set_v6only
lea rcx, str._s:_set_socket__d_IPV6_V6ONLY
call fcn.140046c70
mov edx, 0x29
lea r9, [rsp + 0x40]
mov ecx, ebx
lea r8d, [rdx - 0xe]
call fcn.14002df80
cmp eax, 0xffffffff
jne 0x14002467b
call fcn.140084fc0
mov r8d, dword [rax]
lea eax, [r8 - 0x64]
cmp eax, 0x28
ja 0x14002465f
cdqe
mov rdx, qword [r14 + rax*8 + 0xa9e90]
jmp 0x14002466f
mov edx, 0x5e
mov rcx, rbp
call fcn.14008b31c
mov rdx, rbp
lea rcx, str.setsockopt_IPV6_V6ONLY:__s
call fcn.140046b30
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x48]
lea rcx, str.Bind_to_port__s_on__s.
call fcn.140046c10
mov r8d, dword [rdi + 0x10]
mov ecx, ebx
mov rdx, qword [rdi + 0x20]
call fcn.14002e510
cmp eax, 0xffffffff
jne 0x1400246d3
call fcn.140084fc0
mov ecx, dword [rax]
call fcn.14002af70
mov r9, rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x48]
lea rcx, str.Bind_to_port__s_on__s_failed:__.200s.
call fcn.140046b30
mov ecx, ebx
call fcn.14002ed90
jmp 0x140024729
movsxd rcx, dword [0x1400eee5c]
mov dword [r14 + rcx*4 + 0xff4d0], ebx
inc ecx
mov dword [0x1400eee5c], ecx
mov ecx, ebx
call fcn.14002e430
cmp eax, 0xffffffff
je 0x140024770
mov rax, qword [rsi]
lea r9, str._rdomain
test rax, rax
lea r8, [rsp + 0x48]
mov rcx, r15
lea rdx, [rsp + 0x70]
cmovne rcx, rax
cmove r9, r15
mov qword [rsp + 0x20], rcx
lea rcx, str.Server_listening_on__s_port__s_s_s.
call fcn.140046bb0
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140024463
mov rbx, qword [rsp + 0x4b8]
mov rbp, qword [rsp + 0x4c0]
mov r14, qword [rsp + 0x4c8]
mov r15, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140078840
add rsp, 0x498
pop rdi
pop rsi
ret
call fcn.140084fc0
mov ecx, dword [rax]
call fcn.14002af70
mov r9, rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
lea rcx, str.listen_on___s_:_s:__.100s
call fcn.14004db00
int3
lea rcx, str.Too_many_listen_sockets._Enlarge_MAX_LISTEN_SOCKS
call fcn.14004db00
int3