Function at 0x140055c40
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rax, qword [rsp + 0x4c0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
jmp 0x140055c7f
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140055f64
mov rax, qword [rsp + 0x48]
cmp dword [rax + 4], 2
je 0x140055ca3
mov rax, qword [rsp + 0x48]
cmp dword [rax + 4], 0x17
je 0x140055ca3
jmp 0x140055c71
cmp dword [0x1400e7928], 0x10
jl 0x140055cb8
lea rcx, str.Too_many_listen_sockets._Enlarge_MAX_LISTEN_SOCKS
call fcn.14000c3a0
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x401
lea r8, [rsp + 0x90]
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140055d1f
mov ecx, dword [rsp + 0x50]
call fcn.1400034f0
mov rdx, rax
lea rcx, str.getnameinfo_failed:__.100s
call fcn.140002d00
jmp 0x140055c71
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
call fcn.140065d30
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140055d68
call fcn.1400825b0
mov ecx, dword [rax]
call fcn.14005f2e0
mov rdx, rax
lea rcx, str.socket:__.100s
call fcn.140002dc0
jmp 0x140055c71
mov ecx, dword [rsp + 0x40]
call fcn.140003370
cmp eax, 0xffffffff
jne 0x140055d84
mov ecx, dword [rsp + 0x40]
call fcn.140063bc0
jmp 0x140055c71
mov r8d, 1
mov edx, 8
mov ecx, dword [rsp + 0x40]
call fcn.140063fd0
cmp eax, 0xffffffff
jne 0x140055dc6
call fcn.1400825b0
mov ecx, dword [rax]
call fcn.14005f2e0
mov rdx, rax
lea rcx, str.socket:_CLOEXEC:__s
call fcn.140002dc0
mov ecx, dword [rsp + 0x40]
call fcn.140063bc0
jmp 0x140055c71
mov ecx, dword [rsp + 0x40]
call fcn.140003640
mov rax, qword [rsp + 0x4c0]
cmp qword [rax], 0
je 0x140055e04
mov rax, qword [rsp + 0x4c0]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call fcn.1400036a0
cmp eax, 0xffffffff
jne 0x140055e04
mov ecx, dword [rsp + 0x40]
call fcn.140063bc0
jmp 0x140055c71
mov rax, qword [rsp + 0x48]
cmp dword [rax + 4], 0x17
jne 0x140055e18
mov ecx, dword [rsp + 0x40]
call fcn.140004680
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x68]
lea rcx, str.Bind_to_port__s_on__s.
call fcn.140002df0
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x20]
mov ecx, dword [rsp + 0x40]
call fcn.140063ac0
test eax, eax
jge 0x140055e86
call fcn.1400825b0
mov ecx, dword [rax]
call fcn.14005f2e0
mov r9, rax
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x68]
lea rcx, str.Bind_to_port__s_on__s_failed:__.200s.
call fcn.140002d00
mov ecx, dword [rsp + 0x40]
call fcn.140063bc0
jmp 0x140055c71
movsxd rax, dword [0x1400e7928]
lea rcx, [0x1400ea8e0]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
mov eax, dword [0x1400e7928]
inc eax
mov dword [0x1400e7928], eax
mov edx, 0x80
mov ecx, dword [rsp + 0x40]
call fcn.140064760
test eax, eax
jge 0x140055ee3
call fcn.1400825b0
mov ecx, dword [rax]
call fcn.14005f2e0
mov r9, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x90]
lea rcx, str.listen_on___s_:_s:__.100s
call fcn.14000c3a0
mov rax, qword [rsp + 0x4c0]
cmp qword [rax], 0
jne 0x140055eff
lea rax, [0x1400e7908]
mov qword [rsp + 0x58], rax
jmp 0x140055f0f
mov rax, qword [rsp + 0x4c0]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x4c0]
cmp qword [rax], 0
jne 0x140055f2b
lea rax, [0x1400e7909]
mov qword [rsp + 0x60], rax
jmp 0x140055f37
lea rax, str._rdomain
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x90]
lea rcx, str.Server_listening_on__s_port__s_s_s.
call fcn.140002d90
jmp 0x140055c71
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140075860
add rsp, 0x4b8
ret