Function at 0x14003fae0
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov word [rsp + 0x50], 0
mov qword [rsp + 0x58], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov ecx, dword [rbx + 4]
nop
cmp ecx, eax
jne 0x14003fb33
inc dword [rbx]
jmp 0x14003fb45
lea rcx, [rbx + 8]
call fcn.14003be70
xchg dword [rbx + 4], edi
mov dword [rbx], 1
mov rcx, qword [rbx + 0x20]
cmp qword [rcx], 0
je 0x14003fe01
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rcx]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14003fc06
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.1400cb730
call fcn.14009ebd0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 2
lea rcx, [rsp + 0x70]
call fcn.14000b2a0
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rsp + 0x68], eax
setl byte [rbp + 0x68]
jl 0x14003fbf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rbx + 0x18]
lea rdx, str.T_08x_WinHttpQueryHeaders_failed:__lu
lea rcx, [rsp + 0x60]
call fcn.140016420
mov byte [rbp + 0x68], 1
lea rcx, [rsp + 0x60]
call fcn.140005530
jmp 0x14003fe01
cmp byte [rbx + 0x28], dil
je 0x14003fdd9
cmp dword [rsp + 0x30], 0x197
je 0x14003fdd9
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x44], 8
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x38]
mov edx, 0x4e
mov rcx, qword [rcx]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x14003fcbf
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.1400cb730
call fcn.14009ebd0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 3
lea rcx, [rsp + 0x70]
call fcn.14000b2a0
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rsp + 0x68], eax
setl byte [rbp + 0x68]
jl 0x14003fcb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rbx + 0x18]
lea rdx, str.T_08x_Failed_to_get_server_certificate:__lu
lea rcx, [rsp + 0x60]
call fcn.140016420
mov byte [rbp + 0x68], 1
lea rcx, [rsp + 0x60]
jmp 0x14003fd37
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x14003fdd3
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x70]
call fcn.1400cb730
call fcn.14009ebd0
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x78], 3
lea rcx, [rbp + 0x80]
call fcn.14000b2a0
nop
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rbp + 0x78], eax
setl byte [rbp + 0x178]
jl 0x14003fd33
mov r8d, dword [rbx + 0x18]
lea rdx, str.T_08x_Failed_to_get_server_certificate__null_pointer_
lea rcx, [rbp + 0x70]
call fcn.140016420
mov byte [rbp + 0x178], 1
lea rcx, [rbp + 0x70]
call fcn.140005530
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x180]
call fcn.1400cb730
call fcn.14009ebd0
mov qword [rbp + 0x180], rax
mov dword [rbp + 0x188], 2
lea rcx, [rbp + 0x190]
call fcn.14000b2a0
nop
mov rcx, qword [rbp + 0x180]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rbp + 0x188], eax
setl byte [rbp + 0x288]
jl 0x14003fdc5
mov r9d, dword [rsp + 0x30]
mov r8d, dword [rbx + 0x18]
lea rdx, str.T_08x_Status_code_is_from_proxy__and_is_not_authentication_required:__lu
lea rcx, [rbp + 0x180]
call fcn.140016420
mov byte [rbp + 0x288], 1
lea rcx, [rbp + 0x180]
call fcn.140005530
jmp 0x14003fe01
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x68], eax
mov rax, qword [rbx + 0x30]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x58], edi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14003f610
nop
lea rcx, [rsp + 0x48]
call fcn.14003f240
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1400c5980
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret