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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x38]
call fcn.14006d290
nop
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14006fad0
test al, al
jne 0x140040f01
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x1400411d9
test rax, rax
je 0x1400411d1
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129620]
jmp 0x14004117c
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400413f0
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400413f0
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140040f3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400413f0
mov ebp, dword [rsp + 0x48]
shl rbp, 0x20
add rbp, r14
je 0x1400413f0
mov rcx, qword [rsi + 0x88]
mov rax, qword [rcx]
call qword [rax]
mov r15d, eax
mov edx, eax
mov rcx, rsi
call fcn.14003aec0
test al, al
jne 0x140041058
mov ecx, 0x800
call fcn.1400bbc88
mov r14, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test r14, r14
je 0x1400411d9
test rax, rax
je 0x140041050
xor edx, edx
mov r8d, 0x800
mov rcx, r14
call fcn.1400c2130
lea rax, [0x140129d68]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCCiCacheLoader::LoadCiCacheData
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, r14
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call fcn.1400c2130
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14003b000
nop
cmp qword [rax + 0x18], 8
jb 0x140040ffa
mov rax, qword [rax]
cmp qword [rdi + 0x18], 8
jb 0x140041004
mov rdi, qword [rdi]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, r14
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
nop
cmp qword [rsp + 0x68], 8
jb 0x140041033
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], ax
mov rcx, rbx
call fcn.140015100
mov rcx, r14
jmp 0x1400411d4
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov rbp, rax
test rax, rax
je 0x1400413f0
mov rcx, r15
call fcn.1400bbc88
mov r14, rax
test rax, rax
jne 0x1400410cd
mov rcx, rsi
call fcn.14003af70
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x1400411d9
test rax, rax
je 0x1400411d1
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129d48]
jmp 0x14004117c
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.1400c2130
xor eax, eax
mov dword [rsp + 0x30], eax
cmp qword [rbx], 0xffffffffffffffff
jne 0x1400410eb
xor r13b, r13b
jmp 0x14004110e
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, r15d
mov rdx, r14
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne r13b
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140041128
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140041128
mov qword [rbx], 0xffffffffffffffff
test r13b, r13b
jne 0x1400411ef
mov rcx, rsi
call fcn.14003af70
mov rcx, r14
call fcn.1400bd2dc
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x1400411d9
test rax, rax
je 0x1400411d1
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129748]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCCiCacheLoader::LoadCiCacheData
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rsi
call fcn.140007140
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call fcn.1400c2130
cmp qword [rdi + 0x18], 8
jb 0x1400411b6
mov rdi, qword [rdi]
mov r9, rdi
mov r8, rsi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140015100
mov rcx, rsi
call fcn.1400bd2dc
test rbx, rbx
je 0x1400413f0
mov rcx, rbx
call fcn.1400bd2dc
jmp 0x1400413f0
cmp dword [rsp + 0x30], 0
jne 0x140041246
mov rcx, rsi
call fcn.14003af70
mov rcx, r14
call fcn.1400bd2dc
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x1400411d9
test rax, rax
je 0x1400411d1
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129730]
jmp 0x14004117c
xor bl, bl
mov ecx, dword [r14]
sub ecx, 0x20000919
je 0x140041326
sub ecx, 7
je 0x1400412c6
dec ecx
jne 0x1400413e6
cmp dword [rsp + 0x30], r15d
je 0x1400412b3
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
test rsi, rsi
je 0x1400413cc
test rax, rax
je 0x1400413c4
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x14012b520]
jmp 0x14004137c
mov r8, r15
mov rdx, r14
mov rcx, rbp
call fcn.1400bcb10
jmp 0x1400413e4
mov rcx, qword [rsi + 0x88]
mov rax, qword [rcx]
mov r8, rbp
mov rdx, r14
call qword [rax + 0x28]
test al, al
jne 0x1400413db
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
test rsi, rsi
je 0x1400413cc
test rax, rax
je 0x1400413c4
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x14012b540]
jmp 0x14004137c
mov rcx, qword [rsi + 0x88]
mov rax, qword [rcx]
mov r8, rbp
mov rdx, r14
call qword [rax + 0x20]
test al, al
jne 0x1400413db
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
test rsi, rsi
je 0x1400413cc
test rax, rax
je 0x1400413c4
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x14012b498]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCCiCacheLoader::LoadCiCacheData
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rsi
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
mov r8, rsi
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
mov rcx, rdi
call fcn.140015100
mov rcx, rsi
call fcn.1400bd2dc
test rdi, rdi
je 0x1400413e6
mov rcx, rdi
call fcn.1400bd2dc
jmp 0x1400413e6
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov bl, 1
mov rcx, r14
call fcn.1400bd2dc
jmp 0x1400413f2
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.14006fa80
movzx eax, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400bcae0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret