Function at 0x1800186a8
Capabilities:
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x310
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rsi, r8
movzx r10d, cx
mov r8, qword [rsp + 0x370]
mov rdi, qword [rsp + 0x378]
mov rax, qword [rsp + 0x380]
mov qword [rsp + 0xb0], rax
mov r15, qword [rsp + 0x398]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0xc8], r15
mov r12, qword [rsp + 0x3a0]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0xd0], r12
mov r13, qword [rsp + 0x3a8]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0xd8], r13
mov rax, qword [rsp + 0x3b0]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x3b8]
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0x3c0]
mov qword [rsp + 0x98], rcx
mov r14, qword [rsp + 0x3c8]
xor ecx, ecx
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x8c], ecx
test rax, rax
je 0x180018792
mov qword [rax], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r8
mov r8, rsi
movzx ecx, r10w
call fcn.18001a434
mov ebx, eax
mov dword [rsp + 0x54], eax
test eax, eax
jne 0x180018ad5
lea rcx, [rsp + 0x100]
test r14, r14
je 0x1800187fd
mov r9, rdi
mov r8, r14
lea rdx, str._SContent_Type:_multipart_form_data__boundary_S_r_n_r_n
call fcn.180014cf4
jmp 0x18001880c
mov r8, rdi
lea rdx, str.Content_Type:_multipart_form_data__boundary_S_r_n_r_n
call fcn.180014cf4
mov r8, rdi
lea rdx, str.___s___r_n
lea rcx, [rsp + 0xe0]
call fcn.180017494
mov r9d, 0x20000000
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rsp + 0x100]
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x180018871
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x54], eax
mov r9d, eax
mov r8, rsi
lea rdx, str.Add_http_multipart_request_headers_failed__server:__S_._Error_code__lu.
mov ecx, eax
call fcn.180022938
jmp 0x180018aee
mov r9d, 0xa0000000
mov r8d, ebx
lea rdx, str.Connection:_close
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov r13, qword [rsp + 0x388]
lea rcx, [rsp + 0xe0]
call fcn.180053980
add eax, r13d
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180018905
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x54], eax
mov ecx, 0x2f0d
mov r8, rsi
cmp eax, ecx
jne 0x1800188ef
lea rdx, str.Server_CA_is_not_trusted._Unable_to_establish_secure_connection_to__S.
call fcn.180022938
jmp 0x180018ae9
mov r9d, eax
lea rdx, str.Unable_to_send_request_to_the_server___S_._Error_code:__lu.
mov ecx, eax
call fcn.180022938
jmp 0x180018ae9
xor edx, edx
mov qword [rsp + 0xb8], rdx
mov r14b, 1
mov byte [rsp + 0x50], r14b
xor r12d, r12d
mov eax, 0x400
xor ebx, ebx
mov dword [rsp + 0x54], ebx
mov r15d, r13d
sub r15d, edx
cmp r15d, eax
cmova r15d, eax
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x180018953
mov r8, r13
mov rcx, qword [rsp + 0xa0]
call rax
mov r14b, al
mov byte [rsp + 0x50], al
mov rdx, qword [rsp + 0xb0]
add rdx, r12
lea r9, [rsp + 0x88]
mov r8d, r15d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x180018aa3
mov edx, dword [rsp + 0x88]
add rdx, r12
mov r12, rdx
mov qword [rsp + 0xb8], rdx
test r14b, r14b
je 0x180018999
cmp rdx, r13
jb 0x18001891a
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x1800189bc
test r14b, r14b
je 0x1800189bc
mov r8, r13
mov rcx, qword [rsp + 0xa0]
call rax
mov byte [rsp + 0x50], al
lea rcx, [rsp + 0xe0]
call fcn.180053980
mov r8, rax
lea r9, [rsp + 0x88]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x180018a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Unable_to_send_multipart_body_footer_to_the_server___S_._Error_code:__lu.
mov r8, rsi
mov dword [rsp + 0x54], eax
mov ebx, eax
mov r9d, eax
mov ecx, eax
call fcn.180022938
jmp 0x180018adf
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180018a2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Unable_to_send_end_of_multipart_request_to_the_server___S_._Error_code:__lu.
jmp 0x1800189f6
mov dword [rsp + 0x90], 4
and qword [rsp + 0x28], rbx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8c]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x180018adf
mov rsi, qword [rsp + 0xc0]
test rsi, rsi
je 0x180018adf
mov ecx, 0x14
call fcn.180053730
mov qword [rsi], rax
test rax, rax
je 0x180018adf
mov r9d, dword [rsp + 0x8c]
lea r8, [0x1800acf68]
mov edx, 0xa
mov rcx, rax
call fcn.180012aa8
jmp 0x180018adf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x54], eax
mov ecx, 0x2f0d
mov r8, rsi
cmp eax, ecx
jne 0x180018ac9
lea rdx, str.Server_CA_is_not_trusted._Unable_to_establish_secure_connection_to__S.
call fcn.180022938
jmp 0x180018adf
lea rdx, str.Unable_to_send_request_to_the_server___S_._Error_code:__lu.
jmp 0x1800189ff
mov rdi, qword [rsp + 0x80]
jmp 0x180018aee
mov r12, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
test ebx, ebx
je 0x180018b2d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180018b02
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180018b12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rdi, rdi
je 0x180018b1f
mov rcx, rdi
call fcn.18001793c
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
xor edi, edi
mov rax, qword [rsp + 0x70]
mov qword [r15], rax
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
mov qword [r13], rdi
mov eax, ebx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.180043830
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret