Function at 0x140130540
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa88]
sub rsp, 0xb88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rbp + 0xa70], rax
mov r15, r9
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov r13, qword [rbp + 0xaf0]
mov dword [rsp + 0x30], 0x200
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x70]
call fcn.140002e20
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x70]
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea rcx, [rbp + 0x70]
call fcn.140186e5c
mov ebx, eax
mov rcx, r14
call fcn.140063c44
mov r8, qword [rax]
mov edx, ebx
mov rcx, rax
call qword [r8 + 0x38]
call fcn.14010cdc0
mov rdi, rax
test rax, rax
je 0x140130659
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x140130659
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Received_response_code
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rcx, rax
mov edx, ebx
call fcn.140028610
mov rbx, qword [rdi]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x40]
mov edx, 5
mov rcx, rdi
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
mov dword [rsp + 0x30], 0x800
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x270]
call fcn.140002e20
xor ebx, ebx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x270]
xor r8d, r8d
lea edx, [rbx + 1]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp word [rbp + 0x270], bx
je 0x14013074f
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x30]
call fcn.14011fb74
nop
mov rcx, r14
call fcn.140063c44
mov r8, qword [rax]
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [r8 + 0x60]
call fcn.14010cdc0
mov rdi, rax
test rax, rax
je 0x140130746
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x140130746
lea edx, [rbx + 2]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Received_content_type
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.14000e4e0
mov rbx, qword [rdi]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x40]
mov edx, 5
mov rcx, rdi
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
xor ebx, ebx
lea rcx, [rbp + 0x30]
call fcn.14000aa50
mov r14d, ebx
call fcn.14010cdc0
mov rdi, rax
test rax, rax
je 0x1401307be
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x1401307be
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Received_headers:
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rbx, qword [rdi]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x40]
mov edx, 5
mov rcx, rdi
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
xor ebx, ebx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edi, [r9 + 0x16]
mov edx, edi
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401308ec
mov edx, dword [rsp + 0x30]
shr rdx, 1
lea rcx, [rbp + 0x30]
call fcn.14012fb50
nop
lea rcx, [rbp + 0x30]
call fcn.1400d5658
mov r9, rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov r14d, eax
test eax, eax
je 0x1401308e3
lea rcx, [rbp + 0x30]
call fcn.1400d5658
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.14011fb74
nop
call fcn.14010cdc0
mov rdi, rax
test rax, rax
je 0x1401308b3
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x1401308b3
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14000e4e0
mov rbx, qword [rdi]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x40]
mov edx, 5
mov rcx, rdi
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
lea rcx, [rbp + 0x50]
call fcn.14000b750
mov rdx, rax
lea rax, [r15 + 0x10]
neg r15
sbb rcx, rcx
and rcx, rax
call fcn.14000e4e0
mov eax, dword [rsp + 0x30]
mov qword [r13], rax
lea rcx, [rbp + 0x50]
call fcn.14000aa50
nop
lea rcx, [rbp + 0x30]
call fcn.1401302f4
cmp r14d, 1
sete al
mov rcx, qword [rbp + 0xa70]
xor rcx, rsp
call fcn.140158980
add rsp, 0xb88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret