Function at 0x140010810
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, 0x10e8
call fcn.14002d820
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1060], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp + 0xff8], rdx
mov qword [rbp + 0x1000], 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 0x140010bd5
mov rdi, rax
lea r8, [0x140001300]
push 0x54
pop rdx
push 4
pop r9
mov rcx, rax
call sub.winhttp.dll_WinHttpSetOption
lea rax, [0x13fffaea1]
lea rdx, [rbp - 0x48]
mov qword [rdx], rax
mov rcx, qword [rdx]
movabs rax, 0xa518dffbce3d9681
mov qword [rdx], rax
lea rbx, [rbp - 0x48]
mov rdx, qword [rbx]
call fcn.14000f9f9
and dword [rbx + 8], 0
and qword [rbx], 0
mov r10b, 1
xor r9d, r9d
lea rcx, [0x140001304]
movabs rdx, 0x369baded34616800
push 8
pop r8
test r10b, 1
je 0x1400108ef
movzx r10d, byte [r9 + rcx]
or r10, rdx
xor r10, qword [rax + r9]
mov qword [rbp + r9 - 0x48], r10
xor r10d, r10d
mov r9, r8
jmp 0x1400108d0
push 8
pop rdx
cmp rdx, 0xb
ja 0x140010920
movzx r8d, byte [rdx + rcx + 2]
shl r8d, 0x10
movzx r9d, word [rdx + rcx]
add r8d, r9d
add r8d, 0x27000000
xor r8d, dword [rax + rdx]
mov dword [rbp + rdx - 0x48], r8d
add rdx, 4
jmp 0x1400108f2
movzx eax, word [rax + 0xc]
xor eax, 0x4f4
lea rbx, [rbp - 0x48]
mov word [rbx + 0xc], ax
mov rax, qword [rbx]
lea r14, [rbp + 0x1030]
mov qword [r14], rax
mov rax, qword [rbx + 6]
mov qword [r14 + 6], rax
lea r15, [rbp + 0xfd0]
push 0xe
pop r8
mov rcx, r15
mov rdx, r14
call fcn.14000f16f
mov rdx, qword [r15 + 8]
mov r8, qword [r15 + 0x10]
mov rcx, rbx
mov qword [rbp + 0x1058], rdx
call fcn.140010699
mov r15, qword [rbp - 0x40]
mov rcx, rdi
mov rdx, r15
mov r8w, 0x1bb
xor r9d, r9d
call sub.winhttp.dll_WinHttpConnect
mov rbx, rax
mov rcx, qword [rbp - 0x48]
mov rdx, r15
call fcn.14000eb00
test rbx, rbx
je 0x140010c1c
lea rax, [rbp + 0xff8]
lea rcx, [rbp + 0x1008]
mov qword [rcx], rax
mov qword [rbp + 0x1030], rcx
lea rax, [0x140001318]
lea rdx, [rbp - 0x48]
mov qword [rdx], rax
push 1
pop rax
mov qword [rdx + 8], rax
and qword [rdx + 0x20], 0
lea rcx, [0x14000e9c6]
mov qword [rbp + 0x1038], rcx
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], rax
lea rcx, [rbp + 0xfb8]
call fcn.14000f22a
mov rax, qword [rbp + 0xfb8]
mov qword [rbp + 0x1050], rax
mov rax, qword [rbp + 0xfc0]
mov qword [rbp + 0x1048], rax
mov r14, qword [rbp + 0xfc8]
lea rdx, [0x140001328]
lea rcx, [rbp + 0x1030]
push 3
pop r8
call fcn.140010699
mov rax, qword [rbp + 0x1038]
mov qword [rbp + 0x1020], rax
lea rcx, [rbp - 0x48]
mov rdx, qword [rbp + 0x1048]
mov r8, r14
call fcn.140010699
mov r15, qword [rbp - 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0x800100
mov rcx, rbx
mov r12, qword [rbp + 0x1020]
mov rdx, r12
mov r8, r15
xor r9d, r9d
call sub.winhttp.dll_WinHttpOpenRequest
mov r14, rax
mov rcx, qword [rbp - 0x48]
mov rdx, r15
call fcn.14000eb00
mov rcx, qword [rbp + 0x1030]
mov rdx, r12
call fcn.14000eb00
test r14, r14
je 0x140010c72
lea r8, [rbp + 0xff4]
mov dword [r8], 0x3300
push 0x1f
pop rdx
push 4
pop r9
mov rcx, r14
call sub.winhttp.dll_WinHttpSetOption
lea rcx, [rbp + 0x1008]
push 8
pop rdx
call fcn.14000f312
mov rdx, qword [rbp + 0xff8]
mov r8, qword [rbp + 0x1000]
lea rcx, [rbp + 0x1008]
call fcn.14000f26f
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 0x140010d2f
mov rcx, r14
xor edx, edx
call sub.winhttp.dll_WinHttpReceiveResponse
test eax, eax
je 0x140010d60
lea r9, [rbp + 0xff0]
and dword [r9], 0
lea rax, [rbp + 0xfec]
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 + 0x1030]
and qword [r15], 0
mov qword [r15 + 8], 1
and qword [r15 + 0x10], 0
lea r12, [rbp + 0x102c]
and dword [r12], 0
lea r13, [rbp - 0x48]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.14002f060
mov rcx, r14
mov rdx, r13
mov r8d, 0x1000
mov r9, r12
call sub.winhttp.dll_WinHttpReadData
test eax, eax
je 0x140010cc9
mov r8d, dword [rbp + 0x102c]
test r8d, r8d
je 0x140010cc9
cmp r8d, 0x1001
jae 0x140010e0b
mov rcx, r15
mov rdx, r13
call fcn.14000f26f
jmp 0x140010b7f
lea rcx, [rbp - 0x48]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f16f
push 0x18
pop rcx
call fcn.14000f36a
mov rcx, qword [rbp - 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x140001350]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140010df6
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x48]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f16f
push 0x18
pop rcx
call fcn.14000f36a
mov rcx, qword [rbp - 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x140001350]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rsi, qword [rbp + 0x1058]
jmp 0x140010de7
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x48]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f16f
push 0x18
pop rcx
call fcn.14000f36a
mov rcx, qword [rbp - 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x140001350]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140010dcd
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x1040]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp + 0x1030]
movups xmmword [rsi], xmm0
mov rcx, qword [rbp + 0x1008]
mov rdx, qword [rbp + 0x1010]
call fcn.14000ea9e
mov rcx, qword [rbp + 0x1050]
mov rdx, qword [rbp + 0x1048]
call fcn.14000ea9e
mov rcx, qword [rbp + 0xfd0]
mov rdx, qword [rbp + 0x1058]
jmp 0x140010df1
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x48]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f16f
push 0x18
pop rcx
call fcn.14000f36a
jmp 0x140010d8f
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rcx, [rbp - 0x48]
push 1
pop rdx
xor r8d, r8d
call fcn.14000f16f
push 0x18
pop rcx
call fcn.14000f36a
mov rcx, qword [rbp - 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x140001350]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rcx, qword [rbp + 0x1008]
mov rdx, qword [rbp + 0x1010]
call fcn.14000ea9e
mov rsi, qword [rbp + 0x1058]
mov rcx, qword [rbp + 0x1050]
mov rdx, qword [rbp + 0x1048]
call fcn.14000ea9e
mov rcx, qword [rbp + 0xfd0]
mov rdx, rsi
call fcn.14000ea9e
nop
add rsp, 0x10e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x1400013c0]
mov edx, 0x1000
mov rcx, r8
mov r8, rax
call fcn.14003be80
ud2