Function at 0x18001c110
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1800ae1f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov rdi, qword [rdx]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18001c16f
mov rcx, rax
jmp 0x18001c374
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
test rdi, rdi
je 0x18001c371
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001c371
mov eax, dword [rsp + 0x40]
cmp eax, 0xa1b2c3d4
jne 0x18001c1b8
mov eax, r14d
jmp 0x18001c1c8
cmp eax, 0xa0d0d0a
jne 0x18001c371
mov eax, 1
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rsi + 8], 0
jne 0x18001c247
mov ecx, 0x40
call fcn.18004e1a0
mov word [rax + 0x11], r14w
mov byte [rax + 0x13], 0
mov dword [rax + 0x24], r14d
mov qword [rax + 8], 0xffffffffffffffff
mov byte [rax + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x14], xmm0
lea rcx, vtable.PcapFileReader.0
mov qword [rax], rcx
xor ecx, ecx
movups xmmword [rax + 0x28], xmm0
mov qword [rax + 0x38], rcx
mov rcx, qword [rsi + 0xa0]
mov qword [rsi + 0xa0], rax
test rcx, rcx
je 0x18001c23e
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x180018da5.0]
lea rbx, str.sophos_daq:_the_file___ls__n_is_legacy_PCAP_n
jmp 0x18001c2a7
mov ecx, 0x28
call fcn.18004e1a0
mov word [rax + 0x11], r14w
mov byte [rax + 0x13], 0
mov dword [rax + 0x24], r14d
mov qword [rax + 8], 0xffffffffffffffff
mov byte [rax + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x14], xmm0
lea rcx, vtable.PcapNgFileReader.0
mov qword [rax], rcx
mov rcx, qword [rsi + 0xa0]
mov qword [rsi + 0xa0], rax
test rcx, rcx
je 0x18001c2a0
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x180018da5.0]
lea rbx, str.sophos_daq:_the_file___ls__n_is_PCAPNG_n
mov ecx, 2
call fcn.180055fc0
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call fcn.1800052c0
nop
mov rbx, qword [rsi + 0xa0]
test rdi, rdi
je 0x18001c33d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18001c309
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001c33d
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x180018da5.0]
test eax, eax
jne 0x18001c33d
mov byte [rbx + 0x10], al
lea ecx, [rax + 2]
call fcn.180055fc0
mov r8, rdi
lea rdx, str.sophos_daq:_reading_packets_from___ls__n
mov rcx, rax
call fcn.1800052c0
mov al, 1
jmp 0x18001c398
mov ecx, 2
call fcn.180055fc0
mov r8, rdi
lea rdx, str.sophos_daq:_warning:_file___ls__could_not_be_opened__n
mov rcx, rax
call fcn.1800052c0
mov rcx, qword [rsi + 0xa0]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x180018da5.0]
jmp 0x18001c396
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 2
call fcn.180055fc0
mov r8, rdi
lea rdx, str.sophos_daq:_warning:_file___ls__is_not_a_valid_PCAP_file_n
mov rcx, rax
call fcn.1800052c0
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18004e170
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret