Function at 0x42ac40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6446
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x280], eax
call fcn.0046d4f0
test eax, eax
je 0x42ad04
push esi
push str.CDIFxUninstall::MyDriverPackageGetPath_:_pszEnumFileName___s_n
push 0x65ad90
call fcn.00599ee3
mov ecx, dword [str.ENTRY:]
mov edx, dword [0x5ccf7c]
mov eax, 0x65ad90
mov dword [0x65ac90], ecx
add esp, 0xc
mov dword [0x65ac94], edx
mov ecx, eax
jmp 0x42acc0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42acc0
mov edi, 0x65ac90
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42acd1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x65ac90
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
xor edi, edi
mov dword [ebp - 0x270], edi
call fcn.004a8620
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42ad26
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], edi
call fcn.004a8620
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42ad55
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x25c], ebx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 1
call fcn.004a9ca8
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.DriverStoreFileRepository
lea ecx, [ebp - 0x260]
call fcn.00403380
mov esi, eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.00403380
push esi
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 4
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 5
call fcn.00402af0
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42adff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ae25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ae4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x255]
call fcn.0042d020
cmp eax, edi
jne 0x42af3e
push str.DRVSTORE
lea ecx, [ebp - 0x264]
call fcn.00403380
mov esi, eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.00403380
push esi
push eax
lea eax, [ebp - 0x260]
push eax
mov byte [ebp - 4], 7
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 8
call fcn.00402af0
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aefe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42af24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x255]
call fcn.0042d020
cmp eax, edi
je 0x42b348
push str..
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.004029d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 9
call fcn.00402af0
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42af8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x25c]
push edi
push ebx
lea ecx, [ebp - 0x2b0]
call fcn.004a9d4c
cmp eax, edi
je 0x42b331
lea ecx, [ebp - 0x2b0]
call fcn.004a98fd
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x26c], eax
call fcn.004a9c6d
test eax, eax
jne 0x42b324
mov edx, dword [ebp - 0x2b0]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x2b0]
call eax
test eax, eax
je 0x42b324
push 0x5cf6b4
lea ecx, [ebp - 0x294]
call fcn.00403380
mov esi, eax
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0xa
call fcn.004a9f43
push esi
push eax
lea edx, [ebp - 0x260]
push edx
mov byte [ebp - 4], 0xb
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0xc
call fcn.00402af0
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b05c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b0a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x25c]
lea ecx, [ebp - 0x254]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x42b324
jmp 0x42b0d0
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x288]
call fcn.00403380
mov esi, eax
push 0x5cd28c
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xd
call fcn.00403380
mov edi, eax
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0xe
call fcn.004a9f43
push edi
push eax
lea ecx, [ebp - 0x27c]
push ecx
mov byte [ebp - 4], 0xf
call fcn.00402910
push esi
push eax
lea edx, [ebp - 0x274]
push edx
mov byte [ebp - 4], 0x10
call fcn.00402910
add esp, 0x18
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
mov byte [ebp - 4], 0x11
cmp eax, esi
je 0x42b198
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x42b182
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42b182
push eax
call fcn.004022e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42b177
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x25c], ebx
jmp 0x42b198
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x25c]
call fcn.004026b0
mov ebx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b1be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b1e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b20a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x284]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b230
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b256
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x278]
push ebx
push ecx
lea ecx, [ebp - 0x255]
call fcn.0042d570
test eax, eax
jne 0x42b28e
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x254]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42b0d0
jmp 0x42b317
mov edx, dword [ebx - 0xc]
mov dword [ebp - 0x26c], 0
test edx, edx
js 0x42b33e
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edx
or eax, ecx
jge 0x42b2c6
push edx
lea ecx, [ebp - 0x25c]
call fcn.00402280
mov ebx, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x280]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x42b2d0
call fcn.0046d4f0
test eax, eax
je 0x42b30d
lea ecx, [ebp - 0x228]
push ecx
push str.FOUND_:_pszDriverStoreInfPath___s_n
push 0x65ab90
call fcn.00599ee3
add esp, 0xc
push 0x65ab90
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov dword [ebp - 0x270], 1
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x26c], 0
jne 0x42afaa
lea ecx, [ebp - 0x2b0]
call fcn.004a9817
jmp 0x42b362
push 0x80070057
call fcn.00401b60
call fcn.0046d4f0
test eax, eax
je 0x42b362
push str.FAILED_to_Find_Driver_Store_Folder_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x42b3e5
mov eax, dword [ebp - 0x270]
push eax
push str.CDIFxUninstall::MyDriverPackageGetPath_:_bRetVal___d_n
push 0x65aa90
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x65aa90
add esp, 0xc
mov dword [0x65a990], ecx
mov dword [0x65a994], edx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b3a3
mov edi, 0x65a990
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42b3b2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x65a990
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 1
call fcn.004a9cd7
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42b414
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b43d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8