Function at 0x140077b20
Capabilities:
Reference http user-agent string

Disassembly:
mov rax, qword [rcx + 8]
mov byte [rax + 0xdd], 0
jmp fcn.140050000
mov rax, qword [rcx + 8]
cmp byte [rax + 0xd8], 0
mov byte [rax + 0xdb], 0
jne fcn.140050530
ret
mov rax, qword [rcx + 8]
cmp byte [rax + 0xd9], 0
mov byte [rax + 0xdc], 0
jne fcn.140050610
ret
mov rax, qword [rcx + 8]
cmp dword [rax + 0xc8], 2
jne 0x14005858a
cmp byte [rax + 0xd9], 0
jne fcn.1400576c0
ret
push rbp
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x68
mov r14, rcx
mov esi, edx
mov rcx, qword [rcx + 8]
cmp dword [rcx + 0xc8], 2
je 0x140058e19
lea rdx, [rbp + 0x38]
cmp esi, 2
jne 0x140058d37
mov edi, 0xffffffff
lea r8, str.Proxy_server_not_found
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rcx, [0x140271910]
call fcn.1400c61b0
mov edx, select
lea r8, [rbp + 0x38]
mov rcx, r14
call fcn.140050550
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x140058df4
cmp ecx, edi
je 0x140058e08
jmp 0x140058de7
test esi, esi
jne 0x140058d61
mov edi, 0xffffffff
lea r8, str.Proxy_connection_refused
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rcx, [0x140271910]
call fcn.1400c61b0
mov edx, reloc.WS2_32.dll_ntohl
jmp 0x140058d10
cmp esi, 5
jne 0x140058d8c
mov edi, 0xffffffff
lea r8, str.Proxy_server_connection_timed_out
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rcx, [0x140271910]
call fcn.1400c61b0
mov edx, select
jmp 0x140058d10
cmp esi, 1
jne 0x140058dba
mov edi, 0xffffffff
lea r8, str.Proxy_connection_closed_prematurely
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rcx, [0x140271910]
call fcn.1400c61b0
mov edx, select
jmp 0x140058d10
mov rcx, qword [rcx + 0xb8]
call fcn.1400d9af0
mov r8, rax
mov edx, esi
mov rcx, r14
call fcn.140050550
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x140058df4
cmp ecx, 0xffffffff
je 0x140058e08
mov edi, 0xffffffff
mov rax, qword [rbp + 0x38]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140058e08
mov rcx, qword [rbp + 0x38]
mov r8d, 8
mov edx, 2
call fcn.1400affb0
mov rcx, r14
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.140057340
cmp esi, 5
je 0x140058f63
mov qword [rsp + 0x98], rbx
lea rdx, [rbp + 0x38]
xor ebx, ebx
mov dword [rcx + 0xc8], ebx
mov rcx, qword [rcx + 0xb8]
call fcn.1400d9af0
mov r8, rax
mov edx, esi
mov rcx, r14
call fcn.140050550
mov rax, qword [rbp + 0x38]
mov edi, 0xffffffff
mov ecx, dword [rax]
test ecx, ecx
je 0x140058e71
cmp ecx, edi
je 0x140058e85
mov rax, qword [rbp + 0x38]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140058e85
mov rcx, qword [rbp + 0x38]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
cmp esi, 1
je 0x140058f53
xorps xmm0, xmm0
mov qword [rsp + 0x60], r15
lea rax, [0x140265bd0]
mov qword [rbp - 0x28], 2
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x28]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.1400acdb0
mov r8d, gethostname
lea rdx, str.QHttpSocketEngine::slotSocketError:_got_weird_error_
lea rcx, [rbp + 0x38]
mov r15, rax
mov rbx, qword [rax]
call fcn.1400ba890
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.1400e34f0
mov rcx, qword [rbp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140058efe
cmp eax, edi
je 0x140058f12
mov rax, qword [rbp + 0x38]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140058f12
mov rcx, qword [rbp + 0x38]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [r15]
cmp byte [rcx + 0x20], 0
je 0x140058f22
mov dl, 0x20
call fcn.1400e3570
mov rax, qword [r15]
lea rdx, [rbp + 0x40]
mov qword [rbp + 0x40], rax
lea rcx, [rbp - 0x38]
mov r8d, esi
inc dword [rax + 0x18]
call fcn.140071ae0
lea rcx, [rbp - 0x38]
call fcn.1400e5a10
lea rcx, [rbp - 0x30]
call fcn.1400e5a10
mov r15, qword [rsp + 0x60]
mov rcx, r14
call fcn.140057510
mov rbx, qword [rsp + 0x98]
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret
push rbx
sub rsp, 0x20
mov rbx, r9
test edx, edx
jne 0x140077bb8
cmp r8d, 8
ja case.default.0x140077b50
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x77c0c]
add rdx, r8
jmp rdx
add rsp, 0x20
pop rbx
jmp fcn.140058590
add rsp, 0x20
pop rbx
jmp fcn.140003f50
add rsp, 0x20
pop rbx
jmp fcn.140058f70
add rsp, 0x20
pop rbx
jmp 0x140058570
mov rdx, qword [r9 + 8]
mov edx, dword [rdx]
add rsp, 0x20
pop rbx
jmp 0x140058cc0
mov rdx, qword [r9 + 8]
mov edx, dword [rdx]
add rsp, 0x20
pop rbx
jmp fcn.140003f50
add rsp, 0x20
pop rbx
jmp 0x1400574d0
add rsp, 0x20
pop rbx
jmp 0x1400574f0
add rsp, 0x20
pop rbx
jmp 0x1400574c0
cmp edx, 0xc
jne case.default.0x140077b50
sub r8d, 4
je 0x140077be2
cmp r8d, 1
jne 0x140077beb
mov rax, qword [r9 + 8]
cmp dword [rax], 0
jne 0x140077beb
call fcn.1400749d0
mov rcx, qword [rbx]
mov dword [rcx], eax
add rsp, 0x20
pop rbx
ret
mov rax, qword [r9 + 8]
cmp dword [rax], 0
je 0x140077bfa
mov rax, qword [r9]
mov dword [rax], 0xffffffff
add rsp, 0x20
pop rbx
ret
call fcn.140062340
mov rcx, qword [rbx]
mov dword [rcx], eax
add rsp, 0x20
pop rbx
ret