Function at 0x1404a0960
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x40]
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0xffffffff
cmp qword [rsp + 0xf0], 0
je 0x1404a0b1e
cmp qword [rsp + 0x58], 0
jne 0x1404a0b1e
cmp dword [rsp + 0x74], 0xffffffff
jne 0x1404a0b1e
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov rax, qword [rsp + 0xf0]
mov r8, qword [rax]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.1404a06a0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1404a0a12
mov eax, dword [rsp + 0x40]
jmp 0x1404a0dce
cmp qword [rsp + 0x58], 0
je 0x1404a0a76
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
test eax, eax
je 0x1404a0a76
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x80], rcx
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x3a9], 1
mov r8, qword [rsp + 0x58]
lea rdx, str.Connecting_to_hostname:__s
mov rcx, qword [rsp + 0xe0]
call fcn.1401de8c2
nop
jmp 0x1404a0aaa
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x3a9], 0
lea r8, [0x1407e1c50]
mov edx, 0xba6
mov rcx, qword [rsp + 0x58]
call fcn.1401d65e6
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1404a0a85
cmp dword [rsp + 0x74], 0
jl 0x1404a0aee
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0x74]
mov dword [rax + 0x7d0], ecx
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x3aa], 1
mov r8d, dword [rsp + 0x74]
lea rdx, str.Connecting_to_port:__d
mov rcx, qword [rsp + 0xe0]
call fcn.1401de8c2
nop
jmp 0x1404a0b05
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x3aa], 0
mov dword [rsp + 0x74], 0xffffffff
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf0], rax
jmp 0x1404a09a9
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0xa88], 0
je 0x1404a0dca
cmp qword [rsp + 0x58], 0
jne 0x1404a0dca
cmp dword [rsp + 0x74], 0xffffffff
jne 0x1404a0dca
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x3c8]
cmp dword [rax + 0x8c], 2
je 0x1404a0b78
lea rcx, [0x1407e1cb0]
call fcn.1401d9070
test rax, rax
je 0x1404a0dca
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0xa88]
mov eax, dword [rax + 0x28]
and eax, 8
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x84], 8
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xe8]
mov r9d, dword [rax + 0x7cc]
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x84]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0xa88]
call fcn.1401dc9eb
mov byte [rsp + 0x88], al
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x1404a0dca
lea r8, [0x1407e1cd0]
mov edx, 0xbe0
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x10]
call fcn.1401ddcbf
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x1404a0c48
mov eax, 0x1b
jmp 0x1404a0dce
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 0x80], rcx
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x3a9], 1
mov rax, qword [rsp + 0x98]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + 0x7d0], eax
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x3aa], 1
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x3a8], 1
mov rax, qword [rsp + 0x98]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0xb0], eax
mov rcx, qword [rsp + 0x98]
mov ecx, dword [rcx + 0x1c]
call fcn.1401dff51
mov qword [rsp + 0xb8], rax
mov ecx, dword [rsp + 0x84]
call fcn.1401dff51
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x7cc]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x58]
mov r8, rax
lea rdx, str.Alt_svc_connecting_from___s__s:_d_to___s__s:_d
mov rcx, qword [rsp + 0xe0]
call fcn.1401de8c2
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x1c]
cmp dword [rsp + 0x84], eax
je 0x1404a0dca
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 8
je 0x1404a0d8a
cmp dword [rsp + 0xc0], 0x10
je 0x1404a0d9b
cmp dword [rsp + 0xc0], 0x20
je 0x1404a0dac
jmp 0x1404a0dca
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x7e0], 0xb
jmp 0x1404a0dca
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x7e0], 0x14
jmp 0x1404a0dca
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x7de], 5
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x7e0], 0x1e
mov eax, dword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401ddb7f
mov rax, rdi
add rsp, 0xd0
pop rdi
ret