Function at 0x140014870
Capabilities:
Read file on windows

Disassembly:
push r15
mov eax, 0x100f8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140044900
sub rsp, rax
mov rax, rcx
mov qword [rsp + 0x10140], rcx
mov rbx, rdx
mov qword [rsp + 0x80], 0
add rax, 0x20
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x140014c57
cmp byte [rdx], 0
je 0x140014c57
cmp byte [rdx], 0x2d
jne 0x140014a10
cmp byte [rdx + 1], 0
jne 0x140014a10
mov r15, qword [dbg.__acrt_iob_func]
xor ecx, ecx
call r15
mov qword [rsp + 0x80], rax
mov r9, rax
lea rdx, [rsp + 0x98]
xor eax, eax
mov ecx, 0xb
mov qword [rsp + 0x90], 1
mov rdi, rdx
mov qword [rsp + 0x10148], rbx
lea rsi, [rsp + 0xf0]
lea r12, [rsp + 0x88]
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], r15
xor edi, edi
mov qword [rsp + 0x48], rax
lea r14, [rsp + 0x7c]
lea r13, [rsp + 0x78]
mov byte [rsp + 0xe9], 8
lea rbp, [rsp + 0x90]
jmp 0x14001496e
test eax, eax
jne 0x140014a78
cmp qword [rsp + 0x88], rbx
jb 0x140014b20
mov r9, qword [rsp + 0x80]
mov r8d, 0x10000
mov edx, 1
mov rcx, rsi
call sym.fread
mov rbx, rax
test rax, rax
je 0x140014b40
mov qword [rsp + 0x88], 0
lea r15, [rsp + 0x60]
nop
mov qword [rsp + 0x28], r14
mov r9, rbx
mov r8, r12
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov rcx, rbp
call dbg._parser_next
cmp eax, 2
je 0x140014a50
cmp eax, 3
jne 0x140014950
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rdx, r15
add edi, 1
movdqu xmm0, xmmword [rsp + 0xb8]
movdqu xmm1, xmmword [rsp + 0xc8]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x50], xmm1
call dbg.range6list_add_range
mov rax, qword [rsp + 0x88]
cmp rax, rbx
jb 0x1400149a0
jmp 0x140014966
lea rcx, [rsp + 0x80]
lea r8, [0x140059869]
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_fopen_s]
test eax, eax
jne 0x140014c45
mov r9, qword [rsp + 0x80]
test r9, r9
je 0x140014c45
mov r15, qword [dbg.__acrt_iob_func]
jmp 0x1400148e8
mov r8d, dword [rsp + 0x7c]
mov edx, dword [rsp + 0x78]
add edi, 1
mov rcx, qword [rsp + 0x10140]
call dbg.rangelist_add_range
mov rax, qword [rsp + 0x88]
jmp 0x140014a02
mov rsi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x38]
mov ecx, 2
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x10148]
call r15
mov qword [rsp + 0x28], rsi
mov r9, rsi
lea rdx, str._____s:_llu:_llu:_invalid_IP_address_on_line__llu_n
mov qword [rsp + 0x20], rbp
mov rcx, rax
mov r8, rbx
call sym.fprintf_8
xor ecx, ecx
call r15
mov rcx, qword [rsp + 0x80]
cmp rcx, rax
je 0x140014ae0
test rcx, rcx
je 0x140014ae0
call sym.fclose
nop dword [rax + rax]
mov esi, 0xffffffff
mov r9d, edi
mov r8, rbx
mov ecx, 1
lea rdx, str.____s:__u_addresses_read_n
call dbg.LOG
mov rcx, qword [rsp + 0x10140]
call dbg.rangelist_sort
mov eax, esi
add rsp, 0x100f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x38]
mov ecx, 2
call rax
lea rdx, str.____rangeparse_next__:_unknown_coding_failure_n
mov rcx, rax
call sym.fprintf_8
jmp 0x1400149a0
xor ecx, ecx
mov rbx, qword [rsp + 0x10148]
mov r15, qword [rsp + 0x38]
call r15
mov rcx, qword [rsp + 0x80]
cmp rcx, rax
je 0x140014b69
test rcx, rcx
je 0x140014b69
call sym.fclose
mov qword [rsp + 0x28], r14
mov r9d, 1
mov r8, r12
mov rcx, rbp
mov qword [rsp + 0x20], r13
lea rdx, [0x1400598d4]
mov qword [rsp + 0x88], 0
call dbg._parser_next
cmp eax, 2
je 0x140014c25
cmp eax, 3
je 0x140014beb
xor esi, esi
test eax, eax
je 0x140014ae5
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov ecx, 2
call r15
mov r8, rbx
lea rdx, str._____s:_llu:_llu:_invalid_IP_address_on_line__llu_n
mov qword [rsp + 0x28], rsi
mov rcx, rax
mov r9, rsi
mov qword [rsp + 0x20], rbp
call sym.fprintf_8
jmp 0x140014ae0
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
add edi, 1
xor esi, esi
movdqu xmm2, xmmword [rsp + 0xb8]
lea r8, [rsp + 0x50]
movdqu xmm3, xmmword [rsp + 0xc8]
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rsp + 0x50], xmm3
call dbg.range6list_add_range
jmp 0x140014ae5
mov r8d, dword [rsp + 0x7c]
mov edx, dword [rsp + 0x78]
add edi, 1
xor esi, esi
mov rcx, qword [rsp + 0x10140]
call dbg.rangelist_add_range
jmp 0x140014ae5
mov rcx, rbx
call sym.perror
mov ecx, 1
call sym.exit
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.____missing_filename_for_ranges_n
mov rcx, rax
call sym.fprintf_8
mov ecx, 1
call sym.exit
nop
nop dword [rax]