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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5853c1
mov eax, dword fs:[0]
push eax
sub esp, 0xce4
mov eax, dword [0x5eb770]
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
push 0x5b7b88
push esi
lea ecx, [ebp - 0xcec]
call fcn.0044ca70
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp - 0x218], ax
call fcn.0055ca80
add esp, 0xc
push 0x206
lea eax, [ebp - 0x41e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x420], dx
call fcn.0055ca80
add esp, 0xc
call fcn.0046d2d8
mov ebx, dword [eax + 4]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xcdc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x409a78
push esi
push str.return___08x
lea edx, [ebp - 0xcec]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0xcec]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x409e68
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.DriverStoreFileRepository_
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.005579b2
add esp, 0xc
push 0x5b7bf4
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0xa80]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xcf0], eax
cmp eax, 0xffffffff
je 0x409e3d
mov eax, dword [ebx + 0x1ac]
mov dword [ebp - 0xce0], eax
jmp 0x409af0
cmp dword [ebp - 0xa80], 0x10
jne 0x409e0e
lea ecx, [ebp - 0xa54]
push ecx
lea ecx, [ebp - 0xcd8]
call fcn.00403340
push 0x5b69a4
lea ecx, [ebp - 0xcd4]
mov byte [ebp - 4], 1
call fcn.00403340
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xcd8]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x409e84
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x409b5b
push esi
lea ecx, [ebp - 0xcd8]
call fcn.00403a70
mov edx, dword [ebp - 0xcd8]
lea eax, [esi + 1]
push eax
push edx
call fcn.005578a9
mov eax, dword [ebp - 0xcd8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x409e84
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 0x409cd4
mov ecx, dword [ebp - 0xcd4]
test ebx, ebx
js 0x409e8e
mov eax, dword [ebp - 0xcdc]
cmp ebx, dword [eax + 0x1ac]
jge 0x409e8e
mov eax, dword [eax + 0x1a8]
mov edx, dword [eax + ebx*4]
lea eax, [eax + ebx*4]
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x409c27
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x409c11
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x409c11
push eax
call fcn.00404900
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x409c00
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 0x409c27
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0xcd4]
call fcn.004039c0
mov ecx, dword [ebp - 0xcd4]
mov esi, dword [ecx - 0xc]
test esi, esi
js 0x409e84
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x409c55
push esi
lea ecx, [ebp - 0xcd4]
call fcn.00403a70
mov ecx, dword [ebp - 0xcd4]
lea eax, [esi + 1]
push eax
push ecx
call fcn.005578a9
mov eax, dword [ebp - 0xcd4]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x409e84
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 0x409cb7
mov eax, dword [ebp - 0xcd8]
cmp dword [eax - 0xc], 0
jl 0x409cb7
push ecx
push eax
call fcn.00556fbe
add esp, 8
test eax, eax
je 0x409cb1
sub eax, dword [ebp - 0xcd8]
sar eax, 1
cmp eax, 0xffffffff
jg 0x409cd4
mov ecx, dword [ebp - 0xcd4]
mov eax, dword [ebp - 0xce0]
inc ebx
mov dword [ebp - 0xce4], ebx
cmp ebx, eax
jl 0x409ba0
test eax, eax
jne 0x409dc8
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.0055ca80
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x82e]
push eax
mov word [ebp - 0x830], dx
call fcn.0055ca80
add esp, 0xc
lea ecx, [ebp - 0xa54]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0x5b7bf8
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.005578de
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 0x409dc2
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 0x5b7c10
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.005578de
mov eax, dword [esi + 0x198]
add esp, 0x1c
lea ecx, [ebp - 0x830]
push ecx
push eax
lea ecx, [esi + 0x190]
call fcn.0046c98a
lea edx, [ebp - 0xcd0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409d60
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 0x409de8
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 0x409e0e
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 0x409af0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0xcdc]
mov esi, dword [edx + 0x198]
push esi
push str.return___08x
lea eax, [ebp - 0xcec]
push 2
push eax
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0xcec]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004025a0
call fcn.004624e2
int3