Function at 0x1400d4738
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 [0x140183048]
lea rsi, [0x140183048]
lea r13, [0x140164ed0]
mov r15b, 4
cmp rcx, rsi
je 0x1400d47a1
test byte [rcx + 0x1c], r15b
je 0x1400d47a1
cmp byte [rcx + 0x19], r15b
jb 0x1400d47a1
mov rcx, qword [rcx + 0x10]
mov edx, 0x64
mov r8, r13
call fcn.140004e50
mov rcx, qword [0x140183048]
xor r12d, r12d
cmp byte [rbx + 0x48], r12b
jne 0x1400d47e4
mov rax, qword [rsp + 0x90]
mov dword [rax], 0x57
cmp rcx, rsi
je 0x1400d47da
test byte [rcx + 0x1c], r15b
je 0x1400d47da
cmp byte [rcx + 0x19], 2
jb 0x1400d47da
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x65]
mov r8, r13
call fcn.140004e50
mov eax, 2
jmp 0x1400d48a6
cmp qword [rbx], r12
je 0x1400d4801
lea r8, str._handle__NULL
mov edx, 0x7bb
lea rcx, str.base_stor_blb_blbimg_backfile.cxx
call fcn.14008f4c8
mov r9, qword [rbx + 8]
mov qword [rbx + 0x38], r12
test r9, r9
je 0x1400d484e
mov rax, qword [0x140183048]
mov rcx, r9
cmp rax, rsi
je 0x1400d483e
test byte [rax + 0x1c], r15b
je 0x1400d483e
cmp byte [rax + 0x19], r15b
jb 0x1400d483e
mov rcx, qword [rax + 0x10]
mov edx, 0x66
mov r8, r13
call fcn.140005f10
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov qword [rbx + 8], r12
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdi + rsi*2], r12w
jne 0x1400d4852
inc rsi
xor ecx, ecx
lea rdx, [rsi + rsi]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400d48a1
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14003bf98
test eax, eax
jns 0x1400d48c5
movzx ecx, ax
mov rax, qword [rsp + 0x90]
mov dword [rax], ecx
mov rcx, rbx
call fcn.1400d26bc
mov eax, 8
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
cmp byte [rbx + 0x49], r12b
je 0x1400d4a4e
mov rcx, qword [0x140183048]
lea rsi, [0x140183048]
cmp rcx, rsi
je 0x1400d4902
test byte [rcx + 0x1c], r15b
je 0x1400d4902
cmp byte [rcx + 0x19], r15b
jb 0x1400d4902
mov rcx, qword [rcx + 0x10]
mov edx, 0x67
mov r9, rdi
mov r8, r13
call fcn.140005f10
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x60000080
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d4995
mov qword [rbx], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x1400d48a1
test byte [rcx + 0x1c], r15b
je 0x1400d48a1
cmp byte [rcx + 0x19], 2
jb 0x1400d48a1
mov edx, 0x68
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.140005f80
jmp 0x1400d48a1
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400d49ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x1400d48a1
test byte [rcx + 0x1c], r15b
je 0x1400d48a1
cmp byte [rcx + 0x19], 2
jb 0x1400d48a1
mov edx, 0x69
jmp 0x1400d497d
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x18], rax
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x1400d4a2f
test byte [rcx + 0x1c], r15b
je 0x1400d4a2f
cmp byte [rcx + 0x19], r15b
jb 0x1400d4a2f
mov rcx, qword [rcx + 0x10]
mov edx, 0x6a
mov r9, rdi
mov qword [rsp + 0x20], rax
mov r8, r13
call fcn.140010ac0
mov rcx, qword [0x140183048]
cmp byte [rbx + 0x48], r12b
je 0x1400d4b7e
mov rcx, rbx
call fcn.1400db6ec
mov rcx, rbx
call fcn.1400db7ec
jmp 0x1400d4b77
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x60000080
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d4ae0
mov qword [rbx], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
mov rcx, qword [0x140183048]
lea rsi, [0x140183048]
cmp rcx, rsi
je 0x1400d4ad6
test byte [rcx + 0x1c], r15b
je 0x1400d4ad6
cmp byte [rcx + 0x19], 2
jb 0x1400d4ad6
mov rcx, qword [rcx + 0x10]
mov edx, 0x6b
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8, r13
call fcn.140005f80
mov eax, 7
jmp 0x1400d48a6
mov qword [rbx + 0x18], rbp
mov r8, rbp
test rbp, rbp
jne 0x1400d4afa
movabs r8, 0x7fffffffffffffff
mov qword [rbx + 0x18], r8
mov eax, dword [rbx + 0x90]
sub eax, dword [rbx + 0xa8]
inc eax
mov qword [rbx + 0x160], r12
imul r9, rax, 0x200200
mov al, byte [rbx + 0x30]
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 [0x140183048]
lea rsi, [0x140183048]
cmp rcx, rsi
je 0x1400d4b7e
test byte [rcx + 0x1c], r15b
je 0x1400d4b7e
cmp byte [rcx + 0x19], r15b
jb 0x1400d4b7e
mov rcx, qword [rcx + 0x10]
mov edx, 0x6c
mov qword [rsp + 0x28], r8
mov r8, r13
mov qword [rsp + 0x20], r9
call fcn.1400d2580
mov rcx, qword [0x140183048]
mov rax, qword [rbx]
mov qword [r14], rax
cmp rcx, rsi
je 0x1400d4ba6
test byte [rcx + 0x1c], r15b
je 0x1400d4ba6
cmp byte [rcx + 0x19], r15b
jb 0x1400d4ba6
mov rcx, qword [rcx + 0x10]
mov edx, 0x6d
mov r8, r13
call fcn.140004e50
xor eax, eax
jmp 0x1400d48a6