Function at 0x1800a2020
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5800]
mov eax, 0x5900
call fcn.1800a7270
sub rsp, rax
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x5950], rbx
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x57f0], rax
mov rsi, rdx
mov r15, rcx
xor edx, edx
lea r12d, [rdx + 1]
mov r8d, 0x1000
lea rcx, [rbp + 0x7f0]
call fcn.1800cf2b0
xor edx, edx
mov r8d, 0x4000
lea rcx, [rbp + 0x17f0]
call fcn.1800cf2b0
mov byte [rbp - 0x20], 0
xor eax, eax
mov qword [rbp - 0x1f], rax
mov dword [rbp - 0x17], eax
mov word [rbp - 0x13], ax
mov byte [rbp - 0x11], al
lea r14d, [r12 + 9]
xor r13d, r13d
mov edi, r13d
mov dword [rbp - 0x28], r13d
mov dword [rbp - 0x24], r13d
cmp byte [0x1801f3a4e], al
je 0x1800a20cf
mov ebx, 0x30d40
lea r14d, [r12 + 4]
jmp 0x1800a20d4
mov ebx, 0x493e0
mov r9d, dword [0x1801ae028]
lea r8, [0x18013c2fc]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x20]
call fcn.180081e30
test r15, r15
je 0x1800a212e
test rsi, rsi
je 0x1800a212e
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1801ae020]
lea r8, str.CONNECT__s:_s_HTTP_1.1_r_nProxy_Authorization:__s__s__r_n_r_n
mov edx, 0x1000
lea rcx, [rbp + 0x7f0]
call fcn.180081e30
jmp 0x1800a2156
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1801ae020]
lea r8, str.CONNECT__s:_s_HTTP_1.1_r_n_r_n
mov edx, 0x1000
lea rcx, [rbp + 0x7f0]
call fcn.180081e30
mov esi, eax
cmp eax, 0x1000
jl 0x1800a2250
lea r8, str.Maximum_buffer_size_exceeded_for_HTTP_CONNECT_request
mov edx, 0x7ff
lea rcx, [rbp - 0x10]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x1800a2248
lea rax, [rsp + 0x70]
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
mov r8d, 0x1d
lea rdx, str.gridInterfaceHttpsWindows.cpp
lea rcx, [rsp + 0x70]
call fcn.18001eca0
nop
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
mov r8d, socket
lea rdx, str.sendConnectRequest
lea rcx, [rsp + 0x50]
call fcn.18001eca0
nop
lea rax, [rsp + 0x40]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x68], rax
lea r13, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rbp - 0x60], r13
lea rax, [rbp - 0x70]
mov qword [rbp - 0x58], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xd6
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x60]
mov edx, 3
call fcn.180019ae4
mov eax, r12d
jmp 0x1800a26b0
mov edx, reloc.WS2_32.dll_recv
mov ecx, r14d
call fcn.1800a2c30
mov eax, dword [0x1801ae050]
add eax, 0xfffffffe
cmp eax, r12d
jbe 0x1800a26ab
nop
mov r8d, esi
sub r8d, edi
movsxd rax, edi
lea rdx, [rbp + 0x7f0]
add rdx, rax
xor r9d, r9d
mov rcx, qword [0x1801ae048]
call qword [sym.imp.WS2_32.dll_send]
lea r13, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
cmp eax, 0xffffffff
je 0x1800a22b3
test eax, eax
je 0x1800a239e
add edi, eax
cmp edi, esi
jge 0x1800a239e
jmp 0x1800a2270
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.Failed_to_write_to_socket___d_
mov edx, 0x7ff
lea rcx, [rbp - 0x10]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x1800a2398
lea rax, [rsp + 0x50]
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x68], 7
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
lea r8d, [r15 + 0x1d]
lea rdx, str.gridInterfaceHttpsWindows.cpp
lea rcx, [rsp + 0x50]
call fcn.18001eca0
nop
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
lea r8d, [r15 + 0x12]
lea rdx, str.sendConnectRequest
lea rcx, [rsp + 0x70]
call fcn.18001eca0
nop
lea rax, [rsp + 0x40]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x70], r13
lea rax, [rbp - 0x60]
mov qword [rbp - 0x68], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xe9
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea edx, [r15 + 3]
call fcn.180019ae4
mov r12d, 4
test edi, edi
jne 0x1800a23aa
lea eax, [rdi + 5]
jmp 0x1800a26b0
mov edx, 0x300
mov ecx, r14d
call fcn.1800a2c30
mov eax, dword [0x1801ae050]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1800a26ab
xor r15d, r15d
mov esi, r15d
or rdi, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
dec r14d
mov r8d, 0x4000
sub r8d, esi
movsxd rax, esi
lea rdx, [rbp + 0x17f0]
add rdx, rax
xor r9d, r9d
mov rcx, qword [0x1801ae048]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1800a2468
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800a24e2
movabs rax, 0x20c49ba5e353f7cf
imul rbx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmovs rdx, r15
lea rcx, [rsp + 0x70]
call fcn.180053bf8
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1800c9470
jmp 0x1800a24d4
test eax, eax
je 0x1800a2689
add esi, eax
lea r8, [rbp - 0x28]
lea rdx, str.HTTP__d._d__d
lea rcx, [rbp + 0x17f0]
call fcn.180086080
mov eax, dword [rbp - 0x28]
cmp eax, 0xc8
je 0x1800a2686
cmp eax, 0x197
jne 0x1800a24d4
lea rdx, str.Content_Length
lea rcx, [rbp + 0x17f0]
call fcn.1800d1b18
test rax, rax
je 0x1800a24d4
lea r8, [rbp - 0x24]
lea rdx, str.Content_Length:__d_r_n
mov rcx, rax
call fcn.180086080
mov eax, dword [rbp - 0x24]
test eax, eax
je 0x1800a24d4
cmp esi, eax
jge 0x1800a24ed
test r14d, r14d
je 0x1800a2689
jmp 0x1800a23e0
mov r12d, 4
jmp 0x1800a2689
lea rdx, str.Proxy_Authenticate
lea rcx, [rbp + 0x17f0]
call fcn.1800d1b18
mov r15, rax
test rax, rax
je 0x1800a267e
lea rdx, reloc.WS2_32.dll_ioctlsocket
mov rcx, rax
call fcn.1800e9c88
mov rbx, rax
test rax, rax
je 0x1800a267e
mov rcx, qword [0x1801ae080]
test rcx, rcx
je 0x1800a2538
call fcn.1800dd360
mov rcx, rdi
nop dword [rax + rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1800a2540
add rcx, 1
cmovb rcx, rdi
call fcn.1800dd380
mov r14, rax
mov qword [0x1801ae080], rax
test rax, rax
jne 0x1800a2647
lea r8, str.Failed_to_allocate_memory
mov edx, 0x7ff
lea rcx, [rbp - 0x10]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x1800a2689
lea rax, [rsp + 0x50]
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x68], 7
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
lea r8d, [r14 + 0x1d]
lea rdx, str.gridInterfaceHttpsWindows.cpp
lea rcx, [rsp + 0x50]
call fcn.18001eca0
nop
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
lea r8d, [r14 + 0x12]
lea rdx, str.sendConnectRequest
lea rcx, [rsp + 0x70]
call fcn.18001eca0
nop
lea rax, [rsp + 0x40]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x70], r13
lea rax, [rbp - 0x60]
mov qword [rbp - 0x68], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x142
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea edx, [r14 + 3]
call fcn.180019ae4
jmp 0x1800a2689
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1800a2650
inc r8
xor edx, edx
mov rcx, r14
call fcn.1800cf2b0
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1800a2667
mov r8, rdi
mov rdx, r15
mov rcx, r14
call fcn.1800e3890
mov r12d, 7
jmp 0x1800a2689
mov r12d, r15d
test esi, esi
je 0x1800a26a0
jle 0x1800a26a6
mov eax, dword [rbp - 0x28]
cmp eax, 0xc8
je 0x1800a26a6
cmp eax, 0x197
je 0x1800a26a6
mov r12d, 5
mov eax, r12d
jmp 0x1800a26b0
mov eax, 4
mov rcx, qword [rbp + 0x57f0]
xor rcx, rsp
call fcn.1800a6240
mov rbx, qword [rsp + 0x5950]
add rsp, 0x5900
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret