Function at 0x1400535d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, r8
mov r12, rdx
lea rdx, str.CheckRunEnvironment::GetTotalInstallDriverFileSizeForFileList
lea rcx, [rsp + 0x40]
call fcn.14001abe0
nop
lea rdi, [0x1402a8360]
lea rbp, [0x1402bbdb0]
mov rbx, qword [0x1402a8360]
cmp rbx, rdi
je 0x14005369f
test byte [rbx + 0x1c], 1
je 0x140053660
mov r9, rbp
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x2f
lea r8, [0x1402559c8]
mov rcx, qword [rbx + 0x10]
call fcn.140001ad0
mov rbx, qword [0x1402a8360]
cmp rbx, rdi
je 0x14005369f
test byte [rbx + 0x1c], 1
je 0x14005369f
mov r9, rbp
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x30
mov qword [rsp + 0x20], r12
lea r8, [0x1402559c8]
mov rcx, qword [rbx + 0x10]
call fcn.140006c90
mov rbx, qword [0x1402a8360]
xor r15d, r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x90]
call fcn.1401e7e40
movsxd r13, dword [r14 + 0x10]
test r13, r13
jle 0x14005399e
xor esi, esi
test rsi, rsi
js 0x140053a82
cmp rsi, qword [r14 + 0x10]
jge 0x140053a82
lfence
mov rax, qword [r14 + 8]
mov r9, qword [rax + rsi*8]
mov r8, r12
lea rdx, [0x1402528f8]
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1402a8360]
cmp rcx, rdi
je 0x140053743
test byte [rcx + 0x1c], 4
je 0x140053743
mov r9, rbp
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x31
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005390c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [0x1402a8360]
lea rax, [0x1402a8360]
cmp rbx, rax
je 0x1400537eb
test byte [rbx + 0x1c], 2
je 0x1400537eb
mov rbx, rbp
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x40]
call fcn.14001b0b0
mov edx, 0x32
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1402559c8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rbx, qword [0x1402a8360]
cmp edi, 2
jne 0x1400538af
cmp rsi, qword [r14 + 0x10]
jge 0x140053a82
lfence
mov rax, qword [r14 + 8]
mov r9, qword [rax + rsi*8]
mov r8, r12
lea rdx, str._sCOLOR_s
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1402a8360]
lea rbx, [0x1402a8360]
cmp rcx, rbx
je 0x14005386d
test byte [rcx + 0x1c], 4
je 0x14005386d
mov r9, rbp
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rdi + 0x31]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140053913
mov rbx, qword [0x1402a8360]
lea rdi, [0x1402a8360]
cmp rbx, rdi
je 0x140053992
test byte [rbx + 0x1c], 2
je 0x140053992
mov rbx, rbp
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x40]
call fcn.14001b0b0
mov edx, 0x35
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1402559c8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
jmp 0x14005398b
lea rbx, [0x1402a8360]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x140053978
mov rax, qword [0x1402a8360]
cmp rax, rbx
je 0x14005397b
test byte [rax + 0x1c], 2
je 0x14005397b
mov rbx, rbp
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x40]
call fcn.14001b0b0
mov edx, 0x34
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x1402559c8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
jmp 0x14005397b
add r15d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [0x1402a8360]
mov rbx, qword [0x1402a8360]
inc rsi
cmp rsi, r13
jl 0x1400536c6
mov al, 1
mov byte [rsp + 0x48], al
cmp rbx, rdi
je 0x1400539e7
test byte [rbx + 0x1c], al
je 0x1400539e7
mov r9, rbp
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x36
mov dword [rsp + 0x20], r15d
lea r8, [0x1402559c8]
mov rcx, qword [rbx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x48]
mov rbx, qword [0x1402a8360]
lea rcx, vtable.WppTrace.0
mov qword [rsp + 0x40], rcx
test al, al
jne 0x140053a40
cmp rbx, rdi
je 0x140053a40
test byte [rbx + 0x1c], 1
je 0x140053a40
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
cmp qword [0x1402bbdc8], 8
cmovae rbp, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rbp
lea r8, [0x140252818]
mov rcx, qword [rbx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x50]
call fcn.1400048a0
mov eax, r15d
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401bb848
nop
int3