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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x482e76
push eax
mov dword fs:[0], esp
sub esp, 0x698
push ebx
push ebp
push esi
push edi
call fcn.00441cf0
mov ebp, dword [esp + 0x6b8]
test eax, eax
je 0x417c95
push ebp
lea eax, [esp + 0x1a8]
push str.CDIFxUninstall::MyDriverPackageGetPath_:_pszEnumFileName___s_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4a8]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x4a8]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov eax, dword [0x4a6844]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6b0], 0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x6b0], 1
call fcn.00464eb7
lea ecx, [esp + 0x3a4]
push 0x104
push ecx
mov byte [esp + 0x6b8], 2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.DriverStoreFileRepository
lea ecx, [esp + 0x1c]
call fcn.00475f16
mov esi, eax
lea edx, [esp + 0x3a4]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x6b4], 3
call fcn.00475f16
push esi
push eax
lea eax, [esp + 0x1c]
mov bl, 4
push eax
mov byte [esp + 0x6bc], bl
call fcn.0047608b
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b4], 5
call fcn.00475f95
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b0], bl
call fcn.00475ea8
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b0], 3
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00475ea8
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00418770
test eax, eax
jne 0x417e11
push str.DRVSTORE
lea ecx, [esp + 0x1c]
call fcn.00475f16
mov esi, eax
lea edx, [esp + 0x3a4]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x6b4], 6
call fcn.00475f16
push esi
push eax
lea eax, [esp + 0x1c]
mov bl, 7
push eax
mov byte [esp + 0x6bc], bl
call fcn.0047608b
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b4], 8
call fcn.00475f95
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b0], bl
call fcn.00475ea8
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b0], 6
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00475ea8
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00418770
test eax, eax
je 0x4181b6
lea edx, [esp + 0x1c]
push str..
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004760f1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 9
call fcn.00475f95
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b0], 2
call fcn.00475ea8
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x50]
call fcn.00464f7a
test eax, eax
je 0x4181ab
mov ebx, 0x10
lea ecx, [esp + 0x48]
call fcn.0046519a
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], eax
call fcn.00465161
test eax, eax
jne 0x41819f
mov edx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x4c]
call dword [edx + 0x38]
test eax, eax
je 0x41819f
push 0x49df38
lea ecx, [esp + 0x48]
call fcn.00475f16
mov esi, eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x48]
push eax
mov byte [esp + 0x6b4], 0xa
call fcn.00465269
push esi
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x6bc], 0xb
call fcn.0047608b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 0xc
call fcn.00475f95
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6b0], 0xb
call fcn.00475ea8
lea ecx, [esp + 0x40]
mov byte [esp + 0x6b0], 0xa
call fcn.00475ea8
lea ecx, [esp + 0x44]
mov byte [esp + 0x6b0], 2
call fcn.00475ea8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x41819f
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00475f16
mov esi, eax
push 0x49b19c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6b4], 0xd
call fcn.00475f16
mov edi, eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x48]
push edx
mov byte [esp + 0x6b4], 0xe
call fcn.00465269
push edi
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x6b8], 0xf
push eax
call fcn.0047608b
push esi
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x6bc], bl
call fcn.0047608b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 0x11
call fcn.00475f95
lea ecx, [esp + 0x24]
mov byte [esp + 0x6b0], bl
call fcn.00475ea8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6b0], 0xf
call fcn.00475ea8
lea ecx, [esp + 0x30]
mov byte [esp + 0x6b0], 0xe
call fcn.00475ea8
lea ecx, [esp + 0x38]
mov byte [esp + 0x6b0], 0xd
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00475ea8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push edx
push ebp
call fcn.00419650
test eax, eax
jne 0x418115
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x418194
lea edx, [esp + 0x90]
lea ecx, [esp + 0x18]
push edx
call fcn.00475f16
mov esi, eax
push 0x49b19c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6b4], 0xd
call fcn.00475f16
mov edi, eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x48]
push eax
mov byte [esp + 0x6b4], 0xe
call fcn.00465269
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x6bc], 0xf
call fcn.0047608b
push esi
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x6bc], bl
call fcn.0047608b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 0x11
call fcn.00475f95
lea ecx, [esp + 0x24]
mov byte [esp + 0x6b0], bl
call fcn.00475ea8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6b0], 0xf
call fcn.00475ea8
lea ecx, [esp + 0x30]
mov byte [esp + 0x6b0], 0xe
call fcn.00475ea8
lea ecx, [esp + 0x38]
mov byte [esp + 0x6b0], 0xd
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00475ea8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ebp
call fcn.00419650
test eax, eax
je 0x418018
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
push eax
call fcn.0047628c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x6bc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441cf0
test eax, eax
je 0x41818c
lea eax, [esp + 0x90]
lea ecx, [esp + 0x1a4]
push eax
push str.FOUND_:_pszDriverStoreInfPath___s_n
push ecx
call fcn.00465850
add esp, 0xc
lea edx, [esp + 0x1a4]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x417e65
lea ecx, [esp + 0x48]
call fcn.00464f30
jmp 0x4181d0
call fcn.00441cf0
test eax, eax
je 0x4181d0
push str.FAILED_to_Find_Driver_Store_Folder_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441cf0
test eax, eax
je 0x418273
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x5a8]
push ecx
push str.CDIFxUninstall::MyDriverPackageGetPath_:_bRetVal___d_n
push edx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2a4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5a8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2a4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0x48]
mov byte [esp + 0x6b0], 1
call fcn.00464ef4
lea ecx, [esp + 0x10]
mov byte [esp + 0x6b0], 0
call fcn.00475ea8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6b0], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x6a8]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6a4
ret 8