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

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
call sub.WINHTTP.dll_WinHttpOpen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001883
mov eax, 0
jmp 0x140001b96
mov rax, qword [rbp - 8]
mov r9d, 0x800000
mov r8d, 0x1bb
lea rdx, str.cdn.discordapp.com
mov rcx, rax
call sub.WINHTTP.dll_WinHttpConnect
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400018c3
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x140001b96
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, qword [rbp + 0x20]
lea rdx, [0x1400c00a6]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpOpenRequest
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001927
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x140001b96
mov rax, qword [rbp - 0x18]
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
call sub.WINHTTP.dll_WinHttpSendRequest
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jne 0x140001994
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x140001b96
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
call sub.WINHTTP.dll_WinHttpReceiveResponse
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jne 0x1400019dc
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x140001b96
mov dword [rbp - 0x3c], 0
mov dword [rbp - 0x40], 0
mov dword [rbp - 0x3c], 0
lea rdx, [rbp - 0x3c]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpQueryDataAvailable
test eax, eax
sete al
test al, al
je 0x140001a38
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x140001b96
mov eax, dword [rbp - 0x3c]
add eax, 1
mov eax, eax
mov rcx, rax
call fcn.1400bae90
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x140001a81
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x140001b96
mov eax, dword [rbp - 0x3c]
add eax, 1
mov edx, eax
mov rax, qword [rbp - 0x28]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov ecx, dword [rbp - 0x3c]
lea r8, [rbp - 0x40]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call sub.WINHTTP.dll_WinHttpReadData
test eax, eax
sete al
test al, al
je 0x140001b04
cmp qword [rbp - 0x28], 0
je 0x140001ad6
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.1400bae50
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 0
jmp 0x140001b96
mov eax, dword [rbp - 0x40]
mov edx, eax
mov rax, qword [rbp - 0x28]
lea rbx, [rdx + rax]
lea rcx, [0x1400ee080]
call fcn.1400a2d70
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov rcx, rax
call fcn.140023ec0
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x38]
mov r9, rbx
mov r8, rdx
mov rdx, rax
lea rcx, [0x1400ee080]
call fcn.1400a2e00
cmp qword [rbp - 0x28], 0
je 0x140001b61
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.1400bae50
mov eax, dword [rbp - 0x3c]
test eax, eax
je 0x140001b6d
jmp 0x1400019ea
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
mov eax, 1
add rsp, 0x88
pop rbx
pop rbp
ret