Function at 0x14005a760
Capabilities:
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r15, r8
mov r12, rdx
xor r13d, r13d
mov r14d, r13d
mov dword [rbp - 0x3c], r13d
mov ebx, r13d
mov qword [rbp - 0x28], rbx
mov edi, r13d
mov dword [rbp - 0x40], r13d
mov qword [rsp + 0x28], r13
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 0x13]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14005a7e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14005a7e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14005a831
movzx edi, ax
or edi, 0x80070000
jmp 0x14005a831
mov ecx, dword [rbp - 0x40]
call fcn.1400e8270
mov rsi, rax
mov qword [rsp + 0x28], r13
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rsi
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14005a852
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14005a829
movzx edi, ax
or edi, 0x80070000
mov rcx, rsi
call fcn.1400e825c
mov r13d, 0xffffffff
lea r9, [0x140127fd8]
test edi, edi
js 0x14005aa24
xor edi, edi
test rbx, rbx
je 0x14005a8a1
mov rdx, qword [rbx]
jmp 0x14005a8a4
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400e1108
mov rbx, rax
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14005a88f
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14005a892
test rsi, rsi
jne 0x14005aba6
jmp 0x14005a892
mov rbx, r13
mov qword [rbp - 0x28], rbx
test rbx, rbx
je 0x14005abb1
jmp 0x14005a829
mov rdx, rdi
mov rcx, rdi
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r9 + rcx*2 - 2]
jne 0x14005aa26
cmp rcx, 4
jne 0x14005a8b0
nop dword [rax]
mov dword [rbp + 0x48], edi
lea rdx, [rbp + 0x48]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14005aa12
mov ecx, dword [rbp + 0x48]
inc ecx
call fcn.1400e17ec
mov rsi, rax
test rax, rax
je 0x14005aa06
mov r8d, dword [rbp + 0x48]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1400e36c0
lea r9, [rbp - 0x3c]
mov r8d, dword [rbp + 0x48]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14005a935
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14005a9f3
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400e1108
mov rbx, rax
mov qword [rbp - 0x18], rax
test rax, rax
je 0x14005a963
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.1400e0e20
mov qword [rbx], rax
jmp 0x14005a966
mov rbx, rdi
mov qword [rbp - 0x20], rbx
test rbx, rbx
je 0x14005ab9b
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400e1108
mov qword [rbp - 0x10], rax
test rax, rax
je 0x14005a998
lea r8, [rbp - 0x20]
mov rdx, r15
mov rcx, rax
call fcn.1400051c0
mov rdi, rax
test rdi, rdi
je 0x14005abbc
mov rcx, r15
call fcn.1400176f0
mov qword [r15], rdi
mov eax, r13d
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14005a9f1
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005a9ce
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
mov qword [rbx], rdi
jmp 0x14005a9d0
xor edi, edi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005a9e2
call fcn.1400e0fb8
mov qword [rbx + 8], rdi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400e0fb8
jmp 0x14005a9f3
xor edi, edi
mov rcx, rsi
call fcn.1400e0fb8
cmp dword [rbp + 0x48], 0
jbe 0x14005aa1b
jmp 0x14005a8d0
mov dword [rbp + 0x48], edi
mov rbx, qword [rbp - 0x28]
jmp 0x14005ab35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rbx, qword [rbp - 0x28]
jmp 0x14005ab35
xor edi, edi
test rbx, rbx
je 0x14005aa30
mov rdx, qword [rbx]
jmp 0x14005aa33
mov rdx, rdi
mov rcx, rdi
lea r8, [0x140127fe8]
nop dword [rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14005aa60
cmp rcx, 4
jne 0x14005aa40
mov r14d, 0xe8
jmp 0x14005ab35
mov qword [rbp - 0x30], rbx
test rbx, rbx
je 0x14005aa76
lock inc dword [rbx + 0x10]
mov rbx, qword [rbp - 0x28]
mov rdx, qword [rbx]
jmp 0x14005aa79
mov rdx, rdi
mov rcx, rdi
nop dword [rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r9 + rcx*2 - 2]
jne 0x14005aaa6
cmp rcx, 4
jne 0x14005aa80
lea rcx, [rbp - 0x30]
call fcn.1400176f0
mov r14d, edi
jmp 0x14005ab35
test rbx, rbx
je 0x14005aab0
mov rdx, qword [rbx]
jmp 0x14005aab3
mov rdx, rdi
mov rcx, rdi
lea r9, [0x140127fe0]
nop dword [rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r9 + rcx*2 - 2]
jne 0x14005aae6
cmp rcx, 4
jne 0x14005aac0
lea rcx, [rbp - 0x30]
call fcn.1400176f0
mov r14d, 5
jmp 0x14005ab35
test rbx, rbx
je 0x14005aaf0
mov rdx, qword [rbx]
jmp 0x14005aaf3
mov rdx, rdi
mov rcx, rdi
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14005ab26
cmp rcx, 4
jne 0x14005ab00
lea rcx, [rbp - 0x30]
call fcn.1400176f0
mov r14d, 0x5b4
jmp 0x14005ab35
lea rcx, [rbp - 0x30]
call fcn.1400176f0
mov r14d, 0x1f
test rbx, rbx
je 0x14005ab7a
lock xadd dword [rbx + 0x10], r13d
cmp r13d, 1
jne 0x14005ab7a
mov rbx, qword [rbp - 0x28]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005ab5b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005ab6d
call fcn.1400e0fb8
mov qword [rbx + 8], rdi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400e0fb8
mov eax, r14d
lea r11, [rsp + 0x70]
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
mov ecx, 0x8007000e
call fcn.1400e0b70
nop
mov ecx, 0x8007000e
call fcn.1400e0b70
nop
mov ecx, 0x8007000e
call fcn.1400e0b70
nop
mov ecx, 0x8007000e
call fcn.1400e0b70
int3