Function at 0x140001a18
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 - 0x20], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x40], 0
mov qword [rbp - 0x48], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x4c], 0
mov dword [rbp - 0x18], 0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x18]
lea rax, [rbp - 0x48]
mov r8, rcx
mov rcx, rax
call fcn.14000178f
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jne 0x140001aa0
mov eax, 0
jmp 0x140001d61
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 - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x140001afe
mov rdx, qword [section..data]
mov rax, qword [rbp - 0x20]
mov r9d, 0
mov r8d, 0x1bb
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001b47
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
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 - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001be4
lea rax, str.Content_Type:_multipart_form_data__boundary___________________________BOUNDARY123
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x10]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
call rax
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], 0
mov edx, dword [rbp - 0x24]
mov dword [rsp + 0x28], edx
mov edx, dword [rbp - 0x24]
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 - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001be4
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 0x140001d0d
cmp dword [rbp - 0x14], 0
je 0x140001cdd
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001cdd
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x38], eax
mov eax, dword [rbp - 0x38]
mov edx, eax
lea rax, str.Error__d_in_WinHttpReceiveResponse._n
mov rcx, rax
call fcn.140001493
jmp 0x140001d0d
lea rdx, [rbp - 0x4c]
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x140001cea
mov eax, dword [rbp - 0x4c]
test eax, eax
je 0x140001cea
mov edx, dword [rbp - 0x4c]
mov eax, dword [rbp - 0x18]
add eax, edx
cmp eax, dword [rbp + 0x28]
jb 0x140001c7a
mov eax, dword [rbp + 0x28]
sub eax, dword [rbp - 0x18]
sub eax, 1
mov dword [rbp - 0x4c], eax
mov ecx, dword [rbp - 0x4c]
mov edx, dword [rbp - 0x18]
mov rax, qword [rbp + 0x20]
add rdx, rax
lea r8, [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140001ccc
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0x3c], eax
mov eax, dword [rbp - 0x3c]
mov edx, eax
lea rax, str.Error__lu_in_WinHttpReadData._n
mov rcx, rax
call fcn.140001493
jmp 0x140001d0d
mov eax, dword [rbp - 0x40]
add dword [rbp - 0x18], eax
mov eax, dword [rbp + 0x28]
sub eax, 1
cmp dword [rbp - 0x18], eax
jae 0x140001ce9
cmp dword [rbp - 0x14], 0
jne 0x140001c35
jmp 0x140001cea
nop
mov edx, dword [rbp - 0x18]
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 - 0x10], 0
je 0x140001d24
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 8], 0
je 0x140001d3b
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x20], 0
je 0x140001d52
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 0x48]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, dword [rbp - 0x14]
add rsp, 0x90
pop rbp
ret