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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x40], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x38], 0
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x3c], 0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x18]
lea rax, [rbp - 0x28]
mov r8, rcx
mov rcx, rax
call fcn.1400016fb
mov dword [rbp - 0x38], eax
cmp dword [rbp - 0x38], 0
jne 0x140001a0c
mov eax, 0
jmp 0x140001ccd
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 - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001a6a
mov rdx, qword [section..data]
mov rax, qword [rbp - 0x10]
mov r9d, 0
mov r8d, 0x1bb
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x140001ab3
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x20]
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
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001b50
lea rax, str.Content_Type:_multipart_form_data__boundary___________________________BOUNDARY123
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
call rax
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov edx, dword [rbp - 0x38]
mov dword [rsp + 0x28], edx
mov edx, dword [rbp - 0x38]
mov dword [rsp + 0x20], edx
mov r9, rcx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 0x40], eax
cmp dword [rbp - 0x40], 0
jne 0x140001b50
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x34], eax
mov eax, dword [rbp - 0x34]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpSendRequest._n
mov rcx, rax
call fcn.140001493
jmp 0x140001c79
cmp dword [rbp - 0x40], 0
je 0x140001c49
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 0x40], eax
cmp dword [rbp - 0x40], 0
jne 0x140001c49
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x30], eax
mov eax, dword [rbp - 0x30]
mov edx, eax
lea rax, str.Error__d_in_WinHttpReceiveResponse._n
mov rcx, rax
call fcn.140001493
jmp 0x140001c79
lea rdx, [rbp - 0x44]
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
mov dword [rbp - 0x40], eax
cmp dword [rbp - 0x40], 0
je 0x140001c56
mov eax, dword [rbp - 0x44]
test eax, eax
je 0x140001c56
mov edx, dword [rbp - 0x44]
mov eax, dword [rbp - 0x3c]
add eax, edx
cmp eax, dword [rbp + 0x28]
jb 0x140001be6
mov eax, dword [rbp + 0x28]
sub eax, dword [rbp - 0x3c]
sub eax, 1
mov dword [rbp - 0x44], eax
mov ecx, dword [rbp - 0x44]
mov edx, dword [rbp - 0x3c]
mov rax, qword [rbp + 0x20]
add rdx, rax
lea r8, [rbp - 0x48]
mov rax, qword [rbp - 0x18]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
mov dword [rbp - 0x40], eax
cmp dword [rbp - 0x40], 0
jne 0x140001c38
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpReadData._n
mov rcx, rax
call fcn.140001493
jmp 0x140001c79
mov eax, dword [rbp - 0x48]
add dword [rbp - 0x3c], eax
mov eax, dword [rbp + 0x28]
sub eax, 1
cmp dword [rbp - 0x3c], eax
jae 0x140001c55
cmp dword [rbp - 0x40], 0
jne 0x140001ba1
jmp 0x140001c56
nop
mov edx, dword [rbp - 0x3c]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0x20]
mov rdx, rax
lea rax, str.response__s_n
mov rcx, rax
call fcn.140001493
cmp qword [rbp - 0x18], 0
je 0x140001c90
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x20], 0
je 0x140001ca7
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x10], 0
je 0x140001cbe
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, dword [rbp - 0x40]
add rsp, 0x90
pop rbp
ret