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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1c8], rbx
mov rax, qword [0x14003ae50]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, r8
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x28], rbx
mov qword [rbp + 0x28], 7
xor r13d, r13d
mov qword [rbp + 0x20], r13
mov word [rbp + 0x10], r13w
lea r8d, [r13 + 1]
lea rdx, [0x14002c120]
lea rcx, [rbp + 0x10]
call fcn.1400039a0
nop
lea r8, [rbp + 0x10]
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140008ec0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140008f20
nop
cmp qword [rbp + 0x50], 8
jb 0x140011981
mov rcx, qword [rbp + 0x38]
call fcn.1400187b4
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], r13
mov word [rbp + 0x38], r13w
cmp qword [rbp + 0x28], 8
jb 0x1400119a2
mov rcx, qword [rbp + 0x10]
call fcn.1400187b4
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], r13
mov word [rbp + 0x10], r13w
nop word [rax + rax]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
mov qword [rsp + 0x30], r13
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 rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011a83
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140011a1a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400119c0
cmp qword [rbp], 8
jb 0x140011a2a
mov rcx, qword [rbp - 0x18]
call fcn.1400187b4
mov qword [rbp], 7
mov qword [rbp - 8], r13
mov word [rbp - 0x18], r13w
cmp qword [rdi + 0x18], 8
jb 0x140011a4a
mov rcx, qword [rdi]
call fcn.1400187b4
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
cmp qword [rbx + 0x18], 8
jb 0x140011a69
mov rcx, qword [rbx]
call fcn.1400187b4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov eax, 1
jmp 0x140011c86
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
cmp r12, qword [r15 + 8]
jbe 0x140011ae6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp], 8
jb 0x140011ab1
mov rcx, qword [rbp - 0x18]
call fcn.1400187b4
mov qword [rbp], 7
mov qword [rbp - 8], r13
mov word [rbp - 0x18], r13w
cmp qword [rdi + 0x18], 8
jb 0x140011ad1
mov rcx, qword [rdi]
call fcn.1400187b4
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
jmp 0x140011a5a
mov rcx, r12
call fcn.140019df4
mov r14, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140011b5d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp], 8
jb 0x140011b28
mov rcx, qword [rbp - 0x18]
call fcn.1400187b4
mov qword [rbp], 7
mov qword [rbp - 8], r13
mov word [rbp - 0x18], r13w
cmp qword [rdi + 0x18], 8
jb 0x140011b48
mov rcx, qword [rdi]
call fcn.1400187b4
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
jmp 0x140011a5a
mov ecx, 0x60
call fcn.140018b7c
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140011c02
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], 7
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001b20
nop
mov qword [rbp - 0x68], 7
xor eax, eax
mov qword [rbp - 0x70], rax
mov word [rbp - 0x80], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140001b20
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.140011530
nop
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov r8, r12
mov rdx, r14
mov rcx, r13
call fcn.140011130
xor r12d, r12d
jmp 0x140011c08
xor r12d, r12d
mov eax, r12d
mov qword [rsp + 0x40], rax
lea rcx, [r15 + 0x38]
lea rdx, [rsp + 0x40]
call fcn.14000afb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp], 8
jb 0x140011c35
mov rcx, qword [rbp - 0x18]
call fcn.1400187b4
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov word [rbp - 0x18], r12w
cmp qword [rdi + 0x18], 8
jb 0x140011c55
mov rcx, qword [rdi]
call fcn.1400187b4
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
cmp qword [rbx + 0x18], 8
jb 0x140011c74
mov rcx, qword [rbx]
call fcn.1400187b4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
xor eax, eax
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400194d0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret