Function at 0x100049308
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 [0x1000acbbe], 0
mov rbp, rcx
lea rax, [0x10001b988]
mov rsi, rdx
lea rcx, [0x10001b960]
mov dl, 1
cmove rcx, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 0x1c]
call fcn.100049d8c
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1000495b1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.100091194
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 0x1000495a1
cmp dword [rsp + 0x90], edi
jne 0x1000495a1
mov ecx, 0x98
call fcn.1000910f4
test rax, rax
je 0x1000493cc
mov rcx, rax
call fcn.1000602ec
mov rbx, rax
jmp 0x1000493ce
xor ebx, ebx
mov r8d, edi
mov rdx, r13
mov rcx, rbx
call fcn.1000606f4
cmp al, 1
jne 0x100049584
lea rdx, [0x10001bd20]
or r8d, 0xffffffff
mov rcx, rbx
call fcn.1000617b8
lea rdx, [0x10001bd38]
or r8d, 0xffffffff
mov rcx, rbx
mov dword [0x1000acc3c], eax
call fcn.1000617b8
lea rdx, [0x10001bd50]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000acc40], eax
call fcn.1000617b8
lea rdx, [0x10001bd60]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000acc44], eax
call fcn.1000617b8
or edi, 0xffffffff
lea rdx, [0x10001bd70]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000acc48], eax
call fcn.100061820
lea rdx, [0x10001bd90]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000a8be4], eax
call fcn.100061820
cmp byte [0x1000acbbe], 0
mov dword [0x1000a8be8], eax
jne 0x10004949d
lea rdx, [0x10001bdb0]
xor r8d, r8d
mov rcx, rbx
call fcn.100061820
test eax, eax
setne byte [0x1000acc38]
lea rdx, [0x10001bdc8]
mov r8b, 1
mov rcx, rbx
call fcn.100061a10
mov rcx, qword [0x1000acb80]
test rcx, rcx
je 0x1000494c1
mov byte [rcx + 0x12c], al
mov byte [0x1000a24a3], al
cmp dword [0x1000a8be4], edi
je 0x1000494d7
cmp dword [0x1000a8be8], edi
jne 0x1000494ef
mov eax, dword [0x1000a7324]
mov dword [0x1000a8be4], eax
mov eax, dword [0x1000a7574]
mov dword [0x1000a8be8], eax
cmp byte [0x1000acbbe], 0
je 0x100049563
lea rcx, [0x10001b6a8]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x100049552
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 0x10004957b
mov eax, dword [0x1000acc44]
mov dword [rbp], eax
mov eax, dword [0x1000acc48]
jmp 0x10004957b
cmp byte [0x1000acc38], 0
jne 0x100049552
mov eax, dword [0x1000acc3c]
mov dword [rbp], eax
mov eax, dword [0x1000acc40]
mov dword [rsi], eax
mov byte [0x1000a1bf3], 0
mov rcx, r13
call sub.msvcrt.dll_free
test rbx, rbx
je 0x1000495a1
mov rcx, rbx
call fcn.100060378
mov rcx, rbx
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, 0x1c
mov rcx, r12
call fcn.100049a78
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