Function at 0x100022e0
Capabilities:
Enumerate files on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
cmp dword [ebp + 0x10], 2
je 0x1000230f
mov eax, dword [ebp + 0x10]
push eax
push 0x1000d9e8
call 0x10000000
add esp, 8
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10002542
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005ed0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000232f
xor eax, eax
jmp 0x10002542
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
and ecx, 0x10000
je 0x10002355
mov edx, dword [ebp - 4]
add edx, 0x4c
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.100082a0
add esp, 8
jmp 0x1000243a
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, word [eax + edx + 0x4c]
test ecx, ecx
je 0x1000237f
mov edx, dword [ebp - 4]
add edx, 0x4c
push edx
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10002391
push str.C:_windows_inf
lea ecx, [ebp - 0x2c0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x100096e8
lea edx, [ebp - 0x2c0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10009278
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x718]
push ecx
lea edx, [ebp - 0x2c0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x1000243a
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x4c8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x6ec]
push edx
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + eax*2 - 0x4ca]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x4c8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.100082a0
add esp, 8
lea ecx, [ebp - 0x718]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100023d2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x258], 0
je 0x1000253d
push 0
lea edx, [ebp - 0x68]
push edx
call 0x10000000
add esp, 4
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, 0xa08
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x254]
add edx, eax
push edx
call sym.vtvbtoyx.dll__SetupDiGetINFClassW_20
test eax, eax
je 0x1000253d
mov eax, dword [ebp - 4]
add eax, 0x10
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.10006110
add esp, 8
push 0x4e
lea edx, [ebp - 0xb8]
push edx
push 1
push 0
push str.ClassGUID
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 0x68]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov word [ebp - 0xa], dx
add dword [ebp - 8], 2
cmp word [ebp - 0xa], 0
jne 0x100024fd
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x24]
sar eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
shl ecx, 1
push ecx
lea edx, [ebp - 0x68]
push edx
push 1
push 0
push str.Class
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc