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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55765c
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x5d7b20]
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
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x484], eax
call fcn.0044c104
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x420304
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x480], eax
mov dword [ebp - 4], 0
call fcn.0044c104
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x420337
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x46c], edi
mov byte [ebp - 4], 1
call fcn.0044c104
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x420367
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x470], esi
push str.DriverStoreInfPath_______________________________________IN_n
push 4
mov byte [ebp - 4], 2
mov dword [ebp - 0x478], 0
call fcn.00403ab0
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.0053e550
add esp, 0x14
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42042f
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4203df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4203ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420428
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4207d6
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x420440
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420440
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x46c]
call fcn.00404df0
push 0x1c
push str.DriverStoreFileRepository_
lea ecx, [ebp - 0x46c]
call fcn.00405330
push 1
push 0x572204
lea ecx, [ebp - 0x46c]
call fcn.00405330
mov edi, dword [ebp - 0x46c]
cmp dword [edi - 4], 1
jle 0x4204a7
mov edx, dword [edi - 0xc]
push edx
lea ecx, [ebp - 0x46c]
call fcn.00404320
mov edi, dword [ebp - 0x46c]
push edi
push str.szSearchPath___1_s__n
push 4
call fcn.00403ab0
push ebx
push str.pInfname___1_s__n
push 4
call fcn.00403ab0
add esp, 0x18
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x47c], edi
cmp edi, 0xffffffff
je 0x420750
push ebx
lea ecx, [ebp - 0x474]
call fcn.00406430
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 3
call fcn.00418530
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x420510
cmp dword [ebp - 0x468], 0x10
jne 0x420619
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420526
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00404df0
mov esi, dword [ebp - 0x470]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x4206b4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42057c
push edi
lea ecx, [ebp - 0x470]
call fcn.004045b0
mov esi, dword [ebp - 0x470]
lea edx, [edi + 1]
push edx
push esi
call fcn.0053fdae
add esp, 8
cmp edi, dword [esi - 8]
jg 0x4206b4
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 4], 1
jle 0x4205b6
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00404320
mov esi, dword [ebp - 0x470]
push esi
push str.cstSrcInf___1_s__n
push 4
call fcn.00403ab0
mov edx, dword [ebp - 0x474]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x4205ee
push 0
lea ecx, [ebp - 0x474]
call fcn.004045b0
mov edx, dword [ebp - 0x474]
test edx, edx
je 0x420613
cmp dword [esi - 0xc], 0
jl 0x420613
push edx
push esi
call fcn.0053ea56
add esp, 8
test eax, eax
je 0x420613
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jg 0x4206be
mov edi, dword [ebp - 0x47c]
lea edx, [ebp - 0x468]
push edx
push edi
call ebx
test eax, eax
jne 0x420510
mov ebx, dword [ebp - 0x478]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x420685
mov edx, dword [ebp - 0x46c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x420664
push 0
lea ecx, [ebp - 0x46c]
call fcn.004045b0
mov edx, dword [ebp - 0x46c]
mov edi, dword [ebp - 0x484]
push edx
mov edx, dword [ebp + 0x10]
push edx
push edi
call fcn.0053eeab
push edi
push str.HIT__pDir___1_s__n
push 4
call fcn.00403ab0
add esp, 0x18
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420756
push 0x80070057
call fcn.00403e70
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x46c]
call fcn.00405db0
push str.DriverStoreFileRepository_
lea ecx, [ebp - 0x46c]
call fcn.004062b0
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x46c]
call fcn.00405330
push 0x56825c
lea ecx, [ebp - 0x46c]
call fcn.004062b0
mov eax, dword [ebp - 0x474]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x46c]
call fcn.00405330
mov ebx, 1
cmp dword [esi - 4], ebx
jle 0x420735
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00404320
mov esi, dword [ebp - 0x470]
push esi
push str.HIT__cstSrcInf___1_s__n
push 4
call fcn.00403ab0
mov edi, dword [ebp - 0x47c]
add esp, 0xc
jmp 0x420631
mov ebx, dword [ebp - 0x478]
push str.DriverStoreInfPath____________________________________________OUT_n
push 4
call fcn.00403ab0
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420785
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x46c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4207ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4207d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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.0053e1ad
mov esp, ebp
pop ebp
ret