Function at 0x140054cf0
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14009c218]
xor rax, rsp
mov qword [rbp + 0x388], rax
mov rdi, rcx
xor r15d, r15d
mov dword [rbp + 0x350], r15d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x350]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rcx + 0x188]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140054d96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140038870
nop
mov rdx, rax
mov rcx, rdi
call fcn.140056720
nop
lea rcx, [rsp + 0x30]
call fcn.14001bff0
jmp 0x140055098
mov eax, dword [rbp + 0x350]
mov dword [rdi + 0xd8], eax
mov qword [rdi + 0x148], 0xffffffffffffffff
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
mov rcx, qword [rdi + 0x188]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.14005c570
mov esi, dword [rsp + 0x38]
cmp rsi, 0x400
jae 0x140054e03
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x48], rsi
jmp 0x140054e1d
mov rcx, rsi
call fcn.14003f370
mov rbx, rax
mov rax, r15
test rbx, rbx
cmovne rax, rsi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140055081
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, qword [rdi + 0x188]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140054e79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140038870
nop
mov rdx, rax
mov rcx, rdi
call fcn.140056720
nop
jmp 0x140055072
cmp dword [rsp + 0x38], 0
je 0x140055006
xorps xmm0, xmm0
movups xmmword [rbp + 0x368], xmm0
movups xmmword [rbp + 0x378], xmm0
lea rcx, [rbp + 0x368]
call fcn.1400445d0
nop
mov qword [rbp + 0x360], r15
mov r8d, dword [rsp + 0x38]
shr r8, 1
mov rdx, rbx
lea rcx, [rbp + 0x360]
call fcn.14001e5e0
nop
mov rax, qword [rbp + 0x360]
test rax, rax
je 0x140054ed6
mov r8, qword [rax + 8]
mov rdx, qword [rax]
jmp 0x140054ee0
mov r8, r15
lea rdx, [0x14008d1d0]
lea rcx, [rbp + 0x368]
call fcn.140044a20
test rax, rax
jle 0x140054fed
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x368]
call fcn.140044790
lea rcx, [rdi + 0xe0]
mov rdx, rax
call fcn.14001c0e0
lea rcx, [rsp + 0x30]
call fcn.14001bff0
lea rcx, [rbp + 0x368]
call fcn.140044780
mov rsi, qword [rax]
cmp qword [rdi + 0xf0], rsi
je 0x140054f77
test rsi, rsi
je 0x140054f44
mov rcx, rsi
call fcn.140027e60
lea rcx, [rdi + 0xf8]
call fcn.140037ba0
mov r14, qword [rdi + 0xf0]
mov qword [rdi + 0xf0], rsi
lea rcx, [rdi + 0xf8]
call fcn.140037be0
test r14, r14
je 0x140054f77
mov rcx, r14
call fcn.140027dd0
mov qword [rbp + 0x358], r15
lea rdx, str.Content_Length
lea rcx, [rsp + 0x30]
call fcn.14001b750
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x358]
lea rcx, [rbp + 0x368]
call fcn.140044660
nop
lea rcx, [rsp + 0x30]
call fcn.14001bff0
mov rax, qword [rbp + 0x358]
test rax, rax
je 0x140054fe0
cmp qword [rax + 8], 0
je 0x140054fe0
xor r8d, r8d
lea edx, [r8 + 0xa]
lea rcx, [rbp + 0x358]
call fcn.140021a30
mov qword [rdi + 0x148], rax
lea rcx, [rbp + 0x358]
call fcn.14001bff0
nop
lea rcx, [rbp + 0x360]
call fcn.14001bff0
nop
lea rcx, [rbp + 0x368]
call fcn.140044620
mov rcx, rdi
call fcn.1400461d0
cmp qword [rdi + 0x148], 0
jne 0x140055022
mov rcx, rdi
call fcn.1400563a0
jmp 0x14005507c
mov dword [rdi + 0x194], 3
cmp qword [rdi + 0x1a8], 0
je 0x140055040
mov rcx, rdi
call fcn.140055b90
jmp 0x14005507c
xor edx, edx
mov rcx, qword [rdi + 0x188]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14005507c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140038870
nop
mov rdx, rax
mov rcx, rdi
call fcn.140056720
nop
lea rcx, [rsp + 0x30]
call fcn.14001bff0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140055098
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x140055098
mov rcx, rbx
call fcn.14003f4a0
mov rcx, qword [rbp + 0x388]
xor rcx, rsp
call fcn.14005a330
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret