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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
cmp byte [0x1000b5ff5], 0
mov rbp, rcx
lea rax, [0x10001cf90]
mov rsi, rdx
lea rcx, [0x10001cf68]
mov dl, 1
cmove rcx, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 0x1c]
call fcn.10004cf80
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x10004b1d1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.10009d6a4
and dword [rsp + 0x90], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov rdx, rax
mov r8d, edi
mov rcx, r12
mov r13, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004b1c1
cmp dword [rsp + 0x90], edi
jne 0x10004b1c1
mov ecx, 0x98
call fcn.10009d604
test rax, rax
je 0x10004afec
mov rcx, rax
call fcn.100068ab4
mov rbx, rax
jmp 0x10004afee
xor ebx, ebx
mov r8d, edi
mov rdx, r13
mov rcx, rbx
call fcn.100068ebc
cmp al, 1
jne 0x10004b1a4
lea rdx, [0x10001d320]
or r8d, 0xffffffff
mov rcx, rbx
call fcn.100069f80
lea rdx, [0x10001d338]
or r8d, 0xffffffff
mov rcx, rbx
mov dword [0x1000b6048], eax
call fcn.100069f80
lea rdx, [0x10001d350]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000b604c], eax
call fcn.100069f80
lea rdx, [0x10001d360]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000b6050], eax
call fcn.100069f80
or edi, 0xffffffff
lea rdx, [0x10001d370]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000b6054], eax
call fcn.100069fe8
lea rdx, [0x10001d390]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000b1e0c], eax
call fcn.100069fe8
cmp byte [0x1000b5ff5], 0
mov dword [0x1000b1e10], eax
jne 0x10004b0bd
lea rdx, [0x10001d3b0]
xor r8d, r8d
mov rcx, rbx
call fcn.100069fe8
test eax, eax
setne byte [0x1000b6027]
lea rdx, [0x10001d3c8]
mov r8b, 1
mov rcx, rbx
call fcn.10006a1d8
mov rcx, qword [0x1000b6000]
test rcx, rcx
je 0x10004b0e1
mov byte [rcx + 0x12c], al
mov byte [0x1000ab372], al
cmp dword [0x1000b1e0c], edi
je 0x10004b0f7
cmp dword [0x1000b1e10], edi
jne 0x10004b10f
mov eax, dword [0x1000b06ac]
mov dword [0x1000b1e0c], eax
mov eax, dword [0x1000b0bac]
mov dword [0x1000b1e10], eax
cmp byte [0x1000b5ff5], 0
je 0x10004b183
lea rcx, [0x10001ccc8]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x10004b172
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x24]
call sub.msvcrt.dll_memset
mov edx, 2
mov rcx, rdi
mov dword [rsp + 0x30], 0x28
call qword [sym.imp.USER32.dll_MonitorFromWindow]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov r11d, dword [rsp + 0x34]
mov eax, dword [rsp + 0x38]
mov dword [rbp], r11d
jmp 0x10004b19b
mov eax, dword [0x1000b6050]
mov dword [rbp], eax
mov eax, dword [0x1000b6054]
jmp 0x10004b19b
cmp byte [0x1000b6027], 0
jne 0x10004b172
mov eax, dword [0x1000b6048]
mov dword [rbp], eax
mov eax, dword [0x1000b604c]
mov dword [rsi], eax
mov byte [0x1000aaac3], 0
mov rcx, r13
call sub.msvcrt.dll_free
test rbx, rbx
je 0x10004b1c1
mov rcx, rbx
call fcn.100068b40
mov rcx, rbx
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, 0x1c
mov rcx, r12
call fcn.10004cc6c
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret