Function at 0x140062cb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx], 0
mov r15, r8
mov r14, rdx
mov rdi, rcx
jne 0x140062d14
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x140062ced
cmp byte [0x1400ed7fd], 0
jne 0x140062cf9
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea rdx, str.file_handler_to_read_not_initialized
mov rax, qword [rax + 8]
call qword [case.0x140049d6d.0]
xor al, al
jmp 0x140062f8f
mov qword [rsp + 0x58], rbp
lea rbp, [rcx + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140062da4
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x140062d4c
cmp byte [0x1400ed7fd], al
jne 0x140062d58
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
lea r9, [rdi + 0xf0]
cmp qword [r9 + 0x18], 8
jb 0x140062d69
mov r9, qword [r9]
mov rax, qword [rcx]
lea r8, str.failed_to_get_the_file_size_of__s
lea rdx, [0x1400c3148]
mov rax, qword [rax + 0x48]
call qword [case.0x140049d6d.0]
mov dword [rdi + 0x40], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov dword [rdi + 0x44], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x140062f8a
mov qword [rsp + 0x50], rsi
mov rsi, qword [rsp + 0x38]
test rsi, rsi
jne 0x140062dff
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x140062dc8
cmp byte [0x1400ed7fd], sil
jne 0x140062dd4
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea r8, str.start_address_to_read_the_file_is_past_the_file_size.
lea rdx, [0x1400c3148]
mov rax, qword [rax + 0x48]
call qword [case.0x140049d6d.0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x140062f85
mov rcx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x98], rbx
xor r8d, r8d
xor ebx, ebx
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140062f17
lea rcx, [rsi + 1]
mov dword [rsp + 0x30], ebx
call fcn.140079f1c
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov rcx, qword [rdi]
mov r8d, esi
mov rdx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
jne 0x140062e85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x140062e85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x140062f6e
mov ecx, dword [rsp + 0x30]
lea ebx, [rax - 0x25]
mov rax, qword [r14]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x30]
mov qword [r15], rax
jmp 0x140062f6e
mov eax, dword [rsp + 0x30]
cmp rax, rsi
jne 0x140062ea6
mov rax, qword [r14]
mov ebx, 1
mov byte [rsi + rax], 0
mov eax, dword [rsp + 0x30]
mov qword [r15], rax
jmp 0x140062f6e
mov dword [rdi + 0x40], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [0x1400ed828]
mov dword [rdi + 0x44], eax
test rsi, rsi
je 0x140062ecb
cmp byte [0x1400ed7fd], 0
jne 0x140062ed7
call fcn.14005c3a0
mov rsi, qword [0x1400ed828]
mov rdi, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.failed_to_read_data._Error_code____d
mov rcx, rsi
mov r9d, eax
lea rdx, [0x1400c3148]
mov rax, qword [rdi + 0x48]
call qword [case.0x140049d6d.0]
mov rdi, qword [r14]
mov rcx, rdi
call fcn.140079b70
test rdi, rdi
je 0x140062f6e
mov qword [r14], 0x8123
jmp 0x140062f6e
mov dword [rdi + 0x40], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [0x1400ed828]
mov dword [rdi + 0x44], eax
test rsi, rsi
je 0x140062f3b
cmp byte [0x1400ed7fd], bl
jne 0x140062f47
call fcn.14005c3a0
mov rsi, qword [0x1400ed828]
mov rdi, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.file_pointer_set_error____d
mov rcx, rsi
mov r9d, eax
lea rdx, [0x1400c3148]
mov rax, qword [rdi + 0x48]
call qword [case.0x140049d6d.0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 1
mov rbx, qword [rsp + 0x98]
sete al
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140079b50
add rsp, 0x60
pop r15
pop r14
pop rdi
ret