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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov esi, r8d
mov r13, rdx
mov rdi, rcx
xor r14b, r14b
call fcn.140001410
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, rbx
mov r12, rax
call fcn.140001bfc
test r12, r12
je 0x140001b2d
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call fcn.140001b9c
or eax, 0xffffffff
mov dword [rsp + 0x70], ebx
lea r9, [rsp + 0x70]
mov dword [rbp - 0x80], eax
xor r8d, r8d
mov dword [rbp - 0x40], eax
xor edx, edx
mov dword [rbp - 0x70], eax
mov rcx, rdi
mov dword [rbp - 0x30], eax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
xor ebx, ebx
test eax, eax
je 0x140001b24
mov r8d, dword [rbp - 0x70]
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp - 0x78]
call fcn.140003b8c
cmp dword [rbp - 0x7c], 2
lea r8d, [rbx + 0x50]
mov ecx, 0x1bb
lea rdx, [rbp - 0x20]
cmove r8w, cx
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x140001b24
cmp dword [rbp - 0x7c], 2
lea rdx, str.POST
mov r8, qword [rbp - 0x48]
mov ecx, 0x100
mov eax, 0x800100
cmove ecx, eax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x140001b1b
cmp dword [rbp - 0x7c], 2
jne 0x1400019df
mov dword [rbp + 0x238], ebx
lea r9, [rsp + 0x40]
mov ebx, 0x1f
mov dword [rsp + 0x40], 4
mov edx, ebx
lea r8, [rbp + 0x238]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
or dword [rbp + 0x238], 0x3300
lea r9d, [rbx - 0x1b]
lea r8, [rbp + 0x238]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov r9, r13
mov dword [rsp + 0x28], esi
or r8d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x20], esi
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001b12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001b12
mov edx, 0x100
lea rcx, [rsp + 0x48]
call fcn.140006560
lea rdx, [rbp + 0x238]
mov dword [rbp + 0x238], ebx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edx, dword [rbp + 0x238]
lea rcx, [rsp + 0x48]
call fcn.140006470
mov r8d, dword [rbp + 0x238]
lea r9, [rsp + 0x40]
mov rdx, rax
mov dword [rsp + 0x40], ebx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001a7c
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400064c0
cmp dword [rbp + 0x238], ebx
ja 0x140001a28
cmp qword [rsp + 0x58], rbx
je 0x140001b08
mov rcx, qword [rsp + 0x48]
lea rdx, str._span_nginx__span_
call fcn.1400039c8
test rax, rax
je 0x140001b08
mov rcx, qword [rsp + 0x48]
lea rdx, str.id_data_
mov r14d, 1
call fcn.1400039c8
test rax, rax
je 0x140001b08
lea rdx, [0x14000859c]
mov rcx, rax
call fcn.1400039c8
lea rdx, [0x1400085a0]
lea rbx, [r14 + rax]
mov rcx, rbx
call fcn.1400039c8
mov rsi, rax
sub esi, ebx
cmp esi, 0x20
jle 0x140001b08
mov edx, esi
mov rcx, rbx
call fcn.1400038b0
mov edx, esi
mov rcx, rax
mov rbx, rax
call fcn.14000144c
mov rcx, rbx
call fcn.140001bfc
lea rcx, [rsp + 0x48]
call fcn.14000653c
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea r11, [rsp + 0x2f0]
mov al, r14b
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret