Function at 0x100047708
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 [0x1000b10f2], 0
mov rbp, rcx
lea rax, [0x10001b0a0]
mov rsi, rdx
lea rcx, [0x10001b078]
mov dl, 1
cmove rcx, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 0x1c]
call fcn.10004840c
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1000479b1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.100099170
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 0x1000479a1
cmp dword [rsp + 0x90], edi
jne 0x1000479a1
mov ecx, 0x98
call fcn.1000990c0
test rax, rax
je 0x1000477cc
mov rcx, rax
call fcn.100065368
mov rbx, rax
jmp 0x1000477ce
xor ebx, ebx
mov r8d, edi
mov rdx, r13
mov rcx, rbx
call fcn.100065770
cmp al, 1
jne 0x100047984
lea rdx, [0x10001b430]
or r8d, 0xffffffff
mov rcx, rbx
call fcn.100066834
lea rdx, [0x10001b448]
or r8d, 0xffffffff
mov rcx, rbx
mov dword [0x1000b1128], eax
call fcn.100066834
lea rdx, [0x10001b460]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000b112c], eax
call fcn.100066834
lea rdx, [0x10001b470]
xor r8d, r8d
mov rcx, rbx
mov dword [0x1000b1130], eax
call fcn.100066834
or edi, 0xffffffff
lea rdx, [0x10001b480]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000b1134], eax
call fcn.10006689c
lea rdx, [0x10001b4a0]
mov r8d, edi
mov rcx, rbx
mov dword [0x1000ace0c], eax
call fcn.10006689c
cmp byte [0x1000b10f2], 0
mov dword [0x1000ace10], eax
jne 0x10004789d
lea rdx, [0x10001b4c0]
xor r8d, r8d
mov rcx, rbx
call fcn.10006689c
test eax, eax
setne byte [0x1000b111c]
lea rdx, [0x10001b4d8]
mov r8b, 1
mov rcx, rbx
call fcn.100066a8c
mov rcx, qword [0x1000b10d8]
test rcx, rcx
je 0x1000478c1
mov byte [rcx + 0x12c], al
mov byte [0x1000a6372], al
cmp dword [0x1000ace0c], edi
je 0x1000478d7
cmp dword [0x1000ace10], edi
jne 0x1000478ef
mov eax, dword [0x1000ab6ac]
mov dword [0x1000ace0c], eax
mov eax, dword [0x1000abbac]
mov dword [0x1000ace10], eax
cmp byte [0x1000b10f2], 0
je 0x100047963
lea rcx, [0x10001add8]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x100047952
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 0x10004797b
mov eax, dword [0x1000b1130]
mov dword [rbp], eax
mov eax, dword [0x1000b1134]
jmp 0x10004797b
cmp byte [0x1000b111c], 0
jne 0x100047952
mov eax, dword [0x1000b1128]
mov dword [rbp], eax
mov eax, dword [0x1000b112c]
mov dword [rsi], eax
mov byte [0x1000a5ac3], 0
mov rcx, r13
call sub.msvcrt.dll_free
test rbx, rbx
je 0x1000479a1
mov rcx, rbx
call fcn.1000653f4
mov rcx, rbx
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, 0x1c
mov rcx, r12
call fcn.1000480f8
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