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

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov dword [rbp - 0x2c], 0
mov dword [rbp - 0x30], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
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 - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x2c9661c24
mov rax, qword [rbp - 0x20]
mov r9d, 0
mov r8d, 0x1bb
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpConnect
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x2c9661c69
mov rdx, qword [rbp + 0x28]
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, rdx
lea rdx, str.POST
mov rcx, rax
call sub.WINHTTP.dll_WinHttpOpenRequest
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2c9661cc0
mov rax, qword [rbp + 0x30]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov rax, qword [rbp + 0x30]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov r9, rdx
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json
mov rcx, rax
call sub.WINHTTP.dll_WinHttpSendRequest
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x2c9661cda
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
call sub.WINHTTP.dll_WinHttpReceiveResponse
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x2c9661dc6
mov dword [rbp - 0x2c], 0
lea rdx, [rbp - 0x2c]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpQueryDataAvailable
test eax, eax
jne 0x2c9661d16
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.2c96613a0
mov eax, dword [rbp - 0x2c]
add eax, 1
mov eax, eax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x2c9661d46
lea rcx, str.Out_of_memory_n
call fcn.2c96613a0
mov dword [rbp - 0x2c], 0
jmp 0x2c9661dbb
mov eax, dword [rbp - 0x2c]
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 - 0x2c]
lea r8, [rbp - 0x30]
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
jne 0x2c9661d9c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.2c96613a0
jmp 0x2c9661daf
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rcx, [0x2c966a225]
call fcn.2c96613a0
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, dword [rbp - 0x2c]
test eax, eax
jne 0x2c9661ce4
cmp dword [rbp - 4], 0
jne 0x2c9661de3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.2c96613a0
cmp qword [rbp - 0x18], 0
je 0x2c9661df6
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
cmp qword [rbp - 0x10], 0
je 0x2c9661e09
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
cmp qword [rbp - 0x20], 0
je 0x2c9661e1c
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
add rsp, 0x78
pop rbx
pop rbp
ret