Function at 0x14002a808
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x248]
sub rsp, 0x330
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c9118]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor esi, esi
lea r14, [rcx + 8]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x218]
mov rcx, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x88
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rax, vtable.OperatingSystemHandle.0
mov qword [rsp + 0x48], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002a8a1
lock inc dword [0x1400cd120]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x14002a95c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
cmp word [0x1400a54e0], si
jne 0x14002a8d0
mov rax, rsi
jmp 0x14002a8dc
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
lea rcx, [rbp - 0x60]
call fcn.1400045d0
nop
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], sil
lea rcx, str..._nsFileSystem.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsFileSystem.cpp
lea rcx, [rbp - 0x40]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023b78
mov edx, eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x15b
lea r8, [rbp - 0x40]
lea rcx, [rbp + 0xa0]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0xa0]
call fcn.14005b684
nop
lea rcx, [0x14008f7b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov qword [rsp + 0x68], rax
lea rax, vtable.LibraryHandle.0
mov qword [rsp + 0x60], rax
test rdi, rdi
je 0x14002a98e
lock inc dword [0x1400cd140]
mov rbx, qword [rsp + 0x50]
test rdi, rdi
jne 0x14002aa49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x20], si
cmp word [0x1400a54e0], si
jne 0x14002a9bd
mov rax, rsi
jmp 0x14002a9c9
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
lea rcx, [rbp - 0x20]
call fcn.1400045d0
nop
mov qword [rbp + 0x18], 0xf
mov qword [rbp + 0x10], rsi
mov byte [rbp], sil
lea rcx, str..._nsFileSystem.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsFileSystem.cpp
lea rcx, [rbp]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023b78
mov edx, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x162
lea r8, [rbp]
lea rcx, [rbp + 0x100]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0x100]
call fcn.14005b684
nop
lea rdx, str.GetFileSizeEx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rsi
mov rcx, rbx
test rax, rax
je 0x14002ab46
lea rdx, [rsp + 0x40]
call rax
test eax, eax
jne 0x14002ab31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x70]
call fcn.140009b88
nop
mov ecx, edi
call fcn.140023b78
mov ebx, eax
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x1f0]
mov r8, rax
mov r9d, ebx
lea rdx, str.GetFileSizeEx__s__raised_Exception_0x_x_
lea rcx, [rsp + 0x70]
call fcn.14000cf40
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], sil
lea rcx, str..._nsFileSystem.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsFileSystem.cpp
lea rcx, [rbp + 0x20]
call fcn.140004720
nop
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.14000adcc
mov rbx, rax
mov ecx, edi
call fcn.140023b78
mov edx, eax
mov qword [rsp + 0x20], rbx
mov r9d, 0x16f
lea r8, [rbp + 0x20]
lea rcx, [rbp + 0x160]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0x160]
call fcn.14005b684
nop
cmp qword [rsp + 0x40], rsi
jl 0x14002ac2b
mov rsi, qword [rsp + 0x40]
jmp 0x14002ac2b
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x44], esi
jne 0x14002ac20
cmp eax, 0xffffffff
jne 0x14002ac20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rbp - 0x78]
call fcn.140009b88
nop
mov ecx, edi
call fcn.140023b78
mov ebx, eax
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x1f0]
mov r8, rax
mov r9d, ebx
lea rdx, str.GetFileSize__s__raised_Exception_0x_x_
lea rcx, [rbp - 0x78]
call fcn.14000cf40
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], rsi
mov byte [rbp + 0x40], sil
lea rcx, str..._nsFileSystem.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsFileSystem.cpp
lea rcx, [rbp + 0x40]
call fcn.140004720
nop
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x78]
call fcn.14000adcc
mov rbx, rax
mov ecx, edi
call fcn.140023b78
mov edx, eax
mov qword [rsp + 0x20], rbx
mov r9d, 0x17f
lea r8, [rbp + 0x40]
lea rcx, [rbp + 0x1c0]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0x1c0]
call fcn.14005b684
nop
cmp qword [rsp + 0x40], rsi
cmovge rsi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lock dec dword [0x1400cd140]
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14002ac53
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lock dec dword [0x1400cd120]
mov rax, rsi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140058200
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret