Function at 0x14002a944
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 [0x1400ca118]
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 0x14002a9dd
lock inc dword [0x1400ce120]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x14002aa98
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 [0x1400a6650], si
jne 0x14002aa0c
mov rax, rsi
jmp 0x14002aa18
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
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.1400657f0
mov r8, rax
lea rdx, str..._nsFileSystem.cpp
lea rcx, [rbp - 0x40]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023e14
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.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0xa0]
call fcn.14005ba94
nop
lea rcx, [0x1400907b0]
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 0x14002aaca
lock inc dword [0x1400ce140]
mov rbx, qword [rsp + 0x50]
test rdi, rdi
jne 0x14002ab85
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 [0x1400a6650], si
jne 0x14002aaf9
mov rax, rsi
jmp 0x14002ab05
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
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.1400657f0
mov r8, rax
lea rdx, str..._nsFileSystem.cpp
lea rcx, [rbp]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023e14
mov edx, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x162
lea r8, [rbp]
lea rcx, [rbp + 0x100]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0x100]
call fcn.14005ba94
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 0x14002ac82
lea rdx, [rsp + 0x40]
call rax
test eax, eax
jne 0x14002ac6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x70]
call fcn.140009b88
nop
mov ecx, edi
call fcn.140023e14
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.14000cf48
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], sil
lea rcx, str..._nsFileSystem.cpp
call fcn.1400657f0
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.14000ade8
mov rbx, rax
mov ecx, edi
call fcn.140023e14
mov edx, eax
mov qword [rsp + 0x20], rbx
mov r9d, 0x16f
lea r8, [rbp + 0x20]
lea rcx, [rbp + 0x160]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0x160]
call fcn.14005ba94
nop
cmp qword [rsp + 0x40], rsi
jl 0x14002ad67
mov rsi, qword [rsp + 0x40]
jmp 0x14002ad67
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x44], esi
jne 0x14002ad5c
cmp eax, 0xffffffff
jne 0x14002ad5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rbp - 0x78]
call fcn.140009b88
nop
mov ecx, edi
call fcn.140023e14
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.14000cf48
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], rsi
mov byte [rbp + 0x40], sil
lea rcx, str..._nsFileSystem.cpp
call fcn.1400657f0
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.14000ade8
mov rbx, rax
mov ecx, edi
call fcn.140023e14
mov edx, eax
mov qword [rsp + 0x20], rbx
mov r9d, 0x17f
lea r8, [rbp + 0x40]
lea rcx, [rbp + 0x1c0]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0x1c0]
call fcn.14005ba94
nop
cmp qword [rsp + 0x40], rsi
cmovge rsi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lock dec dword [0x1400ce140]
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14002ad8f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lock dec dword [0x1400ce120]
mov rax, rsi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140058630
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret