Function at 0x140088a10
Capabilities:
Enumerate files on windows
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x720], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov rdi, r8
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetTotalInstallDriverFileSizeForHWIDList
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
mov r9, rbx
lea r8, str.lpDrvDir___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007780
xor r15d, r15d
mov esi, r15d
mov r14, qword [rdi + 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test r14d, r14d
jle 0x140088d9e
cmp qword [rdi + 0x10], rsi
jg 0x140088ab0
call fcn.140102ffc
int3
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.140006190
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov edx, 0x5c
mov rcx, rbx
call fcn.140249468
or r12d, 0xffffffff
test rax, rax
jne 0x140088ae4
mov eax, r12d
jmp 0x140088aea
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400475a0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140088b59
cmp dword [rbx + 0x10], 0
jl 0x140088b4a
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140088b4a
call fcn.140006190
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140088b3f
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x140088b59
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140005d50
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140088b79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x2d
lea r8d, [rdx + 0x32]
lea rcx, [rsp + 0x40]
call fcn.140064b10
mov edx, 0x20
lea r8d, [rdx + 0x3f]
lea rcx, [rsp + 0x40]
call fcn.140064b10
mov edx, gethostbyaddr
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140064b10
mov edx, 0x28
lea r8d, [rdx + 0x37]
lea rcx, [rsp + 0x40]
call fcn.140064b10
mov edx, 0x29
lea r8d, [rdx + 0x36]
lea rcx, [rsp + 0x40]
call fcn.140064b10
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x1c0]
lea r8, str._t_t_tSampling_Directory__s
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r8, [rbp + 0x1c0]
lea rdx, str._s.
lea rcx, [rbp + 0x3c8]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x3c8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140088d0b
lea r9, [rbp - 0x64]
lea r8, [rbp + 0x1c0]
lea rdx, [0x1402dd6b0]
lea rcx, [rbp + 0x3c8]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x3c8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140088cb4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140088cab
add esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140088c44
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9d, esi
lea r8, str._t_t_tSampling_Directory_Size___d
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov r9d, r14d
lea r8, str._t_t_tHardwareID_Folders___d
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
imul esi, r14d
jmp 0x140088d82
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x48]
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 0x140088d71
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tFindFirstFile__HardwarID_._
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x50]
call fcn.140007780
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140088d82
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x140088d9e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, esi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x720]
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret