Function at 0x180016f30
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov rax, qword [0x1800a2008]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r13, r9
mov word [rsp + 0x44], r8w
mov r15, rdx
mov qword [rsp + 0x58], rcx
movzx eax, byte [rbp + 0x4a8]
mov byte [rsp + 0x40], al
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], r9
mov rbx, qword [rbp + 0x490]
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], rbx
mov rax, qword [rbp + 0x498]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x60], rax
mov r12, qword [rbp + 0x4a0]
mov qword [rbp - 0x58], r12
xor eax, eax
mov dword [rsp + 0x48], eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x68], rax
mov esi, eax
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 6
jb 0x1800175d8
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x180016ff5
mov rax, qword [rdx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.Host:
lea rcx, [rbp - 0x50]
call fcn.18000a890
mov r14d, 3
mov dword [rsp + 0x48], r14d
mov rdi, qword [rbx]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x180017167
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x30]
call fcn.180008120
nop
cmp qword [rbp - 0x40], 2
jae 0x180017067
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
lea rcx, [rbp - 0x50]
call fcn.180008fd0
jmp 0x180017115
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x20]
sub rax, rcx
cmp rax, 2
jb 0x1800175d2
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rax, qword [rbp - 0x30]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 2
lea r9, [0x18008ead8]
lea rcx, [rbp - 0x10]
call fcn.18000a890
or r14d, 4
mov dword [rsp + 0x48], r14d
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
lea rcx, [rbp - 0x50]
call fcn.180008fd0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x180017115
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001710f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180017159
call fcn.18002e10c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x180017151
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001714c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180017160
call fcn.18002e10c
mov rbx, qword [rbx]
jmp 0x180017029
call qword [0x18008f290]
nop
call qword [0x18008f290]
int3
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180017179
mov rcx, qword [rbx]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
je 0x180017214
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x1800171a4
mov rdx, qword [r15]
xor r9d, r9d
movzx r8d, word [rsp + 0x44]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x180017214
mov rcx, r12
cmp qword [r12 + 0x18], 8
jb 0x1800171d2
mov rcx, qword [r12]
mov r8, r13
cmp qword [r13 + 0x18], 8
jb 0x1800171e0
mov r8, qword [r13]
movzx edi, byte [rsp + 0x40]
mov eax, edi
shl eax, 0x17
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea rdx, [0x18008e6f0]
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
jmp 0x180017219
movzx edi, byte [rsp + 0x40]
test dil, dil
je 0x18001723e
mov dword [rsp + 0x44], 0x3300
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x1b]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test rsi, rsi
je 0x18001740d
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, dword [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18001740d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18001740d
lea ecx, [rdi + 0x20]
call fcn.18002e0d0
mov rbx, rax
mov qword [rsp + 0x60], rax
mov qword [rax], rdi
mov qword [rax + 8], rdi
lea ecx, [rdi + 0x20]
call fcn.18002e0d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
mov byte [rbx + 0x18], dil
mov qword [rsp + 0x60], rbx
lea ecx, [rdi + 0x18]
call fcn.18002e0d0
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_class_DataBuffer_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
mov rdi, qword [rsp + 0x58]
mov qword [rdi], rbx
mov rbx, qword [rdi + 8]
mov qword [rdi + 8], rax
test rbx, rbx
je 0x180017339
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180017334
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180017334
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rdi, qword [rsp + 0x58]
xor ebx, ebx
mov dword [rsp + 0x44], ebx
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18001739f
cmp dword [rsp + 0x44], ebx
je 0x18001739f
lea r9, [rsp + 0x60]
mov r8d, 4
lea rdx, [rbp + 0x10]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18001739f
mov r8d, dword [rsp + 0x60]
test r8d, r8d
je 0x18001739f
lea rdx, [rbp + 0x10]
mov rcx, qword [rdi]
call fcn.18000cb90
mov dword [rsp + 0x44], ebx
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x180017351
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1800173c0
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r14, r14
je 0x1800173cf
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x180017433
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001742e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001742e
call qword [0x18008f290]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, eax
lea rcx, str.GetLastError_____d__0x_X__n
call fcn.1800042f0
test rsi, rsi
je 0x1800173ad
jmp 0x1800173a4
call fcn.18002e10c
xor edi, edi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], di
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x180017484
mov rcx, qword [r15]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18001747f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800175b6
mov rcx, r8
call fcn.18002e10c
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 7
mov word [r15], di
mov rdx, qword [r13 + 0x18]
cmp rdx, 8
jb 0x1800174d4
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800174cf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800175bd
mov rcx, r8
call fcn.18002e10c
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], 7
mov word [r13], di
mov rcx, qword [rsp + 0x70]
call fcn.180007910
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x18001752f
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x18001752a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800175c4
mov rcx, r8
call fcn.18002e10c
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rdx, qword [r12 + 0x18]
cmp rdx, 8
jb 0x18001757b
lea rdx, [rdx*2 + 2]
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x180017576
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800175cb
mov rcx, r8
call fcn.18002e10c
mov qword [r12 + 0x10], rdi
mov qword [r12 + 0x18], 7
mov word [r12], di
mov rax, qword [rsp + 0x58]
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.18002e0b0
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [0x18008f290]
nop
call qword [0x18008f290]
nop
call qword [0x18008f290]
nop
call qword [0x18008f290]
nop
call fcn.180004410
nop
call fcn.180004410
int3