Function at 0x1800548f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1801483c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r13, qword [rsp + 0xf0]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov r12, r9
mov dword [rsp + 0x28], 0x2200080
xor r9d, r9d
mov edx, 0x100080
mov dword [rsp + 0x20], 3
mov r8d, 7
mov r15, rcx
mov edi, ebx
call qword [0x180148138]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800549cb
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x180054970
cmp eax, 2
jne 0x1800549c1
test edi, edi
jle 0x1800549c1
mov ecx, 0xc8
cmp edi, ecx
cmovl ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200080
mov edx, 0x100080
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, r15
sub edi, 0xc8
call qword [0x180148138]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180054960
jmp 0x1800549cb
cmp rsi, 0xffffffffffffffff
je 0x180054b76
test rsi, rsi
je 0x180054b76
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1800549fd
mov rcx, rsi
call qword [0x180148118]
mov ebp, dword [rsp + 0x40]
mov ebx, 0xffffffff
jmp 0x180054b69
mov ecx, dword [rsp + 0x48]
call fcn.180053600
mov ebp, eax
mov r14d, eax
test r12, r12
je 0x180054a4d
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x180054a44
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180054a44
mov rcx, rsi
call qword [0x180148118]
mov ebx, 0xffffffff
jmp 0x180054b69
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov rcx, rsi
call qword [0x180148118]
test r14b, 0x10
je 0x180054b69
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x100080
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, r15
mov edi, ebx
call qword [0x180148138]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180054afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x180054aa7
cmp eax, 2
jne 0x180054af8
test edi, edi
jle 0x180054af8
mov ecx, 0xc8
cmp edi, ecx
cmovl ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x100080
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, r15
sub edi, 0xc8
call qword [0x180148138]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180054a97
jmp 0x180054afe
cmp rsi, 0xffffffffffffffff
je 0x180054b76
test rsi, rsi
je 0x180054b76
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x180054b1c
mov ebx, 0xffffffff
jmp 0x180054b5d
mov ecx, dword [rsp + 0x48]
call fcn.180053600
mov ebp, eax
test r12, r12
je 0x180054b5d
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x180054b54
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180054b54
mov ebx, 0xffffffff
jmp 0x180054b5d
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov rcx, rsi
call qword [0x180148118]
or ebp, 0x10
test r13, r13
je 0x180054b72
mov dword [r13], ebp
mov eax, ebx
jmp 0x180054b7b
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d5000
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret