Function at 0x14001fa40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f68]
mov eax, 0x4068
call fcn.140032440
sub rsp, rax
mov ebx, dword [rcx + 0x11c]
mov rdi, r8
mov rsi, rcx
mov dword [rbp + 0x3f90], 0
mov r11d, 1
mov dword [rsp + 0x50], ebx
nop dword [rax + rax]
mov r9, qword [rsi]
lea rcx, [rsp + 0x40]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r11
call fcn.140027878
cmp rax, 0x10
jb 0x14001ff3c
add qword [rsi + 0x138], rax
mov eax, ebx
dec eax
je 0x14001fae8
dec eax
je 0x14001fac8
mov ecx, 0xa3a3
jmp 0x14001fb0b
movzx eax, byte [rsp + 0x42]
movzx ecx, byte [rsp + 0x43]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x41]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x40]
jmp 0x14001fb06
movzx eax, byte [rsp + 0x41]
movzx ecx, byte [rsp + 0x40]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x42]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x43]
shl ecx, 8
or ecx, eax
mov rdx, qword [rbp + 0x3f98]
mov eax, ebx
dec eax
mov dword [rdx], ecx
je 0x14001fb45
dec eax
je 0x14001fb25
mov ecx, 0xa3a3
jmp 0x14001fb68
movzx eax, byte [rsp + 0x46]
movzx ecx, byte [rsp + 0x47]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x45]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x44]
jmp 0x14001fb63
movzx eax, byte [rsp + 0x45]
movzx ecx, byte [rsp + 0x44]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x46]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x47]
shl ecx, 8
or ecx, eax
mov eax, ebx
mov dword [rdi], ecx
dec eax
je 0x14001fb9b
dec eax
je 0x14001fb7b
mov ecx, 0xa3a3
jmp 0x14001fbbe
movzx eax, byte [rsp + 0x4a]
movzx ecx, byte [rsp + 0x4b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x49]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x48]
jmp 0x14001fbb9
movzx eax, byte [rsp + 0x49]
movzx ecx, byte [rsp + 0x48]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x4a]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x4b]
shl ecx, 8
or ecx, eax
mov r9, qword [rbp + 0x3fb0]
mov eax, ebx
dec eax
mov dword [r9], ecx
je 0x14001fbf9
dec eax
je 0x14001fbd9
mov ecx, 0xa3a3
jmp 0x14001fc1c
movzx eax, byte [rsp + 0x4e]
movzx ecx, byte [rsp + 0x4f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x4d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x4c]
jmp 0x14001fc17
movzx eax, byte [rsp + 0x4d]
movzx ecx, byte [rsp + 0x4c]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x4e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x4f]
shl ecx, 8
or ecx, eax
mov r10, qword [rbp + 0x3fa8]
mov r11d, 1
mov dword [r10], ecx
mov eax, dword [rdi]
cmp eax, 0xf42a4
jbe 0x14001fc48
cmp eax, 0xffffff00
jbe 0x14001fcfc
dec dword [rdx]
add dword [rdi], 0xf4240
mov r8d, dword [rbp + 0x3f90]
cmp dword [rdi], 0
jne 0x14001fc69
cmp dword [rdx], 0
jne 0x14001fc69
cmp dword [r10], 0
jne 0x14001fc69
cmp dword [r9], 0
je 0x14001fa90
mov eax, dword [r10]
mov ecx, dword [r9]
cmp ecx, dword [rbp + 0x3fc0]
cmova r8d, r11d
cmp eax, ecx
cmovb r8d, r11d
cmp eax, 8
cmovb r8d, r11d
cmp eax, 0x27100
ja 0x14001fd66
test r8d, r8d
jne 0x14001fd66
mov r9, qword [rsi]
mov r8d, ecx
mov rcx, qword [rbp + 0x3fb8]
mov rdx, r11
call fcn.140027878
mov r11, rax
mov rax, qword [rbp + 0x3fb0]
mov eax, dword [rax]
cmp r11, rax
jae 0x14001fd1c
test r11, r11
jne 0x14001fd0b
call fcn.1400269ec
mov r9, qword [rsi + 0x128]
lea r8, [rsi + 0x1c]
lea rcx, [rax + 0x60]
lea rdx, str._s:_could_not_read_packet_data__frame__I64d_n
call fcn.140026c00
lea rcx, [rsi + 0x1c]
call fcn.1400273b0
xor eax, eax
add rsp, 0x4068
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, r11d
mov dword [rbp + 0x3f90], r11d
jmp 0x14001fc4f
call fcn.1400269ec
lea rdx, str._s:_premature_end_of_file_n
jmp 0x14001ff4d
mov rdx, qword [rsi + 0x128]
add qword [rsi + 0x138], r11
mov rax, qword [rbp + 0x3f98]
test rdx, rdx
jne 0x14001fd40
mov ecx, dword [rax]
mov dword [rsi + 0xc], ecx
mov ecx, dword [rdi]
mov dword [rsi + 0x10], ecx
mov ecx, dword [rax]
mov eax, 1
mov dword [rsi + 0x14], ecx
mov ecx, dword [rdi]
mov dword [rsi + 0x18], ecx
lea rcx, [rdx + 1]
mov qword [rsi + 0x128], rcx
add rsp, 0x4068
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsi]
call fcn.14002b6b8
mov rdi, rax
mov qword [rbp + 0x3f90], rax
cmp rax, 0xffffffffffffffff
je 0x14001ff17
call fcn.1400269ec
mov r9, qword [rsi + 0x128]
lea r8, [rsi + 0x1c]
lea rdx, str._s__I64u_:_corruption_found_at_0x_08I64x___I64d__n
lea rcx, [rax + 0x60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.140026c00
mov r9, qword [rsi]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8d, 0x4000
call fcn.140027878
mov rdi, rax
test rax, rax
je 0x14001fee7
add qword [rsi + 0x138], rax
xor ebx, ebx
test rax, rax
je 0x14001fe00
xor ecx, ecx
mov r8d, dword [rsp + 0x50]
mov edx, edi
lea rcx, [rsp + rcx + 0x60]
sub edx, ebx
call fcn.14001f7e0
test eax, eax
jne 0x14001fe11
inc ebx
mov ecx, ebx
cmp rcx, rdi
jb 0x14001fde0
lea rcx, str.No_valid_packet_found_in_chunk_n
call fcn.140026e88
jmp 0x14001fd66
mov rcx, qword [rsi]
mov edx, ebx
xor r8d, r8d
add rdx, qword [rbp + 0x3f90]
call fcn.14002be84
test eax, eax
je 0x14001fe67
call fcn.1400269ec
lea r8, [rsi + 0x1c]
lea rdx, str._s:_could_not_resolve_file_corruption__seek_forward__n
lea rcx, [rax + 0x60]
call fcn.140026c00
lea rcx, [rsi + 0x1c]
call fcn.1400273b0
mov rcx, qword [rsi]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14002be84
xor eax, eax
add rsp, 0x4068
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsi]
call fcn.14002b6b8
mov rbx, rax
call fcn.1400269ec
mov r9, qword [rsi + 0x128]
lea r8, [rsi + 0x1c]
lea rdx, str._s__I64d_:_good_packet_found_at_0x_08I64x___I64d__n
lea rcx, [rax + 0x60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.140026c00
mov eax, dword [rbp + 0x3fc0]
mov r9, qword [rbp + 0x3fa8]
mov r8, qword [rbp + 0x3fa0]
mov rdx, qword [rbp + 0x3f98]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x3fb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x3fb0]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001fa40
add rsp, 0x4068
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400269ec
lea r8, [rsi + 0x1c]
lea rdx, str._s:_error_at_end_of_file_n
lea rcx, [rax + 0x60]
call fcn.140026c00
lea rcx, [rsi + 0x1c]
call fcn.1400273b0
xor eax, eax
add rsp, 0x4068
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400269ec
mov r9, qword [rsi + 0x128]
lea r8, [rsi + 0x1c]
lea rcx, [rax + 0x60]
lea rdx, str._s:_could_not_resolve_file_corruption__ftell__frame__I64d_n
call fcn.140026c00
jmp 0x14001fe42
test rax, rax
je 0x14001ff5a
call fcn.1400269ec
lea rdx, [0x14004f598]
lea r8, [rsi + 0x1c]
lea rcx, [rax + 0x60]
call fcn.140026c00
xor eax, eax
add rsp, 0x4068
pop rdi
pop rsi
pop rbx
pop rbp
ret