Function at 0x140a5bfb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [rdx + 0xd8]
lea rbp, str.default
mov r14, qword [rdx + 8]
lea r15, [rcx + 0x520]
test rax, rax
mov rsi, 0xffffffffffffffff
mov r13, rcx
mov rdi, rdx
cmovne rbp, rax
mov rcx, rsi
nop
inc rcx
cmp byte [rcx + rbp], 0
jne 0x140a5c000
lea r12, str.lws_create_vhost
add rcx, 0x2f9
mov rdx, r12
call fcn.140a5d510
mov rbx, rax
test rax, rax
je 0x140a5c34b
mov rax, qword [rdi + 0x178]
lea rcx, [0x140a920d8]
test rax, rax
cmovne rcx, rax
mov qword [rbx + 0x1a0], rcx
lea rcx, [rbx + 0x2f8]
mov qword [rbx + 0x210], rcx
cmp byte [rsi + rbp + 1], 0
lea rsi, [rsi + 1]
jne 0x140a5c055
lea r8, [rsi + 1]
mov rdx, rbp
call sub.msvcrt.dll_memcpy
test r14, r14
jne 0x140a5c086
cmp qword [rdi + 0x130], r14
lea rax, str.http_only
cmovne rax, r14
mov r14, rax
mov r9, qword [rbx + 0x210]
lea r8, [0x140a86c64]
mov edx, 0x5f
mov qword [rbx + 0x1e0], r13
lea rcx, [rsp + 0x40]
call fcn.140a5f510
mov r9, qword [rdi]
lea rsi, [rsp + 0x40]
movsxd rcx, eax
add rsi, rcx
test r9, r9
je 0x140a5c0dd
lea rdx, [rsp + 0x9f]
mov rcx, rsi
sub rdx, rsi
lea r8, [0x140a86dbc]
call fcn.140a5f510
movsxd rcx, eax
add rsi, rcx
mov r9d, dword [rdi + 0x60]
mov r10d, r9d
test r9d, r9d
je 0x140a5c10d
test r9w, r9w
jne 0x140a5c10d
lea rdx, [rsp + 0x9f]
mov rcx, rsi
sub rdx, rsi
lea r8, [0x140a86dc0]
call fcn.140a5f510
mov r10d, dword [rdi + 0x60]
mov rax, qword [rdi]
lea rcx, [0x140a8c91a]
test rax, rax
mov dword [rsp + 0x30], r10d
lea r8, [rbx + 0x140]
cmovne rcx, rax
lea rdx, [r13 + 0x3a0]
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x40]
mov rcx, r13
mov qword [rsp + 0x20], rax
lea r9, str._s_s_d
call fcn.140a5b1e0
mov rax, qword [rdi + 0x58]
mov qword [rbx + 0x130], rax
mov rax, qword [rdi]
mov qword [rbx + 0x218], rax
mov eax, reloc.WS2_32.dll_sendto
mov ecx, dword [rdi + 0xa4]
test ecx, ecx
cmovne eax, ecx
mov dword [rbx + 0x2e4], eax
mov rax, qword [rdi + 0x158]
test rax, rax
jne 0x140a5c18d
lea rax, [r13 + 0x330]
xor ebp, ebp
mov qword [rbx + 0x1f0], rax
mov dword [rbx + 0x2cc], ebp
test r14, r14
jne 0x140a5c1ca
mov rax, qword [rdi + 0x130]
cmp qword [rax], rbp
je 0x140a5c1f6
mov edx, ebp
nop
inc edx
mov dword [rbx + 0x2cc], edx
mov rax, qword [rdi + 0x130]
movsxd rcx, edx
cmp qword [rax + rcx*8], rbp
jne 0x140a5c1b0
jmp 0x140a5c1f6
cmp qword [r14 + 8], rbp
je 0x140a5c1f6
mov edx, ebp
nop dword [rax]
nop word [rax + rax]
inc edx
movsxd rax, edx
imul rcx, rax, 0x38
mov dword [rbx + 0x2cc], edx
cmp qword [rcx + r14 + 8], rbp
jne 0x140a5c1e0
mov rax, qword [rdi + 0xc0]
lea rsi, [0x140a92110]
mov qword [rbx + 0x1d8], rax
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0x258], rax
mov rax, qword [rdi + 0x28]
mov qword [rbx + 0x260], rax
mov rax, qword [rdi + 0xc8]
mov qword [rbx + 0x2c0], rax
mov rax, qword [rdi + 0x110]
mov qword [rbx + 0x238], rax
mov rax, qword [rdi + 0x118]
mov qword [rbx + 0x240], rax
mov rax, qword [rdi + 0x120]
mov qword [rbx + 0x220], rax
mov rax, qword [rdi + 0x128]
mov qword [rbx + 0x228], rax
mov rax, qword [rdi + 0x148]
mov qword [rbx + 0x230], rax
mov eax, dword [rdi + 0x16c]
mov dword [rbx + 0x2e8], eax
mov rax, qword [0x140a92110]
test rax, rax
je 0x140a5c2c3
nop dword [rax]
movzx ecx, byte [rax + 0x19]
lea rsi, [rsi + 8]
test cl, 0xf0
je 0x140a5c2bb
mov rax, qword [rax + 0x10]
mov r8d, ecx
shr r8, 4
mov rdx, rdi
mov rcx, rbx
call qword [rax + r8*8 - 8]
test eax, eax
jne 0x140a5c34b
mov rax, qword [rsi]
test rax, rax
jne 0x140a5c290
mov eax, dword [rdi + 0x70]
mov rcx, rbx
test eax, eax
jne 0x140a5c2d2
mov eax, 5
mov dword [rcx + 0x2dc], eax
lea rdx, str.vh_plugin_table
mov eax, dword [rdi + 0xac]
mov ecx, 0xa
test eax, eax
cmovne ecx, eax
mov dword [rbx + 0x2e0], ecx
movsx ecx, word [r13 + 0x814]
mov eax, dword [rbx + 0x2cc]
inc ecx
add eax, ecx
imul rcx, rax, 0x38
call fcn.140a5d510
mov rsi, rax
test rax, rax
jne 0x140a5c36e
lea rdx, str.OOM_n
lea ecx, [rax + 1]
call fcn.140a5b6b0
mov rcx, qword [rbx + 0x1e0]
lea rdx, [rbx + 0x140]
call fcn.140a5b3b0
lea r8, str.lws_free
xor edx, edx
mov rcx, rbx
call fcn.140a5d500
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [rbx + 0x2cc]
test r14, r14
jne 0x140a5c3ca
movsxd r9, eax
test eax, eax
jle 0x140a5c3d9
mov r8, rbp
mov rdx, rsi
nop word [rax + rax]
mov rax, qword [rdi + 0x130]
lea rdx, [rdx + 0x38]
mov rcx, qword [rax + r8*8]
inc r8
movups xmm0, xmmword [rcx]
movups xmmword [rdx - 0x38], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx - 0x28], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx - 0x18], xmm0
movsd xmm1, qword [rcx + 0x30]
movsd qword [rdx - 8], xmm1
cmp r8, r9
jl 0x140a5c390
jmp 0x140a5c3d9
imul r8, rax, 0x38
mov rdx, r14
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0x2cc]
lea rdx, str.same_vh_list
or byte [rbx + 0x2f4], 1
mov qword [rbx + 0x248], rsi
lea rcx, [rax + rax*2]
shl rcx, 3
call fcn.140a5d510
mov qword [rbx + 0x268], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x128], rax
mov eax, dword [rbx + 0x1d8]
bt rax, 0xe
jb 0x140a5c491
mov r9d, dword [rdi + 0x60]
cmp r9d, 0xfffffffe
je 0x140a5c46d
cmp r9d, 0xffffffff
je 0x140a5c448
lea r8, str.port__u
mov edx, 0x60
lea rcx, [rsp + 0x40]
call fcn.140a5f510
jmp 0x140a5c491
movzx eax, word [0x140a86e10]
movups xmm0, xmmword [str._serving_disabled_]
mov word [rsp + 0x50], ax
movzx eax, byte [0x140a86e12]
mov byte [rsp + 0x52], al
movaps xmmword [rsp + 0x40], xmm0
jmp 0x140a5c491
mov eax, dword [0x140a86e20]
movsd xmm0, qword [str._no_listener_]
mov dword [rsp + 0x48], eax
movzx eax, word [0x140a86e24]
mov word [rsp + 0x4c], ax
movsd qword [rsp + 0x40], xmm0
mov eax, dword [rdi + 0x60]
mov dword [rbx + 0x138], ebp
mov byte [rbx + 0xa8], bpl
mov dword [rbx + 0x2c8], eax
cmp qword [rdi + 0x20], rbp
je 0x140a5c4c0
mov eax, dword [rdi + 0x64]
test eax, eax
je 0x140a5c4ba
mov dword [rbx + 0x138], eax
mov rdx, qword [rdi + 0x20]
jmp 0x140a5c4e9
lea rcx, str.http_proxy
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140a5c4f1
mov r8d, 0x60
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.140a5f6d0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140a70210
mov eax, dword [rdi + 0x94]
mov rdx, rbx
mov dword [rbx + 0x2d0], eax
mov rcx, rdi
mov eax, dword [rdi + 0x9c]
mov dword [rbx + 0x2d8], eax
mov eax, dword [rdi + 0x98]
mov dword [rbx + 0x2d4], eax
call fcn.140a6a5a0
test eax, eax
jns 0x140a5c52d
lea rax, str.init_server_failed_n
jmp 0x140a5c56f
mov rax, qword [r15]
test rax, rax
je 0x140a5c54f
nop word [rax + rax]
lea r15, [rax + 0x1e8]
mov rax, qword [r15]
test rax, rax
jne 0x140a5c540
mov qword [r15], rbx
test byte [r13 + 0x80c], 0x40
je 0x140a5c5a7
mov rcx, r13
call fcn.140a5c6a0
test eax, eax
je 0x140a5c5a7
lea rax, str.lws_protocol_init_failed
mov ecx, 0x1a0
mov r10, rbx
mov rcx, qword [rbx + rcx]
lea rdx, [0x140a5c650]
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8, rbx
mov qword [rsp + 0x20], r12
call fcn.140a5b6f0
mov rcx, rbx
call fcn.140a5d030
jmp 0x140a5c34b
mov rax, rbx
jmp 0x140a5c34d