Function at 0x140033470
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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1198]
mov eax, 0x1298
call fcn.14003b630
sub rsp, rax
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rbp + 0x1180], rax
mov r12, r9
mov r14, r8
mov qword [rsp + 0x50], rdx
mov rbx, rcx
mov qword [rbp + 0x28], rdx
mov r15, qword [rbp + 0x1200]
xor ecx, ecx
mov dword [rsp + 0x44], ecx
mov dword [rdx], ecx
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rcx
mov qword [rdx + 0x20], rcx
mov qword [rdx + 0x28], rcx
mov qword [rdx + 0x30], rcx
mov esi, 1
mov dword [rsp + 0x44], esi
lea rcx, [rbx + 8]
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x1400334f7
mov rcx, qword [rcx]
cmp r8, 4
jne 0x14003350d
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140033511
movzx eax, sil
test al, al
jne 0x1400348eb
xorps xmm0, xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
movzx eax, byte [rbx + 1]
mov edi, reloc.WS2_32.dll_socket
test al, al
jne 0x140033543
lea eax, [rdi - 0x15]
jmp 0x14003354e
cmp al, sil
jne 0x1400348ca
mov eax, edi
mov dword [rbp + 0x154], eax
mov dword [rbp + 0x158], esi
lea rax, [rbx + 0x48]
mov qword [rsp + 0x70], rax
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140033570
mov rdx, qword [rax]
lea r13, [rbx + 0x28]
mov qword [rbp - 0x58], r13
mov rcx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140033586
mov rcx, qword [r13]
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x150]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14003490c
xorps xmm0, xmm0
movups xmmword [rbp + 0x140], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x140], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x148], rax
movzx eax, byte [rbx + 1]
test al, al
jne 0x1400335d5
mov edi, 2
jmp 0x1400335dd
cmp al, 1
jne 0x1400348a9
mov r8d, 6
mov edx, esi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rbp - 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x14003494e
mov rax, qword [rbp - 0x60]
mov r8d, dword [rax + 0x10]
mov rdx, qword [rax + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x14003497e
mov rcx, qword [r14 + 0x10]
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, rcx
cmp rax, 1
jb 0x1400349ec
cmp qword [r14 + 0x18], 0xf
jbe 0x140033643
mov r14, qword [r14]
mov qword [rsp + 0x30], 1
lea rax, [0x140042664]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, r14
lea rcx, [rbp + 0xb8]
call fcn.140037700
mov dword [rsp + 0x44], 0x401
lea rdx, [rbx + 0x68]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140033686
mov rdx, qword [rdx]
lea rcx, [rbp + 0xb8]
call fcn.140036730
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 ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], recv
mov byte [rax], bl
mov dword [rsp + 0x44], 0xc01
lea r8d, [rbx + 0xb]
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rbp + 0xe0]
call fcn.140036730
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov qword [rbp + 0x110], rbx
mov qword [rbp + 0x118], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x100], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x110], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], recv
mov byte [rax], bl
mov r13d, 0xe01
mov dword [rsp + 0x44], r13d
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x140033775
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033770
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140033770
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
movdqa xmm0, xmmword [0x1400437e0]
movdqu xmmword [rbp + 0xf0], xmm0
mov byte [rbp + 0xe0], 0
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0xf
jbe 0x1400337d0
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400337cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400337cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
movdqa xmm0, xmmword [0x1400437e0]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov rbx, qword [r15]
mov r14, qword [r15 + 8]
lea r15, [0x14003dcb4]
cmp rbx, r14
je 0x1400338ad
nop
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 2
jb 0x1400349f8
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140033821
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x58]
call fcn.140037700
or r13d, 2
mov dword [rsp + 0x44], r13d
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rdx, qword [rbp + 0x58]
mov r8, qword [rbp + 0x68]
lea rcx, [rbp + 0x100]
call fcn.140036730
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x1400338a0
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003389b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034711
call fcn.14003a700
add rbx, 0x20
cmp rbx, r14
jne 0x140033800
mov r14, qword [rbp - 0x58]
mov rcx, qword [r14 + 0x10]
sub rdi, rcx
cmp rdi, 6
jb 0x1400349f2
mov rax, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400338cf
mov rax, qword [r14]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.Host:
lea rcx, [rbp - 0x80]
call fcn.140037700
or r13d, 4
mov dword [rsp + 0x44], r13d
mov r8d, 2
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140036730
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x68], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], dil
or r13d, 8
mov dword [rsp + 0x44], r13d
lea rdx, [rbp + 0x58]
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.140036730
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x1400339a6
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400339a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400339a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400339e4
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400339df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400339df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
mov rdx, qword [r12 + 0x10]
lea rcx, [rbp - 0x50]
call fcn.140036820
or r13d, 0x10
mov dword [rsp + 0x44], r13d
mov r8, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
sub rax, r8
cmp rax, 0x10
jb 0x140033a9b
lea rax, [r8 + 0x10]
mov qword [rbp - 0x40], rax
lea rbx, [rbp - 0x50]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x50]
lea rax, [0x140042680]
lea r15, str.Content_Length:
cmp rax, rbx
jbe 0x140033a51
lea rax, [rbx + r8]
cmp r15, rax
ja 0x140033a51
cmp rbx, r15
jbe 0x140033a56
mov rdi, rbx
sub rdi, r15
jmp 0x140033a56
mov edi, reloc.WS2_32.dll_recv
lea rcx, [rbx + 0x10]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8d, reloc.WS2_32.dll_recv
sub r8, rdi
lea rdx, [r15 + 0x10]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x50]
lea r15, [0x14003dcb4]
xor edi, edi
jmp 0x140033ab2
mov qword [rsp + 0x28], reloc.WS2_32.dll_recv
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x50]
call fcn.140038000
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x68], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
or r13d, 0x20
mov dword [rsp + 0x44], r13d
mov r8d, 2
mov rdx, r15
lea rcx, [rbp + 0x58]
call fcn.140036730
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
or r13d, 0x40
mov dword [rsp + 0x44], r13d
lea rdx, [rbp - 0x80]
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.140036730
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140033b91
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033b8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140033b8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x140033bcf
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033bca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140033bca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
movdqa xmm0, xmmword [0x1400437e0]
movdqu xmmword [rbp + 0x68], xmm0
mov byte [rbp + 0x58], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140033c1e
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033c19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140033c19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
mov r8d, 2
mov rdx, r15
lea rcx, [rbp + 0x100]
call fcn.140036730
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0xf
jbe 0x140033c44
mov r12, qword [r12]
mov rdx, r12
lea rcx, [rbp + 0x100]
call fcn.140036730
mov ebx, dword [rbp + 0x110]
test ebx, ebx
jle 0x140033c9c
nop dword [rax]
lea rax, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rax, qword [rbp + 0x100]
movsxd rdx, edi
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1400349fe
sub ebx, eax
add edi, eax
test ebx, ebx
jg 0x140033c60
mov word [rbp + 0x50], 0xa0d
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb8], xmm1
mov qword [rbp + 0xc8], rax
mov byte [rsp + 0x48], 1
xor bl, bl
mov byte [rsp + 0x4b], bl
mov byte [rsp + 0x4a], bl
mov dword [rsp + 0x58], eax
mov byte [rsp + 0x49], bl
mov r13d, eax
mov qword [rsp + 0x60], rax
xor r12b, r12b
mov dword [rsp + 0x4c], r12d
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x180]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x140034aa2
movzx edi, word [rbp + 0x50]
mov r14, qword [rbp + 0xc0]
mov r15, qword [rbp + 0xb8]
test eax, eax
je 0x1400346d5
mov r9d, eax
lea r8, [rbp + 0x180]
mov rdx, r14
lea rcx, [rbp + 0xb8]
call fcn.140037850
mov r15, qword [rbp + 0xb8]
mov r14, qword [rbp + 0xc0]
test bl, bl
jne 0x14003449e
mov qword [rsp + 0x68], r14
nop dword [rax]
mov rbx, r14
mov rax, r14
sub rax, r15
cmp rax, 2
jl 0x140033d86
lea rdx, [r14 - 2]
cmp di, word [r15]
sete al
mov rcx, r15
test al, al
jne 0x140033d83
cmp rcx, rdx
je 0x140033d86
inc rcx
cmp di, word [rcx]
sete al
test al, al
je 0x140033d71
mov rbx, rcx
cmp rbx, r14
je 0x140034718
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x98]
call fcn.140036b20
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x140033dc8
sub r14, rdx
mov r8, r14
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
add r14, r15
mov qword [rsp + 0x68], r14
mov qword [rbp + 0xc0], r14
mov r13, qword [rbp + 0xa8]
test r13, r13
je 0x14003444e
cmp byte [rsp + 0x48], 0
je 0x140033f70
mov byte [rsp + 0x48], 0
xor r15d, r15d
mov rax, r13
mov qword [rbp + 0xd8], rax
xor ecx, ecx
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x58], xmm1
mov qword [rbp + 0x68], rcx
add rax, 1
mov rbx, qword [rbp + 0x60]
je 0x140033f06
mov rdi, rax
mov rsi, r13
nop word [rax + rax]
lea r12, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0xf
seta byte [rsp + 0x40]
cmova r12, qword [rbp + 0x98]
cmp r15, r13
jae 0x140033e66
mov r8, r13
sub r8, r15
lea rcx, [r12 + r15]
mov edx, 0x20
call sub.VCRUNTIME140.dll_memchr
mov r14, rax
test rax, rax
je 0x140033e66
sub r14, r12
cmp r14, 0xffffffffffffffff
jne 0x140033e69
mov r14, rsi
cmp r14, r15
je 0x140033eec
mov r8, r14
sub r8, r15
mov qword [rbp + 0xd8], r8
lea rdx, [rbp + 0x98]
cmp byte [rsp + 0x40], 0
cmovne rdx, qword [rbp + 0x98]
add rdx, r15
mov qword [rsp + 0x78], rdx
cmp rbx, qword [rbp + 0x68]
je 0x140033ec9
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rcx, rbx
call fcn.1400370c0
mov rbx, qword [rbp + 0x60]
add rbx, 0x20
mov qword [rbp + 0x60], rbx
jmp 0x140033ee5
lea r9, [rbp + 0xd8]
lea r8, [rsp + 0x78]
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140037a90
mov rbx, qword [rbp + 0x60]
mov r13, qword [rbp + 0xa8]
lea r15, [r14 + 1]
cmp r15, rdi
jb 0x140033e20
movzx edi, word [rbp + 0x50]
mov rsi, qword [rbp - 0x30]
mov r14, qword [rsp + 0x68]
mov rax, qword [rbp + 0x58]
sub rbx, rax
sar rbx, 5
cmp rbx, 2
jb 0x140033f62
lea rbx, [rax + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15, rax
cmp qword [rbx + 0x18], 0xf
jbe 0x140033f2e
mov rbx, qword [rbx]
mov dword [rax], 0
mov r8d, 0xa
lea rdx, [rbp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp + 0x30]
je 0x14003475b
cmp dword [r15], 0x22
je 0x14003474d
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
lea rcx, [rbp + 0x58]
call fcn.1400366c0
jmp 0x140034387
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
je 0x140033f95
lea rdx, [rbp + 0x98]
mov rcx, rax
call fcn.140036520
add qword [rbx + 0x10], 0x20
jmp 0x140033fa8
lea r8, [rbp + 0x98]
mov rdx, rax
lea rcx, [rbx + 8]
call fcn.140037d60
lea r12, [rbp + 0x98]
mov rbx, qword [rbp + 0xb0]
cmp rbx, 0xf
seta byte [rsp + 0x40]
cmova r12, qword [rbp + 0x98]
mov r13, qword [rbp + 0xa8]
test r13, r13
je 0x140033ff0
mov r8, r13
mov edx, 0x3a
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x140033ff0
sub r15, r12
jmp 0x140033ff7
mov r15, 0xffffffffffffffff
cmp r15, 0xffffffffffffffff
je 0x14003438e
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xor r12d, r12d
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0xf8], r12
mov r8, r15
cmp r13, r15
cmovb r8, r13
lea rdx, [rbp + 0x98]
cmp byte [rsp + 0x40], r12b
cmovne rdx, qword [rbp + 0x98]
lea rcx, [rbp + 0xe0]
call fcn.1400370c0
mov ebx, dword [rsp + 0x44]
bts ebx, 7
mov dword [rsp + 0x44], ebx
inc r15
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], r12
mov rax, qword [rbp + 0xa8]
cmp rax, r15
jb 0x140034a98
sub rax, r15
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0xf
cmova rdx, qword [rbp + 0x98]
add rdx, r15
lea rcx, [rbp + 0x78]
call fcn.1400370c0
bts ebx, 8
mov dword [rsp + 0x44], ebx
lea r12, [rbp + 0x78]
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
seta cl
mov r8, qword [rbp + 0x78]
cmova r12, r8
mov r15, qword [rbp + 0x88]
add r12, r15
lea rbx, [rbp + 0x78]
test cl, cl
cmovne rbx, r8
cmp rbx, r12
je 0x140034117
nop dword [rax]
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140034105
inc rbx
cmp rbx, r12
jne 0x1400340f0
mov rdx, qword [rbp + 0x90]
mov r15, qword [rbp + 0x88]
mov r8, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
cmp rdx, 0xf
seta al
cmova rcx, r8
lea r9, [rbp + 0x78]
mov rdx, rcx
sub rbx, rcx
test al, al
mov rax, r15
je 0x14003413c
sub rdx, r8
jmp 0x140034143
sub rdx, r9
lea r8, [rbp + 0x78]
sub rax, rdx
cmp rax, rbx
cmovb rbx, rax
lea rcx, [r8 + rdx]
sub r15, rbx
mov r8, r15
sub r8, rdx
inc r8
lea rdx, [rcx + rbx]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x88], r15
lea r13, [rbp + 0x78]
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
seta al
mov r8, qword [rbp + 0x78]
cmova r13, r8
add r13, r15
lea r12, [rbp + 0x78]
test al, al
je 0x14003419a
mov r12, r8
mov rax, r8
jmp 0x14003419e
lea rax, [rbp + 0x78]
lea rbx, [rax + r15]
cmp rbx, r12
je 0x1400341e1
nop word [rax + rax]
lea r14, [rbx - 1]
movsx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x1400341ca
mov rbx, r14
cmp r14, r12
jne 0x1400341b0
mov rdx, qword [rbp + 0x90]
mov r15, qword [rbp + 0x88]
mov r8, qword [rbp + 0x78]
mov r14, qword [rsp + 0x68]
lea rax, [rbp + 0x78]
cmp rdx, 0xf
seta cl
cmova rax, r8
mov rdx, rbx
sub rdx, rax
sub r13, rbx
mov rax, r15
sub rax, rdx
cmp rax, r13
cmovb r13, rax
lea rax, [rbp + 0x78]
test cl, cl
cmovne rax, r8
lea rcx, [rax + rdx]
sub r15, r13
mov r8, r15
sub r8, rdx
inc r8
lea rdx, [rcx + r13]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x88], r15
lea rcx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 0xf
seta r13b
mov r12, qword [rbp + 0xe0]
cmova rcx, r12
mov rbx, qword [rbp + 0xf0]
cmp rbx, 0xe
jne 0x1400343e0
mov r8, rbx
lea rdx, str.Content_Length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400343e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15, rax
lea rbx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rbx, qword [rbp + 0x78]
mov dword [rax], 0
mov r8d, 0xa
lea rdx, [rbp + 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov dword [rsp + 0x58], eax
cmp rbx, qword [rbp + 0x38]
je 0x140034777
cmp dword [r15], 0x22
je 0x140034769
mov byte [rsp + 0x4a], 1
mov edx, eax
mov qword [rbp + 0xd8], rdx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x30]
sub rcx, qword [rax + 0x20]
cmp rdx, rcx
jbe 0x1400342f1
lea rdx, [rbp + 0xd8]
lea rcx, [rax + 0x20]
call fcn.140036fe0
mov rbx, qword [rbp + 0x90]
cmp rbx, 0xf
jbe 0x140034330
lea rdx, [rbx + 1]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003432b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034785
call fcn.14003a700
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], recv
mov byte [rbp + 0x78], 0
test r13b, r13b
je 0x140034387
mov rdx, qword [rbp + 0xf8]
inc rdx
mov rax, r12
cmp rdx, 0x1000
jb 0x14003437f
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003478c
mov rcx, r12
call fcn.14003a700
mov rbx, qword [rbp + 0xb0]
cmp rbx, 0xf
mov r15, qword [rbp + 0xb8]
jbe 0x140033d50
lea rdx, [rbx + 1]
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400343cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034793
call fcn.14003a700
mov r15, qword [rbp + 0xb8]
jmp 0x140033d50
lea rcx, [rbp + 0xe0]
test r13b, r13b
cmovne rcx, r12
cmp rbx, 0x11
jne 0x1400342f1
mov r8, rbx
lea rdx, str.Transfer_Encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400342f1
lea rcx, [rbp + 0x78]
mov rbx, qword [rbp + 0x90]
cmp rbx, 0xf
cmova rcx, qword [rbp + 0x78]
cmp r15, 7
jne 0x140034a66
mov r8, r15
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140034a66
mov byte [rsp + 0x49], 1
jmp 0x1400342f8
mov byte [rsp + 0x4b], 1
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x140034494
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003448f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034793
call fcn.14003a700
mov r12d, dword [rsp + 0x4c]
mov r13, qword [rsp + 0x60]
cmp byte [rsp + 0x49], 0
je 0x140034694
nop dword [rax]
test r13, r13
je 0x14003452d
mov rax, r14
sub rax, r15
mov r12, r13
cmp rax, r13
cmovb r12, rax
lea rbx, [r15 + r12]
mov r9, rbx
sub r9, r15
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + 0x28]
mov r8, r15
add rcx, 0x20
call fcn.140037850
cmp r15, rbx
je 0x140034504
sub r14, rbx
mov r8, r14
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
add r14, r15
mov qword [rbp + 0xc0], r14
sub r13, r12
mov qword [rsp + 0x60], r13
mov r12d, dword [rsp + 0x4c]
movzx r12d, r12b
mov eax, 1
cmove r12d, eax
mov dword [rsp + 0x4c], r12d
cmp r15, r14
jne 0x1400344b0
jmp 0x140034722
test r12b, r12b
je 0x14003456b
mov rax, r14
sub rax, r15
cmp rax, 2
jb 0x140034722
xor r12b, r12b
mov dword [rsp + 0x4c], r12d
lea rdx, [r15 + 2]
cmp r15, rdx
je 0x14003456b
sub r14, rdx
mov r8, r14
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
add r14, r15
mov qword [rbp + 0xc0], r14
mov rbx, r14
mov rax, r14
sub rax, r15
cmp rax, 2
jl 0x1400345a5
lea rdx, [r14 - 2]
cmp di, word [r15]
sete al
mov rcx, r15
test al, al
jne 0x1400345a2
nop dword [rax]
cmp rcx, rdx
je 0x1400345a5
inc rcx
cmp di, word [rcx]
sete al
test al, al
je 0x140034590
mov rbx, rcx
cmp rbx, r14
je 0x140034722
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x120]
call fcn.140036b20
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x1400345e2
sub r14, rdx
mov r8, r14
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
add r14, r15
mov qword [rbp + 0xc0], r14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, rax
lea rbx, [rbp + 0x120]
cmp qword [rbp + 0x138], 0xf
cmova rbx, qword [rbp + 0x120]
mov dword [rax], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rbp + 0x40]
je 0x1400347ee
cmp dword [r12], 0x22
je 0x1400347e0
mov r13d, eax
mov qword [rsp + 0x60], r13
mov rdx, qword [rbp + 0x138]
test eax, eax
je 0x14003479a
cmp rdx, 0xf
mov r12d, dword [rsp + 0x4c]
jbe 0x1400344b0
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034685
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400347cf
call fcn.14003a700
mov r12d, dword [rsp + 0x4c]
jmp 0x1400344b0
mov r9, r14
sub r9, r15
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rbx + 0x28]
mov r8, r15
lea rcx, [rbx + 0x20]
call fcn.140037850
cmp r15, r14
cmovne r14, r15
mov qword [rbp + 0xc0], r14
cmp byte [rsp + 0x4a], 0
je 0x140034722
mov rcx, qword [rbx + 0x28]
sub rcx, qword [rbx + 0x20]
mov eax, dword [rsp + 0x58]
cmp rcx, rax
jb 0x140034722
test r15, r15
je 0x140034805
mov rdx, qword [rbp + 0xc8]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1400347fc
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400347fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r13, qword [rsp + 0x60]
mov r12d, dword [rsp + 0x4c]
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x180]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x140034a9e
movzx ebx, byte [rsp + 0x4b]
jmp 0x140033d10
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
nop
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rdx, 0xf
jbe 0x1400346d5
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400347d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400347d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
jmp 0x1400346d5
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
nop
mov rcx, r15
call fcn.14003a700
nop
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x140034849
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034844
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140034844
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a700
mov qword [rbp + 0x110], 0
mov qword [rbp + 0x118], recv
mov byte [rbp + 0x100], 0
cmp rsi, 0xffffffffffffffff
je 0x140034876
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x1180]
xor rcx, rsp
call fcn.14003a610
add rsp, 0x1298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x58]
call fcn.140032970
lea rdx, [0x140048c10]
lea rcx, [rbp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x58]
call fcn.140032970
lea rdx, [0x140048c10]
lea rcx, [rbp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp + 0x58]
call fcn.140032970
lea rdx, [0x140048c10]
lea rcx, [rbp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r8, r13
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp - 0x80]
call fcn.140036ab0
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.140032960
mov r8, rax
mov r9, rbx
lea rcx, [rbp - 0x28]
call fcn.1400325e0
lea rdx, [0x140048b00]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.140032960
mov r8, rax
lea r9, str.Failed_to_create_socket
lea rcx, [rbp - 0x28]
call fcn.140032620
lea rdx, [0x140048b00]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov r8, r13
lea rdx, str.Failed_to_connect_to
lea rcx, [rbp - 0x80]
call fcn.140036ab0
nop
lea r8, [0x140042638]
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.1400369d0
nop
mov r8, qword [rsp + 0x70]
mov rdx, rax
lea rcx, [rbp + 0xb8]
call fcn.140036a40
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.140032960
mov r8, rax
mov r9, rbx
lea rcx, [rbp]
call fcn.1400325e0
lea rdx, [0x140048b00]
lea rcx, [rbp]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140032270
nop
call fcn.140032270
int3
call fcn.140032270
int3
mov r8, r14
lea rdx, str.Failed_to_send_data_to
lea rcx, [rbp - 0x80]
call fcn.140036ab0
nop
lea r8, [0x140042638]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400369d0
nop
mov r8, qword [rsp + 0x70]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140036a40
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.140032960
mov r8, rax
mov r9, rbx
lea rcx, [rbp]
call fcn.1400325e0
lea rdx, [0x140048b00]
lea rcx, [rbp]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x78]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rbp - 0x28]
call fcn.140036ab0
nop
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400329e0
lea rdx, [0x140048c80]
lea rcx, [rbp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140036800
nop
mov r14, qword [rbp - 0x58]
mov r8, r14
lea rdx, str.Failed_to_read_data_from
lea rcx, [rbp - 0x28]
call fcn.140036ab0
nop
lea r8, [0x140042638]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400369d0
nop
mov r8, qword [rsp + 0x70]
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.140036a40
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.140032960
mov r8, rax
mov r9, rbx
lea rcx, [rbp]
call fcn.1400325e0
lea rdx, [0x140048b00]
lea rcx, [rbp]
call sub.VCRUNTIME140.dll__CxxThrowException
int3