Function at 0x140016bc9
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1128
call fcn.14002ef00
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10a0], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp + 0x1050], rdx
mov qword [rbp + 0x1058], r8
and dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.winhttp.dll_WinHttpOpen
test rax, rax
je 0x140016fd0
mov rdi, rax
mov qword [rbp + 0x1098], rsi
lea r8, [0x14000161c]
push 0x54
pop rdx
push 4
pop r9
mov rcx, rax
call sub.winhttp.dll_WinHttpSetOption
lea rcx, [0x14000163c]
push 2
pop rdx
call fcn.14001b9d0
mov ebx, edx
lea rsi, [0x140001658]
test al, 1
jne 0x140017216
mov qword [rbp + 0x1048], rdi
push 0xe
pop r15
push 1
pop rdx
mov rcx, r15
mov r8, rdx
call fcn.14000fa0b
lea rcx, [rbp - 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
and qword [rcx + 0x10], 0
mov rdx, r15
call fcn.14000f4bc
mov r14, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
xor edi, edi
lea r15, [0x140001620]
push 0x1c
pop r12
xor r8d, r8d
cmp rdi, 0xe
jae 0x140016cf8
mov qword [rbp + 0x1090], rax
lea r13, [r8 + 2]
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r12
mov r9, r13
call fcn.14000ee71
mov rcx, rax
call fcn.14001b9d0
test al, 1
jne 0x1400171d6
inc rdi
xor dl, bl
mov rax, qword [rbp + 0x1090]
mov byte [r14 + rax], dl
inc rax
mov r8, r13
jmp 0x140016cac
movups xmm0, xmmword [rbp - 0x40]
lea rdx, [rbp + 0xfc0]
movaps xmmword [rdx], xmm0
mov qword [rdx + 0x10], rax
lea r15, [rbp + 0x1060]
mov rcx, r15
call fcn.14000f7ce
xor eax, eax
cmp rax, qword [r15]
jno 0x140017238
mov r8, qword [rbp + 0x1078]
mov qword [rbp - 0x30], r8
movups xmm0, xmmword [rbp + 0x1068]
movaps xmmword [rbp - 0x40], xmm0
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp + 0x1030]
call fcn.140018140
mov rsi, qword [rbp + 0x1048]
lea rcx, [rbp - 0x40]
call fcn.14000ec2d
mov rdx, qword [rbp + 0x1038]
mov r8, qword [rbp + 0x1040]
lea rcx, [rbp - 0x40]
call fcn.140010844
mov r12, qword [rbp - 0x38]
mov rcx, rsi
mov rdx, r12
mov r8w, 0x1bb
xor r9d, r9d
call sub.winhttp.dll_WinHttpConnect
mov rbx, rax
mov rcx, qword [rbp - 0x40]
mov rdx, r12
call fcn.14000ec87
test rbx, rbx
je 0x140017017
lea rax, [rbp + 0x1050]
lea rcx, [rbp + 0x1018]
mov qword [rcx], rax
mov qword [rbp + 0x1060], rcx
lea rax, [0x140001678]
lea rdx, [rbp - 0x40]
mov qword [rdx], rax
push 1
pop rcx
mov qword [rdx + 8], rcx
and qword [rdx + 0x20], 0
lea rax, [0x14000eb55]
mov qword [rbp + 0x1068], rax
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], rcx
lea rcx, [rbp + 0xfd8]
call fcn.14000f405
movups xmm0, xmmword [rbp + 0xfd8]
movaps xmmword [rbp + 0xff0], xmm0
mov rax, qword [rbp + 0xfe8]
mov qword [rbp + 0x1000], rax
lea rdx, [0x140001688]
lea rcx, [rbp + 0x1060]
push 3
pop r8
call fcn.140010844
mov rax, qword [rbp + 0x1068]
mov qword [rbp + 0x1090], rax
mov rdx, qword [rbp + 0xff8]
mov r8, qword [rbp + 0x1000]
lea rcx, [rbp - 0x40]
call fcn.140010844
mov r15, qword [rbp - 0x38]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0x800100
mov rcx, rbx
mov rdi, qword [rbp + 0x1090]
mov rdx, rdi
mov r8, r15
xor r9d, r9d
call sub.winhttp.dll_WinHttpOpenRequest
mov r14, rax
mov rcx, qword [rbp - 0x40]
mov rdx, r15
call fcn.14000ec87
mov rcx, qword [rbp + 0x1060]
mov rdx, rdi
call fcn.14000ec87
test r14, r14
je 0x14001706d
lea r8, [rbp + 0x1014]
mov dword [r8], 0x3300
push 0x1f
pop rdx
push 4
pop r9
mov rcx, r14
call sub.winhttp.dll_WinHttpSetOption
lea rcx, [rbp + 0x1018]
push 8
pop rdx
call fcn.14000f4ed
mov rdx, qword [rbp + 0x1050]
mov r8, qword [rbp + 0x1058]
lea rcx, [rbp + 0x1018]
call fcn.14000f44a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.winhttp.dll_WinHttpSendRequest
test eax, eax
je 0x140017104
mov rcx, r14
xor edx, edx
call sub.winhttp.dll_WinHttpReceiveResponse
test eax, eax
je 0x14001713c
lea r9, [rbp + 0x1010]
and dword [r9], 0
lea rax, [rbp + 0x100c]
mov dword [rax], 4
mov qword [rsp + 0x20], rax
and qword [rsp + 0x28], 0
mov rcx, r14
mov edx, 0x20000013
xor r8d, r8d
call sub.winhttp.dll_WinHttpQueryHeaders
lea r15, [rbp + 0x1060]
and qword [r15], 0
mov qword [r15 + 8], 1
and qword [r15 + 0x10], 0
lea r12, [rbp + 0x108c]
and dword [r12], 0
lea r13, [rbp - 0x40]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.140030820
mov rcx, r14
mov rdx, r13
mov r8d, 0x1000
mov r9, r12
call sub.winhttp.dll_WinHttpReadData
test eax, eax
je 0x1400170cb
mov r8d, dword [rbp + 0x108c]
test r8d, r8d
je 0x1400170cb
cmp r8d, 0x1001
jae 0x1400171fd
mov rcx, r15
mov rdx, r13
call fcn.14000f44a
jmp 0x140016f7a
lea rcx, [rbp - 0x40]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f34a
push 0x18
pop rcx
call fcn.14000f545
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x1400016b0]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1400171c1
mov rcx, rsi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x40]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f34a
push 0x18
pop rcx
call fcn.14000f545
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov rcx, qword [rbp + 0x1098]
mov qword [rcx + 8], rax
lea rax, [0x1400016b0]
mov qword [rcx + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
jmp 0x1400171b5
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rsi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x40]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f34a
push 0x18
pop rcx
call fcn.14000f545
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov rcx, qword [rbp + 0x1098]
mov qword [rcx + 8], rax
lea rax, [0x1400016b0]
mov qword [rcx + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
jmp 0x1400171a9
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rsi
call sub.winhttp.dll_WinHttpCloseHandle
movups xmm0, xmmword [rbp + 0x1060]
mov rcx, qword [rbp + 0x1098]
movups xmmword [rcx], xmm0
mov rax, qword [rbp + 0x1070]
mov qword [rcx + 0x10], rax
jmp 0x14001719d
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rsi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x40]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f34a
push 0x18
pop rcx
call fcn.14000f545
mov rdx, qword [rbp + 0x1098]
jmp 0x140017172
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rsi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x40]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f34a
push 0x18
pop rcx
call fcn.14000f545
mov rdx, qword [rbp + 0x1098]
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov qword [rdx + 8], rax
lea rax, [0x1400016b0]
mov qword [rdx + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rdx], rax
lea rcx, [rbp + 0x1018]
call fcn.14000ec2d
lea rcx, [rbp + 0xfd8]
call fcn.14000ec2d
lea rcx, [rbp + 0x1030]
call fcn.14000ec2d
nop
add rsp, 0x1128
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [rbp + 0x1060]
mov byte [r8], dl
mov qword [rsp + 0x20], rsi
lea rcx, [0x140003b20]
lea r9, [0x1400012d8]
push 0x2b
pop rdx
call fcn.14003d7b0
jmp 0x140017279
lea rax, [0x140001708]
mov edx, 0x1000
mov rcx, r8
mov r8, rax
call fcn.14003d560
jmp 0x140017279
lea r8, [rbp - 0x40]
mov byte [r8], bl
mov qword [rsp + 0x20], rsi
lea rcx, [0x140003b20]
lea r9, [0x1400012d8]
push 0x2b
pop rdx
call fcn.14003d7b0
mov rax, qword [rbp + 0x1080]
lea r8, [rbp - 0x40]
mov qword [r8 + 0x20], rax
movups xmm0, xmmword [rbp + 0x1060]
movups xmm1, xmmword [rbp + 0x1070]
movaps xmmword [r8 + 0x10], xmm1
movaps xmmword [r8], xmm0
mov qword [rsp + 0x20], rsi
lea rcx, [0x140003b20]
lea r9, [0x1400012b8]
push 0x2b
pop rdx
call fcn.14003d7b0
ud2