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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x648
lea rbp, [rsp + 0x40]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140008577
xor al, al
jmp 0x1400088ee
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x18]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rbp + 0x80]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], pe_nt_image_headers64
lea rax, [rbp + 0x280]
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x60], pe_nt_image_headers64
lea rcx, [rbp + 0x590]
call fcn.1400019f0
mov qword [rbp + 0x5f0], rax
lea rdx, [rbp + 0x598]
mov rcx, qword [rbp + 0x628]
call fcn.140006840
mov qword [rbp + 0x5f8], rax
lea rdx, [rbp + 0x5a0]
mov rcx, qword [rbp + 0x628]
call fcn.140006160
mov rcx, qword [rbp + 0x5f0]
mov r9, rcx
mov rcx, qword [rbp + 0x5f8]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rbp + 0x480]
call fcn.140001210
lea rcx, [rbp + 0x480]
call fcn.140007510
mov qword [rbp + 0x5f0], rax
lea rcx, [rbp + 0x480]
call fcn.140006230
lea r9, [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp + 0x5f0]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x14000867a
mov rcx, qword [rbp]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [rbp + 0x5a8], 0
lea rcx, [rbp + 0x480]
call fcn.140003bb0
movzx eax, byte [rbp + 0x5a8]
jmp 0x1400088ee
xor r9d, r9d
movzx r8d, word [rbp + 0x34]
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0x4a0], rax
cmp qword [rbp + 0x4a0], 0
jne 0x1400086cd
mov rcx, qword [rbp]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [rbp + 0x5a9], 0
lea rcx, [rbp + 0x480]
call fcn.140003bb0
movzx eax, byte [rbp + 0x5a9]
jmp 0x1400088ee
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x280]
lea rdx, str.POST
mov rcx, qword [rbp + 0x4a0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x4a8], rax
cmp qword [rbp + 0x4a8], 0
jne 0x14000874c
mov rcx, qword [rbp + 0x4a0]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [rbp + 0x5aa], 0
lea rcx, [rbp + 0x480]
call fcn.140003bb0
movzx eax, byte [rbp + 0x5aa]
jmp 0x1400088ee
lea rcx, [rbp + 0x5d0]
call fcn.1400019f0
mov qword [rbp + 0x5f0], rax
lea rdx, [rbp + 0x5d8]
mov rcx, qword [rbp + 0x620]
call fcn.140006840
mov qword [rbp + 0x5f8], rax
lea rdx, [rbp + 0x5e0]
mov rcx, qword [rbp + 0x620]
call fcn.140006160
mov rcx, qword [rbp + 0x5f0]
mov r9, rcx
mov rcx, qword [rbp + 0x5f8]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rbp + 0x5b0]
call fcn.140001210
mov r8, rax
lea rdx, str.content
lea rcx, [rbp + 0x4b0]
call fcn.140001790
lea rcx, [rbp + 0x5b0]
call fcn.140003bb0
lea rcx, [rbp + 0x4b0]
call fcn.140007510
shl rax, 1
mov qword [rbp + 0x5f0], rax
lea rcx, [rbp + 0x4b0]
call fcn.140007510
shl rax, 1
mov qword [rbp + 0x5f8], rax
lea rcx, [rbp + 0x4b0]
call fcn.140006230
mov qword [rsp + 0x30], 0
mov rcx, qword [rbp + 0x5f0]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x5f8]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, qword [rbp + 0x4a8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, qword [rbp + 0x4a8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400088a4
mov rcx, qword [rbp + 0x4a8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x4a0]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [rbp + 0x5e8], 0
lea rcx, [rbp + 0x4b0]
call fcn.140003bb0
lea rcx, [rbp + 0x480]
call fcn.140003bb0
movzx eax, byte [rbp + 0x5e8]
jmp 0x1400088ee
mov rcx, qword [rbp + 0x4a8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x4a0]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [rbp + 0x5e9], 1
lea rcx, [rbp + 0x4b0]
call fcn.140003bb0
lea rcx, [rbp + 0x480]
call fcn.140003bb0
movzx eax, byte [rbp + 0x5e9]
lea rsp, [rbp + 0x608]
pop rdi
pop rbp
ret