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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov rbx, r8
mov rdi, rdx
lea rdx, str.CheckRunEnvironment::GetTotalInstallDriverFileSizeForHWIDList
lea rcx, [rsp + 0x50]
call fcn.14001abe0
nop
lea r12, [0x1402a8360]
lea r15, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x140053b5f
test byte [rcx + 0x1c], 1
je 0x140053b27
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x37
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x140053b5f
test byte [rcx + 0x1c], 1
je 0x140053b5f
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x38
mov qword [rsp + 0x20], rdi
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor esi, esi
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x60]
call fcn.1401e7e40
mov r13d, dword [rbx + 0x10]
mov rdx, rdi
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test r13d, r13d
jle 0x140053f30
cmp qword [rbx + 0x10], rsi
jle 0x140054017
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.140004d00
mov rdi, rax
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea edx, [rsi + 0x5c]
mov rcx, rbx
call fcn.1401e768c
lea r14d, [rsi - 1]
test rax, rax
jne 0x140053be2
mov eax, r14d
jmp 0x140053be8
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
mov r9d, dword [rdi + 8]
sub r9d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14002eaa0
nop
mov rbx, qword [rsp + 0x48]
lea rcx, [rbx - 0x18]
cmp rcx, rdi
je 0x140053c6c
cmp dword [rdi + 0x10], 0
jl 0x140053c5a
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140053c5a
call fcn.140004d00
mov rbx, rax
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x140053c4a
lfence
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x48]
jmp 0x140053c6c
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004e60
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140053c90
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov edx, 0x2d
lea r8d, [rdx + 0x32]
lea rcx, [rsp + 0x40]
call fcn.140058dc0
mov edx, 0x20
lea r8d, [rdx + 0x3f]
lea rcx, [rsp + 0x40]
call fcn.140058dc0
mov edx, 0x2f
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140058dc0
mov edx, 0x28
lea r8d, [rdx + 0x37]
lea rcx, [rsp + 0x40]
call fcn.140058dc0
mov edx, 0x29
lea r8d, [rdx + 0x36]
lea rcx, [rsp + 0x40]
call fcn.140058dc0
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402a8360]
cmp rcx, r12
je 0x140053d4a
test byte [rcx + 0x1c], 4
je 0x140053d4a
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x39
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea r8, [rbp + 0x1f0]
lea rdx, [0x1402556e8]
lea rcx, [rbp + 0x3f8]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140053eb2
lea r9, [rbp - 0x34]
lea r8, [rbp + 0x1f0]
lea rdx, [0x140252608]
lea rcx, [rbp + 0x3f8]
call qword [sym.imp.USER32.dll_wsprintfW]
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, [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140053df7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140053dee
add esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140053d83
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [0x1402a8360]
lea r12, [0x1402a8360]
cmp rax, r12
je 0x140053eac
test byte [rax + 0x1c], 4
je 0x140053e65
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x3a
mov dword [rsp + 0x20], esi
lea r8, [0x1402559c8]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x140053eac
test byte [rax + 0x1c], 4
je 0x140053eac
lfence
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x3b
mov dword [rsp + 0x20], r13d
lea r8, [0x1402559c8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov rbx, qword [rsp + 0x40]
imul esi, r13d
jmp 0x140053f0d
mov rax, qword [0x1402a8360]
lea r12, [0x1402a8360]
cmp rax, r12
je 0x140053f0d
test byte [rax + 0x1c], 2
je 0x140053f0d
mov rdi, r15
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
lea rcx, [rsp + 0x50]
call fcn.14001b0b0
mov edx, 0x3c
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x1402559c8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140053f30
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov cl, 1
mov byte [rsp + 0x58], cl
mov rax, qword [0x1402a8360]
cmp rax, r12
je 0x140053f7f
test byte [rax + 0x1c], cl
je 0x140053f7f
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x3d
mov dword [rsp + 0x20], esi
lea r8, [0x1402559c8]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
movzx ecx, byte [rsp + 0x58]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x50], rdx
test cl, cl
jne 0x140053fd8
cmp rax, r12
je 0x140053fd8
test byte [rax + 0x1c], 1
je 0x140053fd8
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
cmp qword [0x1402bbdc8], 8
cmovae r15, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, r15
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x80]
call fcn.1400048a0
lea rcx, [rsp + 0x60]
call fcn.1400048a0
mov eax, esi
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x750]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401bb848
nop
int3