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

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 0x20], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x30], 0
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x18], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.A_User_Agent
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x140001d79
mov rdx, qword [section..data]
mov rax, qword [rbp - 0x20]
mov r9d, 0
mov r8d, 0x1bb
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001dc2
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, [0x14000f36e]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001e31
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001e31
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpSendRequest._n
mov rcx, rax
call fcn.140001493
jmp 0x140001f5a
cmp dword [rbp - 0x14], 0
je 0x140001f2a
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001f2a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x28], eax
mov eax, dword [rbp - 0x28]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpReceiveResponse._n
mov rcx, rax
call fcn.140001493
jmp 0x140001f5a
lea rdx, [rbp - 0x30]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x140001f37
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x140001f37
mov edx, dword [rbp - 0x30]
mov eax, dword [rbp - 0x18]
add eax, edx
cmp eax, dword [rbp + 0x20]
jb 0x140001ec7
mov eax, dword [rbp + 0x20]
sub eax, dword [rbp - 0x18]
sub eax, 1
mov dword [rbp - 0x30], eax
mov ecx, dword [rbp - 0x30]
mov edx, dword [rbp - 0x18]
mov rax, qword [rbp + 0x18]
add rdx, rax
lea r8, [rbp - 0x34]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001f19
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpReadData._n
mov rcx, rax
call fcn.140001493
jmp 0x140001f5a
mov eax, dword [rbp - 0x34]
add dword [rbp - 0x18], eax
mov eax, dword [rbp + 0x20]
sub eax, 1
cmp dword [rbp - 0x18], eax
jae 0x140001f36
cmp dword [rbp - 0x14], 0
jne 0x140001e82
jmp 0x140001f37
nop
mov edx, dword [rbp - 0x18]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x18]
mov rdx, rax
lea rax, str.response__s_n
mov rcx, rax
call fcn.140001493
cmp qword [rbp - 0x10], 0
je 0x140001f71
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 8], 0
je 0x140001f88
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x20], 0
je 0x140001f9f
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov eax, dword [rbp - 0x14]
sub rsp, 0xffffffffffffff80
pop rbp
ret