Function at 0x14001148c
Capabilities:
Receive http response

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rax - 0x48], 0xfffffffffffffffe
mov r14, rdx
xor esi, esi
and dword [rax + 0x18], esi
lea ebx, [rsi + 0xa]
mov eax, ebx
dec ebx
mov dword [rsp + 0xa8], ebx
test eax, eax
jle 0x14001176f
mov r15, qword [rsp + 0x90]
lea rdx, [rsp + 0xa0]
mov rcx, qword [r15 + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14001150f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
test ecx, ecx
cmovs esi, ecx
jmp 0x14001176f
mov r8d, dword [rsp + 0xa0]
mov ecx, esi
test r8d, r8d
je 0x140011763
lea rdx, str.You_are_reading__d_bytes
call fcn.140008ad0
mov ecx, dword [rsp + 0xa0]
inc ecx
lea rdx, [0x14002ac82]
call fcn.140019094
mov r12, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001155a
mov esi, 0x8007000e
jmp 0x14001176f
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0xa0]
mov rdx, r12
mov rcx, qword [r15 + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400114ec
mov eax, dword [rsp + 0xa0]
mov byte [rax + r12], 0
or r15, 0xffffffffffffffff
inc r15
cmp byte [r12 + r15], 0
jne 0x140011592
mov rdx, qword [r14 + 0x10]
mov qword [rsp + 0x28], rdx
mov rcx, qword [r14 + 0x18]
mov qword [rsp + 0x30], rcx
mov rax, rcx
sub rax, rdx
cmp r15, rax
ja 0x1400115f1
lea rax, [rdx + r15]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp rcx, 0x10
jb 0x1400115cd
mov rax, qword [r14]
lea rbx, [rax + rdx]
mov r8, r15
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_memmove]
mov byte [rbx + r15], 0
mov ebx, dword [rsp + 0xa8]
jmp 0x14001173c
movabs r8, 0x7fffffffffffffff
mov rax, r8
sub rax, rdx
cmp rax, r15
jb 0x1400117b6
lea r13, [rdx + r15]
or r13, 0xf
cmp r13, r8
jbe 0x14001161c
mov r13, r8
jmp 0x140011638
mov r9, rcx
shr r9, 1
mov rax, r8
sub rax, r9
cmp rcx, rax
ja 0x140011617
lea rax, [r9 + rcx]
cmp r13, rax
cmovb r13, rax
mov qword [rsp + 0x20], r13
lea rcx, [r13 + 1]
test rcx, rcx
jne 0x14001164b
xor r13d, r13d
jmp 0x140011684
cmp rcx, 0x1000
jb 0x140011677
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400117bc
mov rcx, rax
call fcn.140018308
lea r13, [rax + 0x27]
and r13, 0xffffffffffffffe0
mov qword [r13 - 8], rax
jmp 0x14001167f
call fcn.140018308
mov r13, rax
mov rdx, qword [rsp + 0x28]
lea rax, [rdx + r15]
mov qword [r14 + 0x10], rax
mov rax, qword [rsp + 0x20]
mov qword [r14 + 0x18], rax
lea rax, [rdx + r13]
mov qword [rsp + 0x20], rax
mov r8, rdx
mov rcx, r13
cmp qword [rsp + 0x30], 0x10
jb 0x140011717
mov rbx, qword [r14]
mov rdx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r8, r15
mov rdx, r12
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rax, qword [rsp + 0x20]
mov byte [rax + r15], 0
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, 0x1000
jb 0x1400116ff
test bl, 0x1f
jne 0x140011710
mov rax, qword [rbx - 8]
cmp rax, rbx
jae 0x140011710
sub rbx, rax
sub rbx, 8
cmp rbx, 0x1f
ja 0x140011710
mov rbx, rax
mov rcx, rbx
call fcn.140017ff4
mov ebx, dword [rsp + 0xa8]
jmp 0x140011739
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r14
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r8, r15
mov rdx, r12
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rax, qword [rsp + 0x20]
mov byte [rax + r15], 0
mov qword [r14], r13
jmp 0x140011756
mov rcx, r12
call fcn.1400186f0
jmp 0x1400114b8
lea rdx, str.You_have_completed_reading_as_dataSize_is_0
call fcn.140008ad0
test ebx, ebx
jne 0x140011793
cmp dword [rsp + 0xa0], ebx
jbe 0x140011793
mov esi, 0x8000ffff
lea r8d, [rbx + 0xa]
lea rdx, str.You_exceeded_the_maximum_number_of_reads_of__d._Something_is_probably_wrong_creating_a_read_loop_or_data_in_OneSettings_too_large
mov ecx, esi
call fcn.140008ad0
test esi, esi
je 0x1400117a5
lea rdx, str.An_error_occurrred_during_the_read_of_OneSettings_data
mov ecx, esi
call fcn.140008ad0
mov eax, esi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret
call fcn.14000daf8
nop
call fcn.14000daec
int3