Function at 0x1400ebd20
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
lea r13, [0x14000d538]
mov r15b, 4
cmp rcx, rsi
je 0x1400ebd89
test byte [rcx + 0x1c], r15b
je 0x1400ebd89
cmp byte [rcx + 0x19], r15b
jb 0x1400ebd89
mov rcx, qword [rcx + 0x10]
mov edx, 0x64
mov r8, r13
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
xor r12d, r12d
cmp byte [rbx + 0x48], r12b
jne 0x1400ebdcc
mov rax, qword [rsp + 0x90]
mov dword [rax], 0x57
cmp rcx, rsi
je 0x1400ebdc2
test byte [rcx + 0x1c], r15b
je 0x1400ebdc2
cmp byte [rcx + 0x19], 2
jb 0x1400ebdc2
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x65]
mov r8, r13
call fcn.14001dd24
mov eax, 2
jmp 0x1400ec14a
cmp qword [rbx], r12
je 0x1400ebde9
lea r8, [0x14000d188]
lea rcx, [0x14000d138]
mov edx, 0x7bb
call fcn.1400a8be8
mov r9, qword [rbx + 8]
mov qword [rbx + 0x38], r12
test r9, r9
je 0x1400ebe2d
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x1400ebe1f
test byte [rcx + 0x1c], r15b
je 0x1400ebe1f
cmp byte [rcx + 0x19], r15b
jb 0x1400ebe1f
mov rcx, qword [rcx + 0x10]
mov edx, DeleteCriticalSection
mov r8, r13
call fcn.14001ec40
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r12
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdi + rsi*2], r12w
jne 0x1400ebe31
inc rsi
xor ecx, ecx
lea rdx, [rsi + rsi]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400ebe5d
mov eax, 8
jmp 0x1400ec14a
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140052508
test eax, eax
jns 0x1400ebe86
movzx ecx, ax
mov rax, qword [rsp + 0x90]
mov dword [rax], ecx
mov rcx, rbx
call fcn.1400e9df8
jmp 0x1400ebe53
cmp byte [rbx + 0x49], r12b
je 0x1400ebff7
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1400ebec3
test byte [rcx + 0x1c], r15b
je 0x1400ebec3
cmp byte [rcx + 0x19], r15b
jb 0x1400ebec3
mov rcx, qword [rcx + 0x10]
mov edx, DeleteCriticalSection
mov r9, rdi
mov r8, r13
call fcn.14001ec40
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rdi
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ebf4a
mov qword [rbx], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x1400ebe53
test byte [rcx + 0x1c], r15b
je 0x1400ebe53
cmp byte [rcx + 0x19], 2
jb 0x1400ebe53
mov edx, DeleteCriticalSection
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x1400ebe53
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400ebf97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x1400ebe53
test byte [rcx + 0x1c], r15b
je 0x1400ebe53
cmp byte [rcx + 0x19], 2
jb 0x1400ebe53
mov edx, DeleteCriticalSection
jmp 0x1400ebf32
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x18], rax
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x1400ebfd8
test byte [rcx + 0x1c], r15b
je 0x1400ebfd8
cmp byte [rcx + 0x19], r15b
jb 0x1400ebfd8
mov rcx, qword [rcx + 0x10]
mov edx, reloc.KERNEL32.dll_DeleteCriticalSection
mov r9, rdi
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140028b0c
mov rcx, qword [0x14017d3a8]
cmp byte [rbx + 0x48], r12b
je 0x1400ec120
mov rcx, rbx
call fcn.1400f2790
mov rcx, rbx
call fcn.1400f287c
jmp 0x1400ec119
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ec07d
mov qword [rbx], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1400ec073
test byte [rcx + 0x1c], r15b
je 0x1400ec073
cmp byte [rcx + 0x19], 2
jb 0x1400ec073
mov rcx, qword [rcx + 0x10]
mov edx, 0x6b
mov r9, rdi
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov eax, 7
jmp 0x1400ec14a
mov r9d, dword [rbx + 0x90]
test rbp, rbp
movabs rcx, 0x7fffffffffffffff
mov rax, rbp
mov qword [rbx + 0x160], r12
cmove rax, rcx
sub r9d, dword [rbx + 0xa8]
inc r9d
mov qword [rbx + 0x18], rax
mov al, byte [rbx + 0x30]
imul r9, r9, 0x200200
neg al
sbb rcx, rcx
and rcx, 0xffffffffffdffe00
add rcx, 0x200400
add r9, rcx
cmp r9, rbp
cmovg r9, rbp
mov qword [rbx + 0x158], r9
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1400ec120
test byte [rcx + 0x1c], r15b
je 0x1400ec120
cmp byte [rcx + 0x19], r15b
jb 0x1400ec120
mov rax, qword [rbx + 0x18]
mov rcx, qword [rcx + 0x10]
mov edx, EnterCriticalSection
mov qword [rsp + 0x28], rax
mov r8, r13
mov qword [rsp + 0x20], r9
call fcn.1400e9c74
mov rcx, qword [0x14017d3a8]
mov rax, qword [rbx]
mov qword [r14], rax
cmp rcx, rsi
je 0x1400ec148
test byte [rcx + 0x1c], r15b
je 0x1400ec148
cmp byte [rcx + 0x19], r15b
jb 0x1400ec148
mov rcx, qword [rcx + 0x10]
mov edx, EnterCriticalSection
mov r8, r13
call fcn.14001dd24
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret