Function at 0x1400d0690
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x550]
sub rsp, 0x650
xor ebx, ebx
mov r15, rdx
mov r12, rcx
mov dword [0x14026f98c], ebx
lea rdx, [0x1400d0ac0]
mov dword [0x14026f990], ebx
mov r14d, r9d
mov esi, r8d
lea ecx, [rbx + 0x16]
call fcn.14018221c
lea rdx, [0x1400d0ac0]
mov qword [0x14026f920], rax
lea ecx, [rbx + 8]
call fcn.14018221c
lea rdx, [0x1400d0ac0]
mov qword [0x14026f8b0], rax
lea ecx, [rbx + 4]
call fcn.14018221c
lea rdx, [0x1400d0ac0]
mov qword [0x14026f890], rax
lea ecx, [rbx + 2]
call fcn.14018221c
lea rdx, [0x1400d0ac0]
mov qword [0x14026f880], rax
lea ecx, [rbx + 0xb]
call fcn.14018221c
lea rdx, [0x1400d0ac0]
mov qword [0x14026f8c8], rax
lea ecx, [rbx + 0xf]
call fcn.14018221c
mov qword [0x14026f8e8], rax
mov eax, 1
mov dword [0x14026f990], eax
test esi, esi
jne 0x1400d0795
cmp dword [0x14026f988], ebx
je 0x1400d0795
mov eax, dword [0x14026f970]
mov ecx, 0xfffffff6
and eax, 0xfffffffb
mov dword [0x14026f974], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [0x14026f974]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
or edi, 0xffffffff
mov dword [0x14026f990], 2
cmp dword [0x14026f988], ebx
mov byte [rsp + 0x50], bl
lea r13d, [rdi + 0xb]
je 0x1400d0905
xor r8d, r8d
lea rcx, str.OPENSSL_WIN32_UTF8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0xfffffff6
test eax, eax
je 0x1400d089e
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rbp + 0x590]
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea rdx, [rbp + 0x150]
mov r8d, 0x1ff
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x1400d09b3
mov edx, dword [rbp + 0x590]
cmp edx, 2
jb 0x1400d0840
lea eax, [rdx - 2]
lea r8, [rbp + 0x150]
cmp word [r8 + rax*2], 0xd
lea r8, [r8 + rax*2]
jne 0x1400d0840
lea ecx, [rdx - 1]
cmp word [rbp + rcx*2 + 0x150], r13w
jne 0x1400d0840
mov word [r8], r13w
mov edx, ecx
mov dword [rbp + 0x590], ecx
mov eax, edx
lea r8, [rbp + 0x150]
mov qword [rsp + 0x38], rbx
mov r9d, edi
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], 0x200
mov ecx, 0xfde9
mov word [rbp + rax*2 + 0x150], bx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdi, [rsp + 0x50]
mov edx, 0x400
test eax, eax
lea rcx, [rbp + 0x150]
cmovle rdi, rbx
call fcn.140073b20
jmp 0x1400d091e
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rbp + 0x590]
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 0x1ff
call qword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x1400d09b3
mov edx, dword [rbp + 0x590]
cmp edx, 2
jb 0x1400d08fd
lea ecx, [rdx - 2]
lea r8, [rsp + 0x50]
add r8, rcx
cmp byte [r8], 0xd
jne 0x1400d08fd
lea ecx, [rdx - 1]
cmp byte [rsp + rcx + 0x50], r13b
jne 0x1400d08fd
mov byte [r8], r13b
mov edx, ecx
mov dword [rbp + 0x590], ecx
mov eax, edx
mov byte [rsp + rax + 0x50], bl
jmp 0x1400d0927
mov r8, qword [0x14026f978]
lea rcx, [rsp + 0x50]
mov edx, 0x1ff
call fcn.140180bc8
mov rdi, rax
test rdi, rdi
je 0x1400d09b3
mov rcx, qword [0x14026f978]
call fcn.140180128
test eax, eax
jne 0x1400d09b3
mov rcx, qword [0x14026f978]
call fcn.140180154
test eax, eax
jne 0x1400d09b3
mov edx, r13d
lea rcx, [rsp + 0x50]
call fcn.140173a2c
test rax, rax
je 0x1400d0962
test r14d, r14d
je 0x1400d0999
mov byte [rax], bl
jmp 0x1400d0999
mov rdi, qword [0x14026f978]
nop dword [rax]
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edx, 4
call fcn.140180bc8
test rax, rax
je 0x1400d09b3
mov edx, r13d
lea rcx, [rsp + 0x40]
call fcn.140173a2c
test rax, rax
je 0x1400d0970
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, r12
call fcn.1400749d0
test eax, eax
mov eax, 1
cmovns ebx, eax
mov eax, dword [0x14026f98c]
cmp eax, 2
mov eax, 0xffffffff
cmove ebx, eax
test esi, esi
jne 0x1400d09db
mov rcx, qword [0x14026f980]
lea rdx, [0x140198c34]
call fcn.14001cab0
mov eax, dword [0x14026f990]
cmp eax, 2
jl 0x1400d0a1e
test esi, esi
jne 0x1400d0a1e
cmp dword [0x14026f988], esi
je 0x1400d0a1e
mov eax, dword [0x14026f970]
mov ecx, 0xfffffff6
mov dword [0x14026f974], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [0x14026f974]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x14026f990]
cmp eax, 1
jl 0x1400d0a89
mov rdx, qword [0x14026f920]
mov ecx, reloc.WS2_32.dll_shutdown
call fcn.14018221c
mov rdx, qword [0x14026f8b0]
mov ecx, 8
call fcn.14018221c
mov rdx, qword [0x14026f890]
mov ecx, 4
call fcn.14018221c
mov rdx, qword [0x14026f880]
mov ecx, 2
call fcn.14018221c
mov rdx, qword [0x14026f8c8]
mov ecx, listen
call fcn.14018221c
mov rdx, qword [0x14026f8e8]
mov ecx, recvfrom
call fcn.14018221c
mov edx, 0x200
lea rcx, [rsp + 0x50]
call fcn.140073b20
lea r11, [rsp + 0x650]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret