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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r12d, r12d
mov r13d, r9d
mov dword [rax + 0x18], r12d
mov r14, r8
test r8, r8
je 0x180034920
test r9d, r9d
je 0x180034920
mov rcx, qword [rsp + 0xb0]
xor edx, edx
call fcn.180050774
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x180034890
mov rcx, qword [rsp + 0xb0]
lea r8d, [r12 + 1]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, rdi
je 0x180034890
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea ecx, [rbp - 1]
cmp ecx, 0xfffffffd
ja 0x180034918
lea ecx, [rbp + 2]
mov r15d, ecx
lea rdx, [0x1800ca514]
mov qword [rsp + 0x40], r15
call fcn.180046820
mov rbx, rax
mov rcx, rsi
test rax, rax
jne 0x180034686
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180034890
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x20], r12
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
test eax, eax
jne 0x1800346b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.180045d54
jmp 0x180034890
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0xa0], r12d
je 0x1800346ac
mov edx, 2
cmp ebp, 3
jb 0x1800346f3
cmp byte [rbx], 0xff
jne 0x1800346f3
cmp byte [rbx + 1], 0xfe
jne 0x1800346f3
mov rax, rbp
lea rsi, [rbx + 2]
shr rax, 1
xor r10d, r10d
mov word [rsi + rax*2 - 2], r10w
jmp 0x180034768
lea eax, [rbp + 1]
mov byte [rbx + rbp], r12b
mov byte [rax + rbx], r12b
mov rax, rdx
mul r15
lea rdx, [0x1800ca514]
cmovo rax, rdi
mov rcx, rax
call fcn.180046820
mov rsi, rax
test rax, rax
je 0x1800346ac
mov r9, rbx
mov qword [rsp + 0x48], r12
mov r8, r15
mov qword [rsp + 0x20], rbp
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180050b90
test eax, eax
je 0x180034750
mov rcx, rbx
call fcn.180045d54
mov rcx, rsi
jmp 0x1800346af
mov rax, qword [rsp + 0x48]
xor r10d, r10d
mov word [rsi + rax*2], r12w
mov r12d, 1
lea edx, [r12 + 1]
mov rax, rdx
cmp qword [rsp + 0x90], r10
jne 0x18003482c
mul r15
lea rdx, [0x1800ca514]
cmovo rax, rdi
mov rcx, rax
call fcn.180046820
mov r15, rax
xor eax, eax
test r15, r15
je 0x180034877
mov r9, qword [rsp + 0x40]
mov r8, r15
mov rcx, rsi
mov word [r15], ax
call fcn.180034e8c
mov dword [rsp + 0x40], eax
mov rbp, rax
cmp r13d, eax
jae 0x1800347c0
mov rbp, r13
xor r10d, r10d
cmp rbp, 1
jbe 0x1800347f5
lea rdx, [rbp - 2]
test rdx, rdx
je 0x1800347f0
mov r8, r15
mov rcx, r14
sub r8, r14
mov r9, rdx
movzx eax, word [r8 + rcx]
mov word [rcx], ax
lea rcx, [rcx + 2]
sub r9, 1
jne 0x1800347de
mov word [r14 + rdx*2], r10w
mov rcx, r15
mov word [r14 + rbp*2 - 2], r10w
call fcn.180045d54
mov rcx, rbx
call fcn.180045d54
cmp r12d, 1
jne 0x180034819
mov rcx, rsi
call fcn.180045d54
cmp r13d, dword [rsp + 0x40]
sbb rax, rax
add rax, rdi
add rax, rbp
jmp 0x180034922
mul rbp
lea rdx, [0x1800ca514]
cmovo rax, rdi
mov rcx, rax
call fcn.180046820
mov r15, rax
xor eax, eax
test r15, r15
je 0x180034877
mov r8, qword [rsp + 0x90]
mov r9, r15
mov rcx, rsi
mov word [r15], ax
mov qword [rsp + 0x20], rbp
call fcn.18003493c
xor ebp, ebp
test rax, rax
jne 0x1800348c8
mov rcx, r15
call fcn.180045d54
mov rcx, rbx
call fcn.180045d54
cmp r12d, 1
jne 0x18003488d
mov rcx, rsi
call fcn.180045d54
xor r12d, r12d
mov rax, qword [rsp + 0x98]
lea ebx, [r13 - 1]
test rax, rax
lea r8, [0x1800a4c08]
mov r9, rdi
mov edx, ebx
cmovne r8, rax
mov rcx, r14
call fcn.180050bb0
mov word [r14 + rbx*2], r12w
inc rdi
cmp word [r14 + rdi*2], r12w
jne 0x1800348bc
jmp 0x180034913
mov rdx, r13
mov qword [rsp + 0x20], r15
lea r9, [0x1800a9ab4]
mov r8, rdi
mov rcx, r14
call fcn.1800359e8
lea eax, [r13 - 1]
mov rcx, r15
mov word [r14 + rax*2], bp
call fcn.180045d54
mov rcx, rbx
call fcn.180045d54
cmp r12d, 1
jne 0x180034909
mov rcx, rsi
call fcn.180045d54
inc rdi
cmp word [r14 + rdi*2], bp
jne 0x180034909
mov rax, rdi
jmp 0x180034922
mov rcx, rsi
jmp 0x18003467b
xor eax, eax
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret