Function at 0x1800175e0
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 - 0x448]
sub rsp, 0x548
mov rax, qword [0x1800a2008]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rax, r9
mov qword [rsp + 0x70], rax
mov word [rsp + 0x44], r8w
mov r12, rdx
mov qword [rsp + 0x60], rcx
movzx edx, byte [rbp + 0x4d0]
mov byte [rsp + 0x40], dl
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x4b0]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x68], rax
mov rbx, qword [rbp + 0x4b8]
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x60], rbx
mov rax, qword [rbp + 0x4c0]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x40], rax
mov r13, qword [rbp + 0x4c8]
mov qword [rbp - 0x38], r13
xor r15d, r15d
mov dword [rsp + 0x48], r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x68], r15
mov r14d, r15d
mov rcx, qword [r12 + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 6
jb 0x180017d04
mov rax, r12
cmp qword [r12 + 0x18], 8
jb 0x1800176bd
mov rax, qword [r12]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.Host:
lea rcx, [rbp - 0x30]
call fcn.18000a890
mov esi, 3
mov dword [rsp + 0x48], esi
mov rdi, qword [rbx]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x18001782b
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x10]
call fcn.180008120
nop
cmp qword [rbp - 0x20], 2
jae 0x18001772d
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
lea rcx, [rbp - 0x30]
call fcn.180008fd0
jmp 0x1800177d9
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp]
sub rax, rcx
cmp rax, 2
jb 0x180017cfe
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
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 esi, 4
mov dword [rsp + 0x48], esi
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
lea rcx, [rbp - 0x30]
call fcn.180008fd0
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x1800177d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800177d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001781d
call fcn.18002e10c
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x180017815
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180017810
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180017824
call fcn.18002e10c
mov rbx, qword [rbx]
jmp 0x1800176ef
call qword [0x18008f290]
nop
call qword [0x18008f290]
int3
xor ebx, ebx
mov dword [rsp + 0x4c], ebx
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
cmp dword [rcx + 0x10], ebx
je 0x180017857
lea r9, [rsp + 0x4c]
xor edx, edx
mov r8d, 0xffffffff
call fcn.18000d1a0
mov r15, rax
mov ebx, dword [rsp + 0x4c]
mov rax, qword [rbp - 0x80]
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x180017868
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
je 0x18001790c
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x180017899
mov rdx, qword [r12]
xor r9d, r9d
movzx r8d, word [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18001790c
mov rcx, r13
cmp qword [r13 + 0x18], 8
jb 0x1800178c6
mov rcx, qword [r13]
mov rax, qword [rsp + 0x70]
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x1800178d8
mov r8, qword [rax]
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, [0x18008eb00]
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
jmp 0x180017911
movzx edi, byte [rsp + 0x40]
test dil, dil
je 0x180017936
mov dword [rsp + 0x50], 0x3300
mov r9d, 4
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x1b]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, 0xffffffff
test r14, r14
je 0x180017aae
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9, r15
mov r8d, dword [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x180017aa5
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180017aa5
lea ecx, [rdi + 0x21]
call fcn.18002e0d0
mov rbx, rax
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
lea ecx, [rdi + 0x21]
call fcn.18002e0d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov byte [rbx + 0x18], al
mov qword [rbp - 0x58], rbx
lea ecx, [rdi + 0x19]
call fcn.18002e0d0
mov qword [rsp + 0x58], 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 rcx, qword [rsp + 0x60]
mov qword [rcx], rbx
mov rbx, qword [rcx + 8]
mov qword [rcx + 8], rax
test rbx, rbx
je 0x180017a33
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180017a33
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180017a33
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180017aa5
mov rbx, qword [rsp + 0x60]
cmp dword [rsp + 0x44], 0
je 0x180017aa5
lea r9, [rsp + 0x58]
mov r8d, 4
lea rdx, [rbp + 0x30]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180017aa5
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x180017aa5
lea rdx, [rbp + 0x30]
mov rcx, qword [rbx]
call fcn.18000cb90
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x180017a52
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x180017ac1
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x180017acf
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x180017adf
xor edx, edx
mov rcx, r15
call fcn.18002e10c
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x180017b22
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180017b1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180017b1d
call qword [0x18008f290]
int3
call fcn.18002e10c
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov rdx, qword [r12 + 0x18]
cmp rdx, 8
jb 0x180017b75
mov rcx, qword [r12]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180017b70
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180017ce2
mov rcx, r8
call fcn.18002e10c
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], 7
mov word [r12], si
mov rbx, qword [rsp + 0x70]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180017bcc
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180017bc7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180017ce9
mov rcx, r8
call fcn.18002e10c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rax, qword [rsp + 0x78]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x180017c11
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180017c11
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180017c11
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x78]
call fcn.180007910
nop
mov rbx, qword [rbp - 0x80]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180017c5e
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180017c59
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180017cf0
mov rcx, r8
call fcn.18002e10c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [r13 + 0x18]
cmp rdx, 8
jb 0x180017ca9
lea rdx, [rdx*2 + 2]
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x180017ca4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180017cf7
mov rcx, r8
call fcn.18002e10c
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], 7
mov word [r13], si
mov rax, qword [rsp + 0x60]
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.18002e0b0
add rsp, 0x548
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