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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48f436
push eax
mov dword fs:[0], esp
sub esp, 0x698
push ebx
push ebp
push esi
push edi
call fcn.0044bde0
mov ebp, dword [esp + 0x6b8]
test eax, eax
je 0x419be5
push ebp
lea eax, [esp + 0x1a8]
push str.CDIFxUninstall::MyDriverPackageGetPath_:_pszEnumFileName___s_n
push eax
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x4a8]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
mov eax, dword [0x4b538c]
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.00471297
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.004822f6
mov esi, eax
lea edx, [esp + 0x3a4]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x6b4], 3
call fcn.004822f6
push esi
push eax
lea eax, [esp + 0x1c]
mov bl, 4
push eax
mov byte [esp + 0x6bc], bl
call fcn.0048246b
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b4], 5
call fcn.00482375
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b0], bl
call fcn.00482288
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b0], 3
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00482288
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041af50
test eax, eax
jne 0x419d61
push str.DRVSTORE
lea ecx, [esp + 0x1c]
call fcn.004822f6
mov esi, eax
lea edx, [esp + 0x3a4]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x6b4], 6
call fcn.004822f6
push esi
push eax
lea eax, [esp + 0x1c]
mov bl, 7
push eax
mov byte [esp + 0x6bc], bl
call fcn.0048246b
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b4], 8
call fcn.00482375
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b0], bl
call fcn.00482288
lea ecx, [esp + 0x20]
mov byte [esp + 0x6b0], 6
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00482288
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041af50
test eax, eax
je 0x41a106
lea edx, [esp + 0x1c]
push str..
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004824d1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 9
call fcn.00482375
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b0], 2
call fcn.00482288
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x50]
call fcn.0047135a
test eax, eax
je 0x41a0fb
mov ebx, 0x10
lea ecx, [esp + 0x48]
call fcn.0047157a
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], eax
call fcn.00471541
test eax, eax
jne 0x41a0ef
mov edx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x4c]
call dword [edx + 0x38]
test eax, eax
je 0x41a0ef
push 0x4ac194
lea ecx, [esp + 0x48]
call fcn.004822f6
mov esi, eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x48]
push eax
mov byte [esp + 0x6b4], 0xa
call fcn.00471649
push esi
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x6bc], 0xb
call fcn.0048246b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 0xc
call fcn.00482375
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6b0], 0xb
call fcn.00482288
lea ecx, [esp + 0x40]
mov byte [esp + 0x6b0], 0xa
call fcn.00482288
lea ecx, [esp + 0x44]
mov byte [esp + 0x6b0], 2
call fcn.00482288
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 0x41a0ef
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004822f6
mov esi, eax
push 0x4a919c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6b4], 0xd
call fcn.004822f6
mov edi, eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x48]
push edx
mov byte [esp + 0x6b4], 0xe
call fcn.00471649
push edi
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x6b8], 0xf
push eax
call fcn.0048246b
push esi
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x6bc], bl
call fcn.0048246b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 0x11
call fcn.00482375
lea ecx, [esp + 0x24]
mov byte [esp + 0x6b0], bl
call fcn.00482288
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6b0], 0xf
call fcn.00482288
lea ecx, [esp + 0x30]
mov byte [esp + 0x6b0], 0xe
call fcn.00482288
lea ecx, [esp + 0x38]
mov byte [esp + 0x6b0], 0xd
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00482288
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push edx
push ebp
call fcn.0041be30
test eax, eax
jne 0x41a065
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41a0e4
lea edx, [esp + 0x90]
lea ecx, [esp + 0x18]
push edx
call fcn.004822f6
mov esi, eax
push 0x4a919c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6b4], 0xd
call fcn.004822f6
mov edi, eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x48]
push eax
mov byte [esp + 0x6b4], 0xe
call fcn.00471649
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x6bc], 0xf
call fcn.0048246b
push esi
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x6bc], bl
call fcn.0048246b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b4], 0x11
call fcn.00482375
lea ecx, [esp + 0x24]
mov byte [esp + 0x6b0], bl
call fcn.00482288
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6b0], 0xf
call fcn.00482288
lea ecx, [esp + 0x30]
mov byte [esp + 0x6b0], 0xe
call fcn.00482288
lea ecx, [esp + 0x38]
mov byte [esp + 0x6b0], 0xd
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x6b0], 2
call fcn.00482288
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ebp
call fcn.0041be30
test eax, eax
je 0x419f68
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
push eax
call fcn.0048266c
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.0044bde0
test eax, eax
je 0x41a0dc
lea eax, [esp + 0x90]
lea ecx, [esp + 0x1a4]
push eax
push str.FOUND_:_pszDriverStoreInfPath___s_n
push ecx
call fcn.00471c30
add esp, 0xc
lea edx, [esp + 0x1a4]
push edx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
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 0x419db5
lea ecx, [esp + 0x48]
call fcn.00471310
jmp 0x41a120
call fcn.0044bde0
test eax, eax
je 0x41a120
push str.FAILED_to_Find_Driver_Store_Folder_n
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bde0
test eax, eax
je 0x41a1c3
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x5a8]
push ecx
push str.CDIFxUninstall::MyDriverPackageGetPath_:_bRetVal___d_n
push edx
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
lea ecx, [esp + 0x48]
mov byte [esp + 0x6b0], 1
call fcn.004712d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x6b0], 0
call fcn.00482288
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6b0], 0xffffffff
call fcn.00482288
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