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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b421
mov eax, dword fs:[0]
push eax
sub esp, 0xce4
mov eax, dword [0x5b4450]
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
xor esi, esi
push esi
lea eax, [ebp - 0xcec]
push str.Tool_EnumDriverStoreInf
push eax
call fcn.0040ac70
add esp, 0xc
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x218], cx
call fcn.005373f0
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x420], ax
call fcn.005373f0
add esp, 0xc
call fcn.00442c4d
mov ebx, dword [eax + 4]
push 0x104
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xcdc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4209f8
push esi
push str.return___08x
lea eax, [ebp - 0xcec]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0xcec]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x420de8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.DriverStoreFileRepository_
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00535afa
add esp, 0xc
push 0x58e9dc
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0xa80]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xcf0], eax
cmp eax, 0xffffffff
je 0x420dbd
mov ecx, dword [ebx + 0x1bc]
mov dword [ebp - 0xce0], ecx
jmp 0x420a70
cmp dword [ebp - 0xa80], 0x10
jne 0x420d8e
lea edx, [ebp - 0xa54]
push edx
lea ecx, [ebp - 0xcd8]
call fcn.00401210
push 0x58a8c8
lea ecx, [ebp - 0xcd4]
mov byte [ebp - 4], 1
call fcn.00401210
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xcd8]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x420e04
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x420adb
push esi
lea ecx, [ebp - 0xcd8]
call fcn.00401760
mov edx, dword [ebp - 0xcd8]
lea eax, [esi + 1]
push eax
push edx
call fcn.0053615d
mov eax, dword [ebp - 0xcd8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x420e04
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0xcd8]
xor ecx, ecx
xor ebx, ebx
mov word [edx + esi*2], cx
mov dword [ebp - 0xce4], ebx
cmp dword [ebp - 0xce0], ecx
jle 0x420c54
mov ecx, dword [ebp - 0xcd4]
test ebx, ebx
js 0x420e0e
mov eax, dword [ebp - 0xcdc]
cmp ebx, dword [eax + 0x1bc]
jge 0x420e0e
mov eax, dword [eax + 0x1b8]
mov edx, dword [eax + ebx*4]
lea eax, [eax + ebx*4]
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x420ba7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x420b91
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x420b91
push eax
call fcn.004017c0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x420b80
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [ebx + 0x10]
mov ebx, dword [ebp - 0xce4]
mov dword [ebp - 0xcd4], ecx
jmp 0x420ba7
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0xcd4]
call fcn.004016b0
mov ecx, dword [ebp - 0xcd4]
mov esi, dword [ecx - 0xc]
test esi, esi
js 0x420e04
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x420bd5
push esi
lea ecx, [ebp - 0xcd4]
call fcn.00401760
mov ecx, dword [ebp - 0xcd4]
lea eax, [esi + 1]
push eax
push ecx
call fcn.0053615d
mov eax, dword [ebp - 0xcd4]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x420e04
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0xcd4]
xor ecx, ecx
mov word [edx + esi*2], cx
mov ecx, dword [ebp - 0xcd4]
test ecx, ecx
je 0x420c37
mov eax, dword [ebp - 0xcd8]
cmp dword [eax - 0xc], 0
jl 0x420c37
push ecx
push eax
call fcn.00535a9a
add esp, 8
test eax, eax
je 0x420c31
sub eax, dword [ebp - 0xcd8]
sar eax, 1
cmp eax, 0xffffffff
jg 0x420c54
mov ecx, dword [ebp - 0xcd4]
mov eax, dword [ebp - 0xce0]
inc ebx
mov dword [ebp - 0xce4], ebx
cmp ebx, eax
jl 0x420b20
test eax, eax
jne 0x420d48
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.005373f0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x82e]
push eax
mov word [ebp - 0x830], dx
call fcn.005373f0
add esp, 0xc
lea ecx, [ebp - 0xa54]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0x58e9e0
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00535cbb
add esp, 0x18
lea ecx, [ebp - 0xcd0]
push ecx
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x420d42
mov esi, dword [ebp - 0xcdc]
lea ebx, [ebx]
lea eax, [ebp - 0xca4]
push eax
lea ecx, [ebp - 0xa54]
push ecx
lea edx, [ebp - 0x420]
push edx
push str._s_s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00535cbb
mov eax, dword [esi + 0x1a8]
add esp, 0x1c
lea ecx, [ebp - 0x830]
push ecx
push eax
lea ecx, [esi + 0x1a0]
call fcn.004422ff
lea edx, [ebp - 0xcd0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x420ce0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xcd4]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420d68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xcd8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420d8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0xcf0]
lea ecx, [ebp - 0xa80]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x420a70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0xcdc]
mov esi, dword [edx + 0x1a8]
push esi
push str.return___08x
lea eax, [ebp - 0xcec]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0xcec]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, esi
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.005337cb
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004010a0
call fcn.004409a4
int3