Function at 0x140001ca8
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 - 8], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x2c], 0
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x30], 0
mov dword [rbp - 0x28], 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 - 8], rax
cmp qword [rbp - 8], 0
je 0x140001d4e
mov rdx, qword [section..data]
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8d, 0x1bb
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001d97
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, [0x1400102dc]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001e06
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 - 0x2c], eax
cmp dword [rbp - 0x2c], 0
jne 0x140001e06
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 0x140001f2f
cmp dword [rbp - 0x2c], 0
je 0x140001eff
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 0x2c], eax
cmp dword [rbp - 0x2c], 0
jne 0x140001eff
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x20]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpReceiveResponse._n
mov rcx, rax
call fcn.140001493
jmp 0x140001f2f
lea rdx, [rbp - 0x34]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
mov dword [rbp - 0x2c], eax
cmp dword [rbp - 0x2c], 0
je 0x140001f0c
mov eax, dword [rbp - 0x34]
test eax, eax
je 0x140001f0c
mov edx, dword [rbp - 0x34]
mov eax, dword [rbp - 0x28]
add eax, edx
cmp eax, dword [rbp + 0x20]
jb 0x140001e9c
mov eax, dword [rbp + 0x20]
sub eax, dword [rbp - 0x28]
sub eax, 1
mov dword [rbp - 0x34], eax
mov ecx, dword [rbp - 0x34]
mov edx, dword [rbp - 0x28]
mov rax, qword [rbp + 0x18]
add rdx, rax
lea r8, [rbp - 0x30]
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 - 0x2c], eax
cmp dword [rbp - 0x2c], 0
jne 0x140001eee
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpReadData._n
mov rcx, rax
call fcn.140001493
jmp 0x140001f2f
mov eax, dword [rbp - 0x30]
add dword [rbp - 0x28], eax
mov eax, dword [rbp + 0x20]
sub eax, 1
cmp dword [rbp - 0x28], eax
jae 0x140001f0b
cmp dword [rbp - 0x2c], 0
jne 0x140001e57
jmp 0x140001f0c
nop
mov edx, dword [rbp - 0x28]
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 0x140001f46
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x18], 0
je 0x140001f5d
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 8], 0
je 0x140001f74
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov eax, dword [rbp - 0x2c]
sub rsp, 0xffffffffffffff80
pop rbp
ret