Function at 0x140091a80
Capabilities:
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x2a0]
call fcn.140071ef0
nop
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
mov r8, qword [rsp + 0x2a8]
lea rdx, [0x140098b78]
lea rcx, [rsp + 0x1d0]
call fcn.1400610e0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
lea r8, [0x140098b70]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x1b0]
call fcn.140060de0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov r8, qword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x190]
call fcn.140060e50
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x2a0]
call fcn.14005ff40
lea rcx, [rsp + 0x190]
call fcn.140054250
nop
lea rcx, [rsp + 0x1b0]
call fcn.140054250
nop
lea rcx, [rsp + 0x1d0]
call fcn.140054250
cmp qword [0x1400b5d70], 0
jne 0x140091c02
mov rax, qword [rsp + 0x2a0]
add rax, 0x60
lea rdx, str.WinHttpOpen_failed
mov rcx, rax
call fcn.14005fe30
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x80], 0xffffffff
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
and eax, 1
test eax, eax
je 0x140091bf5
and dword [rsp + 0x44], 0xfffffffe
mov rcx, qword [rsp + 0x2a0]
call fcn.1400643b0
mov rax, qword [rsp + 0x2a0]
jmp 0x14009232d
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0xd8], 0
mov dword [rsp + 0x214], 0
mov rdx, qword [rsp + 0x2a8]
lea rcx, [rsp + 0x240]
call fcn.1400918b0
nop
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0x260]
call fcn.1400918b0
nop
cmp qword [0x1400b5d70], 0
je 0x140091caf
lea rcx, [rsp + 0x240]
call fcn.140090790
mov qword [rsp + 0x110], rax
mov rax, qword [0x1400b5d70]
mov qword [rsp + 0x118], rax
xor r9d, r9d
mov r8w, 0x1bb
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x2c0], 0
je 0x140091cd3
mov rcx, qword [rsp + 0x2c0]
call fcn.14005fe10
test rax, rax
jbe 0x140091cd3
mov byte [rsp + 0x40], 1
jmp 0x140091cd8
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x48], al
cmp qword [rsp + 0x78], 0
je 0x140091d64
lea rcx, [rsp + 0x260]
call fcn.140090790
mov qword [rsp + 0x120], rax
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x140091d18
lea rax, str.POST
mov qword [rsp + 0xb8], rax
jmp 0x140091d27
lea rax, [0x140098bb0]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x120]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140091eda
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14005fde0
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x90]
call fcn.14005fdd0
mov qword [rsp + 0x128], rax
jmp 0x140091dc0
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x128]
cmp qword [rsp + 0x80], rax
je 0x140091e30
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x220]
call fcn.1400918b0
lea rcx, [rsp + 0x220]
call fcn.140090790
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea rcx, [rsp + 0x220]
call fcn.1400907c0
jmp 0x140091dac
cmp qword [rsp + 0x2c0], 0
je 0x140091e52
mov rcx, qword [rsp + 0x2c0]
call fcn.14005fe10
mov qword [rsp + 0x98], rax
jmp 0x140091e5e
mov qword [rsp + 0x98], 0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x88], eax
cmp qword [rsp + 0x2c0], 0
je 0x140091e96
mov rcx, qword [rsp + 0x2c0]
call fcn.14005fe20
mov qword [rsp + 0xa0], rax
jmp 0x140091ea2
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa0]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140091ef2
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x218], 0
mov dword [rsp + 0x21c], 4
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x21c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x218]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140091f54
mov rax, qword [rsp + 0x2a0]
mov ecx, dword [rsp + 0x218]
mov dword [rax + 0x80], ecx
jmp 0x140091f66
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x80], 0xffffffff
cmp dword [rsp + 0x58], 0
je 0x140092233
mov dword [rsp + 0x210], 0
mov qword [rsp + 0x68], 0
lea r9, [rsp + 0x210]
xor r8d, r8d
mov edx, 0x22
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 0x7a
jne 0x1400920dd
mov eax, dword [rsp + 0x210]
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x138], rax
mov eax, 2
mov rcx, qword [rsp + 0x138]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140092d80
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x210]
mov r8, qword [rsp + 0x68]
mov edx, 0x22
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x140092094
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x150]
call fcn.140091340
nop
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x1f0]
call fcn.140091710
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x2a0]
add rax, 0x20
mov rdx, qword [rsp + 0x148]
mov rcx, rax
call fcn.14005ff40
lea rcx, [rsp + 0x1f0]
call fcn.140054250
nop
lea rcx, [rsp + 0x150]
call fcn.1400907c0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400928a0
cmp qword [rsp + 0xa8], 0
jne 0x1400920c7
mov qword [rsp + 0xc0], 0
jmp 0x1400920dd
mov qword [rsp + 0x68], 0x8123
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x210], 0
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140092118
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.1400923b0
jmp 0x140092233
mov eax, dword [rsp + 0x210]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140092d80
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140092168
lea rcx, str.Out_of_memory_n
call fcn.1400923b0
mov dword [rsp + 0x210], 0
jmp 0x140092233
mov eax, dword [rsp + 0x210]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x214]
mov r8d, dword [rsp + 0x210]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1400921bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.1400923b0
jmp 0x1400921dc
mov eax, dword [rsp + 0x214]
mov rcx, qword [rsp + 0x2a0]
add rcx, 0x40
mov r8d, eax
mov rdx, qword [rsp + 0x60]
call fcn.1400608d0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1400928a0
cmp qword [rsp + 0xb0], 0
jne 0x14009220f
mov qword [rsp + 0xd0], 0
jmp 0x140092225
mov qword [rsp + 0x60], 0x8123
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0x210], 0
ja 0x1400920dd
cmp dword [rsp + 0x58], 0
jne 0x14009229b
lea rcx, [rsp + 0x170]
call fcn.1400913d0
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x2a0]
add rax, 0x60
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.14005ff40
lea rcx, [rsp + 0x170]
call fcn.140054250
mov rax, qword [rsp + 0x2a0]
cmp dword [rax + 0x80], 0
jne 0x14009229b
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x80], 0xffffffff
cmp qword [rsp + 0x50], 0
je 0x1400922ae
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x78], 0
je 0x1400922c1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x2a0]
cmp dword [rax + 0x80], 0
jne 0x1400922e4
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x80], 0xc8
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x260]
call fcn.1400907c0
nop
lea rcx, [rsp + 0x240]
call fcn.1400907c0
nop
mov eax, dword [rsp + 0x44]
and eax, 1
test eax, eax
je 0x140092325
and dword [rsp + 0x44], 0xfffffffe
mov rcx, qword [rsp + 0x2a0]
call fcn.1400643b0
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140092450
add rsp, 0x298
ret