Function at 0x1800363ec
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801933d0]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003679c
mov eax, dword [rdi + 0x34]
cmp qword [rsp + 0x40], rax
jle 0x18003679c
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r12, 0xffffffffffffffff
mov qword [rdi + 8], r12
mov eax, dword [rdi + 0x38]
shl eax, 0x1f
not eax
and eax, 0x88000080
or eax, 0x8000080
lea rsi, [rdi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x18003648c
mov rcx, qword [rsi]
jmp 0x18003648f
mov rcx, rsi
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, r12
je 0x18003679c
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003679c
mov eax, dword [rdi + 0x34]
cmp qword [rsp + 0x40], rax
jle 0x18003679c
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r12
lea r8, [0x1800c6d40]
mov rdx, rsi
lea rcx, [rbp + 0x18]
call fcn.180037044
nop
lea rdx, [rdi + 0x30]
lea rcx, [rbp + 0x58]
call fcn.180035f70
nop
mov r8, rax
mov rdx, rsi
lea rcx, [rbp + 0x38]
call fcn.1800361a0
nop
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
mov r9, r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.180054040
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x38]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x58]
call fcn.1800542f4
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.1800c8370
mov ebx, dword [rdi + 0x30]
jmp 0x1800366a4
lea rcx, [rbp + 0x98]
call fcn.180035f70
nop
mov r8, rax
mov rdx, rsi
lea rcx, [rbp + 0x78]
call fcn.1800361a0
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov r9, r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180054040
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x78]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x98]
call fcn.1800542f4
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1800c8600
cmp dword [rax], r14d
je 0x1800365fe
cmp dword [rax], 1
mov al, 1
jne 0x180036601
mov al, r14b
test al, al
je 0x180036695
lea eax, [rbx + 1]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 8]
call fcn.180035f70
nop
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.1800361a0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r14
mov word [rsp + 0x78], r14w
mov r9, r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180054040
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x28]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 8]
call fcn.1800542f4
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.1800c8520
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.1800542f4
dec ebx
cmp ebx, 1
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x40]
jae 0x18003657b
mov dword [rsp + 0x40], 1
lea rcx, [rbp - 0x28]
call fcn.18003637c
nop
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.1800361a0
nop
mov ebx, 7
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
mov r9, r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.180054040
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 8]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x28]
call fcn.1800542f4
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.1800c8520
mov eax, dword [rdi + 0x38]
shl eax, 0x1f
not eax
and eax, 0x88000080
or eax, 0x8000080
cmp qword [rsi + 0x18], 8
jb 0x180036748
mov rsi, qword [rsi]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, ebx
lea edx, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x48]
call fcn.1800542f4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x18]
call fcn.1800542f4
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.18009f760
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret