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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564d61
mov eax, dword fs:[0]
push eax
sub esp, 0xce4
mov eax, dword [0x5c0490]
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 0x595f84
push eax
call fcn.00401190
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.00541d20
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x420], ax
call fcn.00541d20
add esp, 0xc
call fcn.0044b52d
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 0x40ff28
push esi
push str.return___08x
lea eax, [ebp - 0xcec]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0xcec]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x410318
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.0053e407
add esp, 0xc
push 0x595ff0
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 0x4102ed
mov ecx, dword [ebx + 0x1b8]
mov dword [ebp - 0xce0], ecx
jmp 0x40ffa0
cmp dword [ebp - 0xa80], 0x10
jne 0x4102be
lea edx, [ebp - 0xa54]
push edx
lea ecx, [ebp - 0xcd8]
call fcn.00404f00
push 0x5988ec
lea ecx, [ebp - 0xcd4]
mov byte [ebp - 4], 1
call fcn.00404f00
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xcd8]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x410334
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x41000b
push esi
lea ecx, [ebp - 0xcd8]
call fcn.00405520
mov edx, dword [ebp - 0xcd8]
lea eax, [esi + 1]
push eax
push edx
call fcn.0053e3f0
mov eax, dword [ebp - 0xcd8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x410334
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 0x410184
mov ecx, dword [ebp - 0xcd4]
test ebx, ebx
js 0x41033e
mov eax, dword [ebp - 0xcdc]
cmp ebx, dword [eax + 0x1b8]
jge 0x41033e
mov eax, dword [eax + 0x1b4]
mov edx, dword [eax + ebx*4]
lea eax, [eax + ebx*4]
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x4100d7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4100c1
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x4100c1
push eax
call fcn.00406410
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x4100b0
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 0x4100d7
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0xcd4]
call fcn.00405470
mov ecx, dword [ebp - 0xcd4]
mov esi, dword [ecx - 0xc]
test esi, esi
js 0x410334
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x410105
push esi
lea ecx, [ebp - 0xcd4]
call fcn.00405520
mov ecx, dword [ebp - 0xcd4]
lea eax, [esi + 1]
push eax
push ecx
call fcn.0053e3f0
mov eax, dword [ebp - 0xcd4]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x410334
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 0x410167
mov eax, dword [ebp - 0xcd8]
cmp dword [eax - 0xc], 0
jl 0x410167
push ecx
push eax
call fcn.0053d6a8
add esp, 8
test eax, eax
je 0x410161
sub eax, dword [ebp - 0xcd8]
sar eax, 1
cmp eax, 0xffffffff
jg 0x410184
mov ecx, dword [ebp - 0xcd4]
mov eax, dword [ebp - 0xce0]
inc ebx
mov dword [ebp - 0xce4], ebx
cmp ebx, eax
jl 0x410050
test eax, eax
jne 0x410278
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.00541d20
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x82e]
push eax
mov word [ebp - 0x830], dx
call fcn.00541d20
add esp, 0xc
lea ecx, [ebp - 0xa54]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0x595ff4
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0053caa0
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 0x410272
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 0x59600c
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.0053caa0
mov eax, dword [esi + 0x1a4]
add esp, 0x1c
lea ecx, [ebp - 0x830]
push ecx
push eax
lea ecx, [esi + 0x19c]
call fcn.0044abdf
lea edx, [ebp - 0xcd0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410210
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 0x410298
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 0x4102be
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 0x40ffa0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0xcdc]
mov esi, dword [edx + 0x1a4]
push esi
push str.return___08x
lea eax, [ebp - 0xcec]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0xcec]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404160
call fcn.004490bd
int3