Function at 0x18001b2a0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x230
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
movabs rax, 0x891518e3bbd47590
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x40], rax
movabs rax, 0x4df9a6fd12092b8a
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x48], rax
movabs rax, 0xfb38a91711528c72
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x50], rax
movabs r13, 0xa617ae62e43774a8
mov qword [rbp + 8], r13
mov rax, qword [rbp + 8]
mov qword [rbp + 0x58], rax
movabs r12, 0x897c1899bbbb75dd
mov qword [rbp + 8], r12
mov rax, qword [rbp + 8]
mov qword [rbp + 0x160], rax
movabs r14, 0x4dd6a69c12652be6
mov qword [rbp + 8], r14
mov rax, qword [rbp + 8]
mov qword [rbp + 0x168], rax
movabs rbx, 0xfb38a927117c8c47
mov qword [rbp + 8], rbx
mov rax, qword [rbp + 8]
mov qword [rbp + 0x170], rax
mov qword [rbp + 8], r13
mov rax, qword [rbp + 8]
mov qword [rbp + 0x178], rax
vmovdqu ymm0, ymmword [rbp + 0x40]
vpxor ymm1, ymm0, ymmword [rbp + 0x160]
vmovdqu ymmword [rbp + 0x40], ymm1
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
vzeroupper
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x18001b658
movabs rax, 0x891f18eabbd275b9
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x60], rax
movabs rax, 0x4df8a6f812172b89
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
movabs rax, 0xfb38a94a11138c24
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x70], rax
mov qword [rbp + 8], r13
mov rax, qword [rbp + 8]
mov qword [rbp + 0x78], rax
mov qword [rbp + 8], r12
mov rax, qword [rbp + 8]
mov qword [rbp + 0x180], rax
mov qword [rbp + 8], r14
mov rax, qword [rbp + 8]
mov qword [rbp + 0x188], rax
mov qword [rbp + 8], rbx
mov rax, qword [rbp + 8]
mov qword [rbp + 0x190], rax
mov qword [rbp + 8], r13
mov rax, qword [rbp + 8]
mov qword [rbp + 0x198], rax
vmovdqu ymm0, ymmword [rbp + 0x60]
vpxor ymm1, ymm0, ymmword [rbp + 0x180]
vmovdqu ymmword [rbp + 0x60], ymm1
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, [rbp + 0x60]
mov rcx, r15
vzeroupper
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, rax
mov qword [rbp + 8], rax
test rax, rax
je 0x18001b64f
movabs rax, 0x891518e9bbda75f2
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movabs rax, 0x4df9a6a512132bc9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
movabs rax, 0xfb4aa942110f8c32
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x90], rax
movabs rax, 0xa67aae22e41874db
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x98], rax
movabs rax, 0x3baf30ed0152cd74
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa0], rax
movabs rcx, 0x14225300d2a7466a
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x120], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x128], rax
movabs rax, 0xfb38a927117c8c47
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x130], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x138], rax
movabs rax, 0x3baf30ed0152cd11
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x140], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x148], rax
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm1, ymm0, ymmword [rbp + 0x120]
vmovdqa ymmword [rbp + 0x80], ymm1
vmovdqa xmm0, xmmword [rbp + 0xa0]
vpxor xmm0, xmm0, xmmword [rbp + 0x140]
vmovdqa xmmword [rbp + 0xa0], xmm0
movabs rax, 0x897c18cdbbfe759a
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x110], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
vmovdqa xmm0, xmmword [rbp + 0x10]
vpxor xmm0, xmm0, xmmword [rbp + 0x110]
vmovdqa xmmword [rbp + 0x10], xmm0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0x10]
mov rcx, rbx
vzeroupper
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
jne 0x18001b65f
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x18001b98b
mov rbx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x18001b672
add rbx, qword [rdi]
mov rdi, qword [rdi]
jmp 0x18001b675
add rbx, rdi
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd8], rsi
mov r14d, 7
mov qword [rbp + 0xe0], r14
mov word [rbp + 0xc8], si
mov rdx, rbx
sub rdx, rdi
lea rcx, [rbp + 0xc8]
call fcn.180040160
lea rax, [rbp + 0xc8]
mov qword [rbp], rax
cmp rdi, rbx
je 0x18001b6d7
nop dword [rax]
movsx edx, byte [rdi]
lea rcx, [rbp + 0xc8]
call fcn.180040280
inc rdi
cmp rdi, rbx
jne 0x18001b6c0
mov qword [rbp], rsi
movabs rax, 0x891418edbbce759c
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x4daca6f512172b89
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xfb57a94e11088c26
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0xa617ae42e40d74c6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0x897c1899bbbb75dd
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1a0], rax
movabs rax, 0x4dd6a69c12652be6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1a8], rax
movabs rax, 0xfb38a927117c8c47
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x1b0], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x1b8], rax
vmovdqu ymm0, ymmword [rbp + 0x20]
vpxor ymm1, ymm0, ymmword [rbp + 0x1a0]
vmovdqu ymmword [rbp + 0x20], ymm1
lea rax, [rbp + 0x20]
mov r8, 0xffffffffffffffff
mov rbx, r8
vzeroupper
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18001b7b0
mov rcx, qword [rbp + 0xd8]
mov qword [rbp], rcx
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, rcx
cmp rax, rbx
jb 0x18001b9bb
lea rax, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rax, qword [rbp + 0xc8]
mov qword [rbp + 0x110], rax
mov qword [rbp + 0xe8], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf8], xmm0
lea r13, [rcx + rbx]
lea rdi, [rbp + 0xe8]
cmp r13, 7
jbe 0x18001b856
mov r14, r13
or r14, 7
cmp r14, rdx
jbe 0x18001b830
mov r14, rdx
jmp 0x18001b83c
mov eax, 0xa
cmp r14, rax
cmovb r14, rax
mov rdx, r14
add rdx, 1
cmovb rdx, r8
call fcn.180041d00
mov rdi, rax
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf8], r13
mov qword [rbp + 0x100], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x20]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8, qword [rbp]
add r8, r8
mov rdx, qword [rbp + 0x110]
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + r13*2], si
lea rdx, [rbp + 0xe8]
cmp qword [rbp + 0x100], 8
cmovae rdx, qword [rbp + 0xe8]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18001b954
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18001b954
mov dword [rbp + 0xc0], esi
mov dword [rbp + 0xc4], 4
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0xc4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xc0]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rbp + 0xc0], 0xc8
sete sil
jmp 0x18001b970
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [rbp + 0xe8]
call fcn.180041300
nop
lea rcx, [rbp + 0xc8]
call fcn.180041300
mov eax, esi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18012be40
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800012d0
nop
int3