Function at 0x140001770
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 - 0x48]
sub rsp, 0x148
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, r9
mov qword [rsp + 0x68], r9
mov edi, r8d
mov r15, rdx
mov qword [rsp + 0x70], rdx
mov rbx, rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r9
xor r13d, r13d
mov dword [rsp + 0x40], r13d
lea rcx, [rbp + 0x10]
call fcn.140001660
nop
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.140001660
nop
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r13b
mov esi, 1
mov dword [rsp + 0x40], esi
mov dword [rbp - 0x30], r13d
mov dword [rbp - 0x18], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.test
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140001b64
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
xor r9d, r9d
movzx r8d, di
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140001b5a
lea r8, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae r8, qword [rbp - 0x10]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, [0x140009850]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r13, rax
test rax, rax
je 0x140001b4e
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001b45
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001b45
xor r15d, r15d
nop dword [rax + rax]
mov dword [rbp - 0x30], r15d
lea rdx, [rbp - 0x30]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp - 0x30]
inc ecx
call fcn.1400075fc
mov r12, rax
test rax, rax
je 0x140001b2e
mov r8d, dword [rbp - 0x30]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x30]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001b15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r12 + r8], 0
jne 0x140001940
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.140005a60
nop
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001965
mov rdi, qword [rbx]
mov r14, qword [rbx + 0x10]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, r8
cmp r14, rax
ja 0x1400019f9
lea rax, [r14 + r8]
mov qword [rsp + 0x58], rax
lea rsi, [rsp + 0x48]
cmp rcx, 0x10
cmovae rsi, qword [rsp + 0x48]
lea rax, [r14 + rdi]
cmp rax, rsi
jbe 0x1400019b5
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x1400019b5
cmp rsi, rdi
jbe 0x1400019b8
mov r15, rsi
sub r15, rdi
jmp 0x1400019b8
mov r15, r14
inc r8
lea rcx, [rsi + r14]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
sub r8, r15
lea rdx, [r15 + r14]
add rdx, rdi
lea rcx, [rsi + r15]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x48]
mov esi, dword [rsp + 0x40]
xor r15d, r15d
jmp 0x140001a10
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140006b40
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 2
mov dword [rsp + 0x40], esi
lea rax, [rbp - 0x78]
cmp rbx, rax
je 0x140001a9c
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001a88
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001a7b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001b20
mov rcx, r8
call fcn.140006e64
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x140001ad4
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140001ad4
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ace
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b20
call fcn.140006e64
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140001b0d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b27
call fcn.140006e64
mov rcx, r12
call fcn.140006e64
cmp dword [rbp - 0x30], 0
jbe 0x140001b32
jmp 0x1400018d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rbp - 0x30], r15d
mov r12, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x140001ba7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ba2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ba2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006e64
mov qword [rbp], r13
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r13w
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140001bfb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bf6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006e64
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r13w
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140001c46
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x140001c41
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001cbf
mov rcx, r8
call fcn.140006e64
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140001c8c
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140001c87
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001cc6
mov rcx, r8
call fcn.140006e64
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rax, rbx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140006e40
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3