Function at 0x140088680
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, r8
mov r15, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetTotalInstallDriverFileSizeForFileList
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
mov r9, r15
lea r8, str.lpDrvDir___s
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140007780
xor edi, edi
mov r13d, edi
mov ebx, edi
movsxd r14, dword [r12 + 0x10]
test r14, r14
jle 0x1400889bf
test rbx, rbx
js 0x1400889b9
cmp rbx, qword [r12 + 0x10]
jge 0x1400889b9
mov r9, qword [r12 + 8]
mov r9, qword [r9 + rbx*8]
mov r8, r15
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x60]
lea r8, str._t_t_tCheck_File_0___s
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008890f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400887fa
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tCreateFile_0_
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14008880a
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 2
jne 0x14008888d
cmp rbx, qword [r12 + 0x10]
jge 0x1400889b3
mov r9, qword [r12 + 8]
mov r9, qword [r9 + rbx*8]
mov r8, r15
lea rdx, str._sCOLOR_s
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x60]
lea r8, str._t_t_tCheck_File_1___s
lea edx, [rsi + 5]
lea rcx, [rsp + 0x48]
call fcn.140007780
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008890f
jmp 0x14008888f
xor edi, edi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400888f6
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tCreateFile_1_
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400889a4
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400889a4
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x140088998
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140088986
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tGetFileSize
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14008899b
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008899b
add r13d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp rbx, r14
jge 0x1400889bf
xor edi, edi
jmp 0x140088706
call fcn.140102ffc
int3
call fcn.140102ffc
int3
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
mov eax, r13d
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret