Function at 0x18004f020
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1230]
mov eax, 0x1330
call fcn.180194f60
sub rsp, rax
mov rax, qword [0x1802ae740]
xor rax, rsp
mov qword [rbp + 0x1220], rax
mov r13, r9
mov rbx, r8
mov qword [rsp + 0x60], rdx
mov r15, rcx
mov qword [rbp + 0x10], rdx
mov r12, qword [rbp + 0x1290]
mov edi, 1
mov dword [rsp + 0x54], edi
lea rcx, [rbp - 0x28]
call fcn.180029490
mov rsi, qword [rbp + 0x1298]
imul rcx, rsi, 0xf4240
add rcx, qword [rax]
mov qword [rbp - 0x48], rcx
lea rcx, [r15 + 8]
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x18004f0a8
mov rcx, qword [rcx]
cmp r8, 4
jne 0x1800504db
lea rdx, str.http
call fcn.1801cb020
test eax, eax
jne 0x1800504db
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movzx eax, byte [r15 + 1]
test al, al
jne 0x18004f0e5
mov eax, 2
jmp 0x18004f0f3
cmp al, dil
jne 0x18005048b
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x34], eax
mov dword [rbp + 0x38], edi
lea rdx, [r15 + 0x48]
cmp qword [rdx + 0x18], 0xf
jbe 0x18004f107
mov rdx, qword [rdx]
lea rdi, [r15 + 0x28]
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18004f118
mov rcx, qword [rdi]
lea r9, [rbp - 8]
lea r8, [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1800504fc
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x20], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x28], rax
mov rcx, qword [rbx + 0x10]
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, rcx
cmp rax, 1
jb 0x180050547
cmp qword [rbx + 0x18], 0xf
jbe 0x18004f171
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x180243ad8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rbp + 0x1f8]
call fcn.180024600
mov ebx, 0x1001
lea rdx, [r15 + 0x68]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x18004f1b1
mov rdx, qword [rdx]
lea rcx, [rbp + 0x1f8]
call fcn.18000f950
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xe0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf0], xmm1
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], send
mov byte [rax], cl
bts ebx, 0xb
lea r8d, [rcx + 0xb]
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rbp + 0xe0]
call fcn.18000f950
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x100], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x110], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], send
mov byte [rax], 0
bts ebx, 0xa
mov dword [rsp + 0x50], ebx
lea rcx, [rbp + 0xe0]
call fcn.18000f380
nop
lea rcx, [rbp + 0x1f8]
call fcn.18000f380
mov rbx, qword [r12]
mov r12, qword [r12 + 8]
cmp rbx, r12
je 0x18004f323
lea rdx, [0x180264498]
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 2
jb 0x180050553
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18004f2b1
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xc0]
call fcn.180024600
or dword [rsp + 0x50], 0x80
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0xf
cmova rdx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xd0]
lea rcx, [rbp + 0x100]
call fcn.18000f950
nop
lea rcx, [rbp + 0xc0]
call fcn.18000f380
add rbx, 0x20
cmp rbx, r12
lea rdx, [0x180264498]
jne 0x18004f290
mov r8, qword [r13 + 8]
sub r8, qword [r13]
lea r9, [rbp + 0xd5]
movabs r10, 0xcccccccccccccccd
nop dword [rax]
dec r9
mov rax, r10
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x18004f340
lea r8, [rbp + 0xd5]
mov rdx, r9
lea rcx, [rbp + 0x148]
call fcn.180024400
mov r12d, dword [rsp + 0x50]
or r12d, 0x30
mov rax, qword [rdi + 0x10]
sub r14, rax
cmp r14, 6
jb 0x18005054d
cmp qword [rdi + 0x18], 0xf
jbe 0x18004f3a4
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 6
lea r9, str.Host:
lea rcx, [rbp + 0x190]
call fcn.180024600
or r12d, 8
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._r_nContent_Length:
lea rcx, [rbp + 0x190]
call fcn.18000f950
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1b8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1c8], xmm1
xor r14d, r14d
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], send
mov byte [rax], r14b
or r12d, 2
lea r9, [rbp + 0x148]
lea r8, [rbp + 0x1b8]
lea rcx, [rbp + 0x120]
call fcn.180024200
or r12d, 0x40
lea r8d, [r14 + 4]
lea rdx, str._r_n_r_n
lea rcx, [rbp + 0x120]
call fcn.18000f950
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1d8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1e8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], send
mov byte [rax], r14b
or r12d, 4
lea rdx, [rbp + 0x1d8]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x100]
call fcn.18000f950
nop
lea rcx, [rbp + 0x1d8]
call fcn.18000f380
nop
lea rcx, [rbp + 0x120]
call fcn.18000f380
nop
mov rdx, qword [rbp + 0x1d0]
cmp rdx, 0xf
jbe 0x18004f4ff
inc rdx
mov rcx, qword [rbp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004f4f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180050559
call fcn.180194660
nop
lea rcx, [rbp + 0x190]
call fcn.18000f380
nop
lea rcx, [rbp + 0x148]
call fcn.18000f380
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rdx, qword [rbp + 0x100]
mov rdi, qword [rbp + 0x110]
add rdi, rdx
lea rbx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rbx, qword [rbp + 0x100]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r14
sub rdi, rbx
je 0x18004f589
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.1800195f0
mov r8, rdi
mov rdx, rbx
mov rbx, qword [rbp - 0x78]
mov rcx, rbx
call fcn.1801ca540
lea rdx, [rdi + rbx]
mov qword [rbp - 0x70], rdx
jmp 0x18004f58d
mov rdx, qword [rbp - 0x70]
mov r8, qword [r13]
mov r9, qword [r13 + 8]
sub r9, r8
lea rcx, [rbp - 0x78]
call fcn.180054040
movzx eax, byte [r15 + 1]
test al, al
jne 0x18004f5b1
mov ecx, 2
jmp 0x18004f5be
cmp al, 1
jne 0x1800507cf
mov ecx, reloc.WS2_32.dll_socket
mov ebx, 1
lea r8d, [rbx + 5]
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov qword [rbp - 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x18005055f
mov dword [rsp + 0x54], ebx
lea r8, [rsp + 0x54]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x180050595
movabs rbx, 0x431bde82d7b634db
test rsi, rsi
js 0x18004f644
lea rcx, [rsp + 0x68]
call fcn.180029490
mov r13, qword [rbp - 0x48]
mov rcx, r13
sub rcx, qword [rsp + 0x68]
mov rax, rbx
imul rcx
mov rbx, rdx
sar rbx, 0x12
mov rax, rbx
shr rax, 0x3f
add rbx, rax
test rbx, rbx
cmovle rbx, r14
jmp 0x18004f64f
mov rbx, 0xffffffffffffffff
mov r13, qword [rbp - 0x48]
mov rax, qword [rbp - 0x50]
mov r14d, dword [rax + 0x10]
mov r15, qword [rax + 0x20]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18004f691
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18004f6eb
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18004f670
mov ebx, 1
mov r14, qword [rbp - 0x70]
mov r15, qword [rbp - 0x78]
sub r14, r15
je 0x18004f7c8
test rsi, rsi
js 0x18004f754
lea rcx, [rsp + 0x68]
call fcn.180029490
mov rcx, r13
sub rcx, qword [rsp + 0x68]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
mov eax, 0
cmovle rdx, rax
jmp 0x18004f75b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18005060c
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rbp - 0x58]
call fcn.18004e720
mov dword [rsp + 0x4c], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1800505d5
mov edx, dword [rsp + 0x48]
test edx, edx
jne 0x1800504ac
jmp 0x18004f696
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rbp - 0x58]
call fcn.18004e720
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18004f7b3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18004f7aa
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18004f782
jmp 0x18004f7b3
cmp ebx, 0xffffffff
je 0x180050643
movsxd rax, ebx
add r15, rax
sub r14, rax
je 0x18004f7c8
mov ebx, 1
jmp 0x18004f6a7
mov word [rsp + 0x40], 0xa0d
mov rax, qword [rsp + 0x60]
xor edx, edx
mov dword [rax], edx
lea r13, [rax + 8]
mov qword [rbp - 0x30], r13
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rdx
mov qword [r13 + 0x18], send
mov byte [r13], dl
lea rcx, [rax + 0x28]
mov qword [rbp - 0x20], rcx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
lea rbx, [rax + 0x40]
mov qword [rbp - 0x40], rbx
mov qword [rbx], rdx
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
or r12d, 1
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], r12d
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdx
mov ecx, edx
mov dword [rsp + 0x48], edx
mov byte [rsp + 0x45], dl
mov qword [rsp + 0x68], rdx
mov byte [rsp + 0x44], dl
mov r12d, edx
mov qword [rbp - 0x60], rdx
mov dword [rsp + 0x4c], edx
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
nop
test rsi, rsi
js 0x18004f89f
lea rcx, [rbp]
call fcn.180029490
mov rcx, qword [rbp - 0x48]
sub rcx, qword [rbp]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
mov eax, 0
cmovle rdx, rax
jmp 0x18004f8a6
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.18004e720
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x220]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18004f90c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18004f903
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x220]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18004f8d4
jmp 0x18004f90c
cmp ebx, 0xffffffff
je 0x18005067a
movsxd r9, ebx
test ebx, ebx
je 0x1800503ec
lea r8, [rbp + 0x220]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.180054040
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov qword [rsp + 0x58], r14
cmp dword [rsp + 0x48], 2
je 0x180050054
nop word [rax + rax]
mov rbx, r14
mov rcx, r14
sub rcx, r15
movzx eax, word [rsp + 0x40]
cmp rcx, 2
jl 0x18004f987
lea r8, [r14 - 2]
mov rdx, r15
nop dword [rax + rax]
cmp ax, word [rdx]
sete cl
test cl, cl
jne 0x18004f984
cmp rdx, r8
je 0x18004f987
inc rdx
jmp 0x18004f970
mov rbx, rdx
cmp rbx, r14
je 0x1800500f6
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x80]
call fcn.180051860
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x18004f9c7
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1801ca540
add r14, r15
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x78], r14
mov r8, qword [rbp + 0x90]
test r8, r8
je 0x18005003c
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x18004fc10
mov dword [rsp + 0x48], 1
xor r14d, r14d
mov r12d, r14d
lea rbx, [rbp + 0x80]
mov r9, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
cmova rbx, r9
nop
lea rax, [rbp + 0x80]
cmp rdx, 0xf
seta cl
cmova rax, r9
add rax, r8
cmp rbx, rax
je 0x18004ffb6
lea rdx, [rbp + 0x80]
test cl, cl
cmovne rdx, r9
add rdx, r8
mov r8b, 0x20
mov rcx, rbx
call fcn.180192fd0
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xb8], r14
cmp rbx, rax
jne 0x18004fa88
mov r8, r14
mov qword [rbp + 0xb0], r14
mov ecx, send
mov qword [rbp + 0xb8], rcx
mov byte [rbp + 0xa0], 0
jmp 0x18004faab
mov r8, r15
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.18000e780
mov rcx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xb0]
inc r12
mov rax, r12
sub rax, 2
je 0x18004faea
cmp rax, 1
jne 0x18004fb43
lea rax, [rbp + 0xa0]
cmp r13, rax
je 0x18004fb43
lea rdx, [rbp + 0xa0]
cmp rcx, 0xf
cmova rdx, qword [rbp + 0xa0]
mov rcx, r13
call fcn.1800152d0
jmp 0x18004fb3c
call fcn.1801a3d98
mov r14, rax
lea rbx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rbx, qword [rbp + 0xa0]
xor eax, eax
mov dword [r14], eax
lea r8d, [rax + 0xa]
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.1801a4b58
cmp rbx, qword [rbp + 8]
je 0x1800506c4
cmp dword [r14], 0x22
je 0x1800506b7
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
xor r14d, r14d
mov rcx, qword [rbp + 0xb8]
lea rax, [rbp + 0x80]
mov r9, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
cmova rax, r9
mov r8, qword [rbp + 0x90]
add rax, r8
cmp r15, rax
je 0x18004fbcc
lea rbx, [r15 + 1]
cmp rcx, 0xf
jbe 0x18004fa10
lea rdx, [rcx + 1]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004fbad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800506b1
call fcn.180194660
mov rdx, qword [rbp + 0x98]
mov r8, qword [rbp + 0x90]
mov r9, qword [rbp + 0x80]
jmp 0x18004fa10
cmp rcx, 0xf
jbe 0x18004ffb6
lea rdx, [rcx + 1]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004fc06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800506b1
call fcn.180194660
jmp 0x18004ffb6
cmp eax, 1
jne 0x18004ffc0
mov rbx, qword [rbp - 0x20]
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x18004fc3d
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.18000e390
add qword [rbx + 8], 0x20
jmp 0x18004fc4f
lea r8, [rbp + 0x80]
mov rdx, rax
mov rcx, rbx
call fcn.180056d00
lea r14, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
seta r13b
mov r12, qword [rbp + 0x80]
cmova r14, r12
mov r15, qword [rbp + 0x90]
test r15, r15
je 0x18004fc96
mov r8, r15
mov edx, 0x3a
mov rcx, r14
call fcn.1801caf80
mov rbx, rax
test rax, rax
je 0x18004fc96
sub rbx, r14
jmp 0x18004fc9d
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x180050738
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xor eax, eax
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rax
mov r8, rbx
cmp r15, rbx
cmovb r8, r15
lea rdx, [rbp + 0x80]
test r13b, r13b
cmovne rdx, r12
lea rcx, [rbp + 0xe0]
call fcn.18000e780
mov r14d, dword [rsp + 0x50]
bts r14d, 8
mov dword [rsp + 0x54], r14d
inc rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xor r15d, r15d
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x78], r15
mov rax, qword [rbp + 0x90]
cmp rax, rbx
jb 0x180050732
sub rax, rbx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rdx, qword [rbp + 0x80]
add rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.18000e780
bts r14d, 9
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
seta r9b
mov r8, qword [rbp + 0x60]
cmova rdx, r8
mov r14, qword [rbp + 0x70]
add rdx, r14
lea rax, [rbp + 0x60]
test r9b, r9b
cmovne rax, r8
cmp rax, rdx
je 0x18004fd9d
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x18004fd95
cmp cl, 9
jne 0x18004fd9d
inc rax
cmp rax, rdx
jne 0x18004fd88
lea rcx, [rbp + 0x60]
mov rdx, r15
test r9b, r9b
je 0x18004fdbb
sub rax, r8
mov rcx, r14
sub rcx, r15
cmp rcx, rax
cmovb rax, rcx
jmp 0x18004fdc9
sub rax, rcx
cmp r14, rax
cmovb rax, r14
lea r8, [rbp + 0x60]
lea rcx, [r8 + rdx]
sub r14, rax
mov r8, r14
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call fcn.1801ca540
mov qword [rbp + 0x70], r14
lea r9, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
seta r11b
mov r10, qword [rbp + 0x60]
cmova r9, r10
add r9, r14
lea rcx, [rbp + 0x60]
test r11b, r11b
je 0x18004fe0f
mov rcx, r10
mov rax, r10
jmp 0x18004fe13
lea rax, [rbp + 0x60]
lea rdx, [rax + r14]
cmp rdx, rcx
je 0x18004fe3c
nop dword [rax]
lea rax, [rdx - 1]
movzx r8d, byte [rax]
cmp r8b, 0x20
je 0x18004fe34
cmp r8b, 9
jne 0x18004fe3c
mov rdx, rax
cmp rax, rcx
jne 0x18004fe20
lea rax, [rbp + 0x60]
sub r9, rdx
test r11b, r11b
je 0x18004fe4d
sub rdx, r10
jmp 0x18004fe54
sub rdx, rax
lea r10, [rbp + 0x60]
mov rax, r14
sub rax, rdx
cmp rax, r9
cmovb r9, rax
lea rcx, [r10 + rdx]
sub r14, r9
mov r8, r14
sub r8, rdx
inc r8
lea rdx, [rcx + r9]
call fcn.1801ca540
mov qword [rbp + 0x70], r14
lea rcx, [rbp + 0xe0]
mov r13, qword [rbp + 0xf8]
cmp r13, 0xf
seta r12b
mov r15, qword [rbp + 0xe0]
cmova rcx, r15
mov rbx, qword [rbp + 0xf0]
cmp rbx, 0xe
jne 0x18004ffd1
mov r8, rbx
lea rdx, str.Content_Length
call fcn.1801cb020
test eax, eax
jne 0x18004ffd1
call fcn.1801a3d98
mov r14, rax
lea rbx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova rbx, qword [rbp + 0x60]
xor eax, eax
mov dword [r14], eax
lea r8d, [rax + 0xa]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1801a4cc0
cmp rbx, qword [rbp - 0x18]
je 0x1800506de
cmp dword [r14], 0x22
je 0x1800506d1
mov edx, eax
mov qword [rsp + 0x68], rdx
mov byte [rsp + 0x45], 1
mov qword [rbp - 0x10], rdx
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp rdx, rax
jbe 0x18004ff2f
lea rdx, [rbp - 0x10]
call fcn.180051e70
mov rbx, qword [rbp + 0x78]
cmp rbx, 0xf
jbe 0x18004ff6b
lea rdx, [rbx + 1]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ff66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180050726
call fcn.180194660
xor eax, eax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], send
mov byte [rbp + 0x60], al
test r12b, r12b
je 0x18004ffb2
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x18004ffaa
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005072c
mov rcx, r15
call fcn.180194660
mov r13, qword [rbp - 0x30]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x70]
lea rcx, [rbp + 0x80]
call fcn.18000f380
jmp 0x18004f950
lea rcx, [rbp + 0xe0]
test r12b, r12b
cmovne rcx, r15
cmp rbx, 0x11
jne 0x18004ff2f
mov r8, rbx
lea rdx, str.Transfer_Encoding
call fcn.1801cb020
test eax, eax
jne 0x18004ff2f
lea rcx, [rbp + 0x60]
mov rbx, qword [rbp + 0x78]
cmp rbx, 0xf
cmova rcx, qword [rbp + 0x60]
cmp r14, 7
jne 0x1800506eb
mov r8, r14
lea rdx, str.chunked
call fcn.1801cb020
test eax, eax
jne 0x1800506eb
mov byte [rsp + 0x44], 1
jmp 0x18004ff33
mov dword [rsp + 0x48], 2
lea rcx, [rbp + 0x80]
call fcn.18000f380
mov r12, qword [rbp - 0x60]
movzx eax, word [rsp + 0x40]
cmp byte [rsp + 0x44], 0
je 0x18005023c
mov r8d, dword [rsp + 0x4c]
nop dword [rax]
test r12, r12
je 0x18005010a
mov rax, r14
sub rax, r15
mov rbx, r12
cmp rax, r12
cmovb rbx, rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x48]
mov r9, rbx
mov r8, r15
mov rcx, qword [rbp - 0x40]
call fcn.180054040
lea rdx, [r15 + rbx]
cmp r15, rdx
je 0x1800500c5
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1801ca540
add r14, r15
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x78], r14
sub r12, rbx
mov qword [rbp - 0x60], r12
mov r8d, dword [rsp + 0x4c]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rsp + 0x4c], r8d
cmp r15, r14
je 0x18004f860
movzx eax, word [rsp + 0x40]
jmp 0x180050070
cmp dword [rsp + 0x48], 2
mov r12, qword [rbp - 0x60]
jne 0x18004f860
jmp 0x180050059
test r8b, r8b
je 0x18005015d
mov rcx, r14
sub rcx, r15
cmp rcx, 2
jb 0x18004f860
cmp ax, word [r15]
sete cl
test cl, cl
je 0x180050776
xor cl, cl
mov dword [rsp + 0x4c], ecx
lea rdx, [r15 + 2]
cmp r15, rdx
je 0x18005015d
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1801ca540
add r14, r15
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x78], r14
movzx eax, word [rsp + 0x40]
mov rbx, r14
mov rcx, r14
sub rcx, r15
cmp rcx, 2
jl 0x18005018a
lea r8, [r14 - 2]
mov rdx, r15
cmp ax, word [rdx]
sete cl
test cl, cl
jne 0x180050187
cmp rdx, r8
je 0x18005018a
inc rdx
jmp 0x180050173
mov rbx, rdx
cmp rbx, r14
je 0x18004f860
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x170]
call fcn.180051860
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x1800501ca
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1801ca540
add r14, r15
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x78], r14
call fcn.1801a3d98
mov r14, rax
lea rbx, [rbp + 0x170]
cmp qword [rbp + 0x188], 0xf
cmova rbx, qword [rbp + 0x170]
xor eax, eax
mov dword [r14], eax
lea r8d, [rax + 0x10]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.1801a4cc0
cmp rbx, qword [rbp - 0x28]
je 0x1800507b6
cmp dword [r14], 0x22
je 0x1800507a9
mov r12d, eax
mov qword [rbp - 0x60], r12
lea rcx, [rbp + 0x170]
test eax, eax
je 0x180050347
call fcn.18000f380
movzx eax, word [rsp + 0x40]
mov r14, qword [rsp + 0x58]
jmp 0x180050064
mov r9, r14
sub r9, r15
mov rbx, qword [rbp - 0x40]
mov rdx, qword [rbx + 8]
mov r8, r15
mov rcx, rbx
call fcn.180054040
cmp r15, r14
cmovne r14, r15
mov qword [rsp + 0x78], r14
cmp byte [rsp + 0x45], 0
je 0x18004f860
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
cmp rax, qword [rsp + 0x68]
jb 0x18004f860
test r15, r15
je 0x1800502b8
mov rdx, qword [rbp - 0x80]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1800502af
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800507c3
mov rcx, r15
call fcn.180194660
nop
cmp rdi, 0xffffffffffffffff
je 0x1800502c8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180050303
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800502fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800507c9
call fcn.180194660
nop
lea rcx, [rbp + 0x100]
call fcn.18000f380
nop
mov rcx, qword [rbp - 0x50]
call qword [rbp - 0x38]
nop
mov rax, qword [rsp + 0x60]
mov rcx, qword [rbp + 0x1220]
xor rcx, rsp
call fcn.1801942d0
mov rbx, qword [rsp + 0x1388]
add rsp, 0x1330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18000f380
nop
test r15, r15
je 0x180050387
mov rdx, qword [rbp - 0x80]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x18005037e
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005079d
mov rcx, r15
call fcn.180194660
nop
cmp rdi, 0xffffffffffffffff
je 0x180050397
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800503d2
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800503cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800507a3
call fcn.180194660
nop
lea rcx, [rbp + 0x100]
call fcn.18000f380
nop
mov rcx, qword [rbp - 0x50]
call qword [rbp - 0x38]
nop
jmp 0x180050318
test r15, r15
je 0x180050426
mov rdx, qword [rbp - 0x80]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x18005041d
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800507c3
mov rcx, r15
call fcn.180194660
nop
cmp rdi, 0xffffffffffffffff
je 0x180050436
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180050471
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005046b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800507c9
call fcn.180194660
nop
lea rcx, [rbp + 0x100]
call fcn.18000f380
nop
mov rcx, qword [rbp - 0x50]
call qword [rbp - 0x38]
nop
jmp 0x180050318
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x78]
call fcn.18004e5a0
lea rdx, [0x1802ac330]
lea rcx, [rbp - 0x78]
call fcn.180197060
nop
call fcn.1800251f0
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x120]
call fcn.180057010
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x120]
call fcn.180197060
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp - 0x78]
call fcn.18004e5a0
lea rdx, [0x1802ac330]
lea rcx, [rbp - 0x78]
call fcn.180197060
int3
mov r8, rdi
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp + 0x148]
call fcn.180024730
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.1800251f0
mov r8, rax
mov r9, rbx
lea rcx, [rbp + 0x190]
call fcn.180056ef0
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x190]
call fcn.180197060
nop
call fcn.18000f630
nop
call fcn.18000f630
nop
call fcn.18000f630
nop
call fcn.18019bd7c
nop
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.1800251f0
mov r8, rax
lea r9, str.Failed_to_create_socket
lea rcx, [rbp + 0x148]
call fcn.180057010
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x148]
call fcn.180197060
int3
lea rcx, [rbp - 0x58]
call fcn.18004e880
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.1800251f0
mov r8, rax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rbp + 0x190]
call fcn.180057010
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x190]
call fcn.180197060
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.1800251f0
mov r8, rax
lea r9, str.Failed_to_get_socket_option
lea rcx, [rbp + 0x120]
call fcn.180057010
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x120]
call fcn.180197060
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.1800251f0
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x120]
call fcn.180057010
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x120]
call fcn.180197060
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.1800251f0
mov r8, rax
lea r9, str.Failed_to_send_data
lea rcx, [rbp + 0x120]
call fcn.180057010
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x120]
call fcn.180197060
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.1800251f0
mov r8, rax
lea r9, str.Failed_to_read_data
lea rcx, [rbp + 0x148]
call fcn.180057010
lea rdx, [0x1802ac120]
lea rcx, [rbp + 0x148]
call fcn.180197060
nop
call fcn.18019bd7c
nop
lea rcx, str.stoi_argument_out_of_range
call fcn.180191098
int3
lea rcx, str.invalid_stoi_argument
call fcn.180191050
nop
lea rcx, str.stoul_argument_out_of_range
call fcn.180191098
int3
lea rcx, str.invalid_stoul_argument
call fcn.180191050
int3
lea r8, [rbp + 0x60]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rbp + 0x148]
call fcn.180024730
nop
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.18004e640
lea rdx, [0x1802ac2c8]
lea rcx, [rbp + 0xc0]
call fcn.180197060
nop
call fcn.18019bd7c
nop
call fcn.18019bd7c
nop
call fcn.18000ce40
nop
lea r8, [rbp + 0x80]
lea rdx, str.Invalid_header:
lea rcx, [rbp + 0x148]
call fcn.180024730
nop
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.18004e640
lea rdx, [0x1802ac2c8]
lea rcx, [rbp + 0xc0]
call fcn.180197060
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp + 0xc0]
call fcn.18004e5f0
lea rdx, [0x1802ac2c8]
lea rcx, [rbp + 0xc0]
call fcn.180197060
nop
call fcn.18019bd7c
nop
call fcn.18019bd7c
nop
lea rcx, str.stoul_argument_out_of_range
call fcn.180191098
int3
lea rcx, str.invalid_stoul_argument
call fcn.180191050
nop
call fcn.18019bd7c
nop
call fcn.18019bd7c
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0xc0]
call fcn.18004e5a0
lea rdx, [0x1802ac330]
lea rcx, [rbp + 0xc0]
call fcn.180197060
int3