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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x1a8]
call fcn.1800736f0
xor edx, edx
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x1800083cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x190]
mov dword [rcx + 0x77c], eax
mov rax, qword [rsp + 0x190]
mov r9d, dword [rax + 0x77c]
lea r8, [0x1803ae2f8]
mov rdx, qword [0x1803b0cb8]
lea rcx, [rsp + 0x140]
call fcn.1801e9200
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x190]
add rax, 0xb0
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x140]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x18000834f
xor al, al
jmp 0x1800087cf
cmp dword [rsp + 0x30], 0x1000000
jbe 0x18000843d
mov rax, qword [rsp + 0x190]
mov dword [rax + 0x77c], 0x1f
mov r8d, 0x1000000
mov rdx, qword [0x1803b0cd0]
lea rcx, [rsp + 0x100]
call fcn.1801e9200
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x190]
add rax, 0xb0
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x100]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x1800083d7
xor al, al
jmp 0x1800087cf
cmp dword [rsp + 0x30], 0
jbe 0x1800087cd
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1800761a0
nop
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x180008523
mov dword [rsp + 0x50], 0
mov qword [rsp + 0xb0], 0x20000
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x58]
call fcn.180083960
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x60]
call fcn.1800038e0
mov ecx, dword [rsp + 0x30]
add rax, rcx
sub rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0xa8]
mov r8d, dword [rcx]
mov rdx, rax
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800084ef
cmp dword [rsp + 0x50], 0
jne 0x18000850a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x180008508
mov dword [rsp + 0x3c], 0x1f
jmp 0x180008523
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x18000846a
cmp dword [rsp + 0x3c], 0
je 0x1800085bc
mov rax, qword [rsp + 0x190]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x77c], ecx
mov rax, qword [rsp + 0x190]
mov r9d, dword [rax + 0x77c]
lea r8, [0x1803ae308]
mov rdx, qword [0x1803b0cb8]
lea rcx, [rsp + 0xc0]
call fcn.1801e9200
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x190]
add rax, 0xb0
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0xc0]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x18000852e
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x60]
call fcn.180076200
movzx eax, byte [rsp + 0x34]
jmp 0x1800087cf
lea rcx, [rsp + 0x60]
call fcn.1800038e0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x4c], 0
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jle 0x18000861c
cmp dword [rsp + 0x48], 2
jle 0x180008600
cmp dword [rsp + 0x48], 4
je 0x180008600
jmp 0x18000861c
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x30]
cmp rax, 3
jb 0x18000866d
mov r8d, 3
lea rdx, [0x1803b0c14]
mov rcx, qword [rsp + 0x40]
call fcn.18017cbe0
test eax, eax
jne 0x18000866d
mov dword [rsp + 0x38], 2
mov rax, qword [rsp + 0x40]
add rax, 3
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
sub rax, 3
mov dword [rsp + 0x30], eax
jmp 0x1800086b4
mov eax, dword [rsp + 0x30]
cmp rax, 2
jb 0x1800086b4
mov r8d, 2
lea rdx, [0x1803b0cd8]
mov rcx, qword [rsp + 0x40]
call fcn.18017cbe0
test eax, eax
jne 0x1800086b4
mov dword [rsp + 0x38], 4
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
sub rax, 2
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x4c], 0
jne 0x1800086c5
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x54], eax
jmp 0x1800086cd
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x1a0]
mov ecx, dword [rsp + 0x54]
mov dword [rax], ecx
cmp dword [rsp + 0x30], 0
jbe 0x1800087c3
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 4
je 0x1800086fa
jmp 0x180008785
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 2
div ecx
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x120]
call fcn.180073d30
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xe0]
call fcn.1800034a0
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x1a8]
call fcn.1800732b0
lea rcx, [rsp + 0xe0]
call fcn.180073360
nop
lea rcx, [rsp + 0x120]
call fcn.180073fc0
jmp 0x1800087c3
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x160]
call fcn.180073080
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x1a8]
call fcn.1800732b0
lea rcx, [rsp + 0x160]
call fcn.180073360
nop
lea rcx, [rsp + 0x60]
call fcn.180076200
mov al, 1
add rsp, 0x188
ret