Function at 0x1400804b0
Capabilities:
Query environment variable
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402bdaf8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rcx
mov rdx, qword [rcx + 0x30]
call fcn.1400729a0
cmp dword [rax + 4], 0
je 0x14008071c
mov rdx, qword [rsi + 0x30]
call fcn.1400729a0
mov edx, reloc.WS2_32.dll_ntohs
mov ecx, reloc.WS2_32.dll_send
cmp dword [rax + 4], 1
cmovne edx, ecx
lea rcx, [rsp + 0x68]
call fcn.14007e8d0
nop
lea r8, [rsp + 0x68]
mov rdx, qword [rsi + 0x270]
lea rcx, [rsp + 0x38]
call fcn.14008ba40
mov rdx, rax
lea rcx, [rsi + 0x2b8]
call fcn.140089f90
or rdi, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14008057c
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008057c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14008057c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rsi + 0x2b8]
add rax, 8
mov qword [rsi + 0x288], rax
lea rcx, str.SSL_NOVERIFY
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, qword [rsi + 0x2b8]
test rax, rax
je 0x1400805cd
call fcn.1400cba50
mov rcx, qword [rbx + 0x70]
call fcn.1400d8170
mov r8, rax
xor edx, edx
mov rcx, qword [rbx + 0x70]
call fcn.1400d8c50
call fcn.1400cba50
jmp 0x140080661
call fcn.1400cba50
mov rcx, qword [rbx + 0x70]
call fcn.1400d8170
mov r8, rax
mov edx, 1
mov rcx, qword [rbx + 0x70]
call fcn.1400d8c50
call fcn.1400cba50
lea rdx, [rbp + 0x10]
mov rcx, qword [rsi + 0x30]
call fcn.14002c370
nop
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
mov r9, rdi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14003ab20
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x10]
call fcn.14008bb10
mov rdx, rax
mov rcx, qword [rsi + 0x2b8]
call fcn.14008bbe0
nop
mov r8, qword [rbp + 0x28]
cmp r8, 0x10
jb 0x140080661
inc r8
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.14003b660
lea rdx, str.ROOT
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov r14, rax
test rax, rax
jne 0x140080687
lea rcx, [rsp + 0x68]
call fcn.14007ece0
jmp 0x1400807d7
call fcn.14010f3b0
mov r15, rax
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
mov rbx, rax
test rax, rax
je 0x1400806ee
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbx + 8]
mov r8d, dword [rbx + 0x10]
xor ecx, ecx
call fcn.14010b2d0
mov rdi, rax
test rax, rax
je 0x1400806da
mov rdx, rax
mov rcx, r15
call fcn.14010eec0
mov rcx, rdi
call fcn.14010b220
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
mov rbx, rax
test rax, rax
jne 0x1400806b0
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rdx, r15
mov rcx, qword [rsp + 0x70]
call fcn.1400d74e0
nop
lea rcx, [rsp + 0x68]
call fcn.14007ece0
jmp 0x14008077d
mov rdx, qword [rsi + 0x270]
lea rcx, [rbp - 0x70]
call fcn.14008bd70
mov rdx, rax
lea rcx, [rsi + 0x2c8]
call fcn.140089f90
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x14008076f
or rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008076f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008076f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rsi + 0x2c8]
mov qword [rsi + 0x288], rax
mov dword [rsp + 0x30], 0x2710
mov rax, qword [rsi + 0x288]
mov rcx, qword [rax + 8]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsi + 0x288]
mov rcx, qword [rax + 8]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1401cf6b0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret