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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp + 0x17], rcx
xor r14d, r14d
mov dword [rbp - 0x39], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r14b
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.fergejrgjejrjrgejgejgrjrg_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
mov qword [rbp - 0x31], rax
test rax, rax
je 0x14000187f
cmp qword [rbx + 0x18], 0xf
jbe 0x1400015df
mov r8, qword [rbx]
add r8, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x1400015e6
mov r8, qword [rbx + 0x10]
add r8, rbx
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140002f60
cmp qword [rax + 0x18], 7
jbe 0x1400015fc
mov rax, qword [rax]
mov r8d, 0x50
xor r9d, r9d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140001657
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001652
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001652
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003c50
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r14w
test r12, r12
je 0x140001876
cmp qword [rdi + 0x18], 0xf
jbe 0x140001684
mov r8, qword [rdi]
add r8, qword [rdi + 0x10]
mov rdi, qword [rdi]
jmp 0x14000168b
mov r8, qword [rdi + 0x10]
add r8, rdi
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.140002f60
cmp qword [rax + 0x18], 7
jbe 0x1400016a1
mov rax, qword [rax]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rax
lea rdx, [0x140020c38]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x14000170c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001707
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001707
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003c50
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r14w
test r15, r15
je 0x14000186d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001864
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001864
xor r13d, r13d
mov dword [rbp + 0x23], r13d
nop dword [rax + rax]
mov dword [rbp + 0x1f], r13d
lea rdx, [rbp + 0x1f]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400017ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400030b0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._in_WinHttpQueryDataAvailable._n
call fcn.1400030b0
mov eax, dword [rbp + 0x1f]
test eax, eax
je 0x140001860
lea ecx, [rax + 1]
call fcn.140003ed4
mov r14, rax
mov r8d, dword [rbp + 0x1f]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x23]
mov r8d, dword [rbp + 0x1f]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000184e
mov edi, dword [rbp + 0x23]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14000183b
lea rax, [rcx + rdi]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x140001823
mov rax, qword [rsi]
lea rbx, [rax + rcx]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], r13b
jmp 0x14000184e
mov qword [rsp + 0x20], rdi
mov r9, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140003280
mov rcx, r14
call fcn.140003c50
cmp dword [rbp + 0x1f], r13d
ja 0x140001770
mov r13, qword [rbp - 0x31]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140003c30
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret