Function at 0x140002900
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
lea rcx, str.User_Agent
xor edx, edx
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
jne 0x14000296d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_initializing_WinHTTP:
mov ebx, eax
call fcn.140004fa0
mov rcx, rax
mov edx, ebx
call fcn.140002b50
mov rcx, rax
call fcn.140005280
xor eax, eax
jmp 0x140002b23
mov r8d, 0x50
mov qword [rsp + 0x50], rbp
xor r9d, r9d
lea rdx, str.34.82.186.121
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbp, rax
test rax, rax
jne 0x1400029c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_connecting_to_server:
mov ebx, eax
call fcn.140004fa0
mov rcx, rax
mov edx, ebx
call fcn.140002b50
mov rcx, rax
call fcn.140005280
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140002b1e
mov dword [rsp + 0x30], r14d
lea r8, [0x140085208]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov rdx, rdi
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x140002a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_creating_request:
mov ebx, eax
call fcn.140004fa0
mov rcx, rax
mov edx, ebx
call fcn.140002b50
mov rcx, rax
call fcn.140005280
jmp 0x140002ae8
mov r9d, 0x20000000
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov r8d, 0xffffffff
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140002a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_adding_headers:
jmp 0x140002ac6
mov rax, 0xffffffffffffffff
mov rcx, rax
nop word [rax + rax]
inc rcx
cmp byte [rbx + rcx], r14b
jne 0x140002a60
nop dword [rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x140002a70
mov qword [rsp + 0x30], r14
mov r9, rbx
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], eax
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140002aaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_sending_request:
jmp 0x140002ac6
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140002afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_receiving_response:
mov ebx, eax
call fcn.140004fa0
mov rcx, rax
mov edx, ebx
call fcn.140002b50
mov rcx, rax
call fcn.140005280
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140002b1e
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret