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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x90
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800f0938]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov rcx, qword [rcx + 0xd8]
xor r12d, r12d
test rcx, rcx
je 0x180032ae4
call fcn.180099070
mov qword [rbx + 0xd8], r12
mov qword [rbx + 0xd0], r12
mov qword [rbx + 0xe0], r12
cmp qword [rbx + 0x40], r12
jne 0x180032b02
mov eax, 1
jmp 0x180032d2b
lea r13, [0x1800cdd88]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 0xffffffffffffffff
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x60]
call fcn.1800158b0
nop
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x18]
cmp qword [rbx + 0x48], 8
jb 0x180032b40
mov rcx, qword [rbx + 0x30]
jmp 0x180032b44
lea rcx, [rbx + 0x30]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x180032bae
cmp qword [rsp + 0x80], 8
jb 0x180032b90
mov rcx, qword [rsp + 0x68]
call fcn.180098980
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], r13
cmp rax, 0xffffffffffffffff
je 0x180032ba4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180032d2b
cmp qword [rsp + 0x80], 8
jb 0x180032bc8
mov rcx, qword [rsp + 0x68]
call fcn.180098980
mov rax, qword [rsp + 0x48]
cmp rax, 0xffffffffffffffff
je 0x180032d12
lea rdx, [rsp + 0x54]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180032bfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180032bfb
mov rax, qword [rsp + 0x48]
jmp 0x180032d12
mov esi, dword [rsp + 0x54]
shl rsi, 0x20
add rsi, rdi
lea eax, [rsi + 1]
mov edi, eax
cmp rdi, qword [rbx + 0xd0]
je 0x180032c74
mov rbp, r12
test eax, eax
je 0x180032c55
mov rcx, rdi
call fcn.180097720
mov rbp, rax
cmp qword [rbx + 0xd0], 0
jbe 0x180032c55
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
je 0x180032c55
mov rcx, qword [rbx + 0xd0]
mov r8, rdi
cmp rcx, rdi
cmovb r8, rcx
mov rcx, rax
call fcn.1800999d0
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x180032c66
call fcn.180099070
mov qword [rbx + 0xd8], rbp
mov qword [rbx + 0xd0], rdi
mov r8d, esi
mov rax, qword [rbx + 0xd0]
mov ecx, esi
cmp r8, rax
cmova rcx, rax
mov qword [rbx + 0xe0], rcx
xor edx, edx
mov rcx, qword [rbx + 0xd8]
call fcn.180099ff0
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
je 0x180032cf5
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180032cfa
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180032cf5
cmp dword [rsp + 0x50], 0
seta al
test al, al
je 0x180032cf5
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180032cf1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180032d2b
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], r13
cmp rcx, 0xffffffffffffffff
je 0x180032d0b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180032d2b
mov qword [rsp + 0x40], r13
cmp rax, 0xffffffffffffffff
je 0x180032d26
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180099050
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret