Function at 0x10004f3f0
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 [0x1000bb01d], 0
mov rbp, rcx
lea rax, [0x10001f580]
mov rsi, rdx
lea rcx, [0x10001f558]
mov dl, 1
cmove rcx, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 0x1c]
call fcn.10004fe74
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x10004f699
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.1000a1d24
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 0x10004f689
cmp dword [rsp + 0x90], edi
jne 0x10004f689
mov ecx, 0x98
call fcn.1000a1c84
test rax, rax
je 0x10004f4b4
mov rcx, rax
call fcn.10006d000
mov rbx, rax
jmp 0x10004f4b6
xor ebx, ebx
mov r8d, edi
mov rdx, r13
mov rcx, rbx
call fcn.10006d408
cmp al, 1
jne 0x10004f66c
lea rdx, [0x10001f910]
or r8d, 0xffffffff
mov rcx, rbx
call fcn.10006e4cc
lea rdx, [0x10001f928]
or r8d, 0xffffffff
mov rcx, rbx
mov dword [0x1000bb080], eax
call fcn.10006e4cc
lea rdx, [0x10001f940]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000bb084], eax
call fcn.10006e4cc
lea rdx, [0x10001f950]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000bb088], eax
call fcn.10006e4cc
or edi, 0xffffffff
lea rdx, [0x10001f960]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000bb08c], eax
call fcn.10006e534
lea rdx, [0x10001f980]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000b6e68], eax
call fcn.10006e534
cmp byte [0x1000bb01d], 0
mov dword [0x1000b6e6c], eax
jne 0x10004f585
lea rdx, [0x10001f9a0]
xor r8d, r8d
mov rcx, rbx
call fcn.10006e534
test eax, eax
setne byte [0x1000bb05f]
lea rdx, [0x10001f9b8]
mov r8b, 1
mov rcx, rbx
call fcn.10006e724
mov rcx, qword [0x1000bb030]
test rcx, rcx
je 0x10004f5a9
mov byte [rcx + 0x12c], al
mov byte [0x1000b03c2], al
cmp dword [0x1000b6e68], edi
je 0x10004f5bf
cmp dword [0x1000b6e6c], edi
jne 0x10004f5d7
mov eax, dword [0x1000b63c4]
mov dword [0x1000b6e68], eax
mov eax, dword [0x1000b63c8]
mov dword [0x1000b6e6c], eax
cmp byte [0x1000bb01d], 0
je 0x10004f64b
lea rcx, [0x10001f2b8]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x10004f63a
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 0x10004f663
mov eax, dword [0x1000bb088]
mov dword [rbp], eax
mov eax, dword [0x1000bb08c]
jmp 0x10004f663
cmp byte [0x1000bb05f], 0
jne 0x10004f63a
mov eax, dword [0x1000bb080]
mov dword [rbp], eax
mov eax, dword [0x1000bb084]
mov dword [rsi], eax
mov byte [0x1000afb13], 0
mov rcx, r13
call sub.msvcrt.dll_free
test rbx, rbx
je 0x10004f689
mov rcx, rbx
call fcn.10006d08c
mov rcx, rbx
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, 0x1c
mov rcx, r12
call fcn.10004fb60
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