Function at 0x1009f35
Capabilities:
Enumerate files on windows
Get common file path
Query or enumerate registry value

Disassembly:
push 0x6b4
mov eax, 0x1020fed
call fcn.01013585
mov esi, dword [sym.imp.msvcrt.dll_malloc]
xor ebx, ebx
mov edi, 0x800
push edi
mov dword [ebp - 0x6b4], 7
mov dword [ebp - 0x6b0], 0x18
mov dword [ebp - 0x6ac], ebx
mov dword [ebp - 0x680], ebx
mov byte [0x10255b8], bl
call esi
pop ecx
mov dword [ebp - 0x684], eax
cmp eax, ebx
je 0x100a300
xor ecx, ecx
push edi
mov word [eax], cx
call esi
pop ecx
mov dword [ebp - 0x67c], eax
cmp eax, ebx
je 0x100a2e0
xor ecx, ecx
mov word [eax], cx
mov eax, 0x80000002
mov dword [ebp - 0x6c0], eax
mov dword [ebp - 0x6bc], 0x80000001
mov dword [ebp - 0x6b8], ebx
mov dword [ebp - 0x678], ebx
push ebx
push 0x20019
push 0x1002230
push eax
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x698], ebx
mov dword [ebp - 0x694], ebx
mov dword [ebp - 0x690], ebx
call fcn.01004964
test eax, eax
jne 0x100a0ce
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x69c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x698]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100a0c6
xor esi, esi
cmp dword [ebp - 0x69c], ebx
jbe 0x100a0bb
mov eax, dword [ebp - 0x67c]
mov ecx, edi
mov byte [eax], bl
inc eax
dec ecx
jne 0x100a032
mov eax, dword [ebp - 0x684]
mov ecx, edi
mov byte [eax], bl
inc eax
dec ecx
jne 0x100a040
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x688]
push eax
push dword [ebp - 0x67c]
mov dword [ebp - 0x688], 0x400
push esi
push dword [ebp - 0x698]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100a0a5
lea eax, [ebp - 0x688]
push eax
push dword [ebp - 0x67c]
lea ecx, [ebp - 0x698]
push dword [ebp - 0x684]
mov dword [ebp - 0x688], edi
call fcn.01007b32
test eax, eax
jne 0x100a0a5
mov eax, dword [ebp - 0x684]
cmp word [eax], bx
jne 0x100a0b4
inc esi
cmp esi, dword [ebp - 0x69c]
jb 0x100a02a
jmp 0x100a0bb
mov byte [0x10255b8], 1
lea ecx, [ebp - 0x698]
call fcn.01004403
cmp byte [0x10255b8], bl
jne 0x100a0f6
lea ecx, [ebp - 0x698]
call fcn.01004403
inc dword [ebp - 0x678]
mov eax, dword [ebp - 0x678]
mov eax, dword [ebp + eax*4 - 0x6c0]
cmp eax, ebx
jne 0x1009fc6
jmp 0x100a101
lea ecx, [ebp - 0x698]
call fcn.01004403
cmp byte [0x10255b8], bl
je 0x100a118
mov dword [ebp - 0x680], 1
jmp 0x100a2e0
lea eax, [ebp - 0x6b4]
mov dword [ebp - 0x678], eax
or esi, 0xffffffff
mov eax, dword [ebp - 0x678]
mov eax, dword [eax]
cmp eax, ebx
je 0x100a2e0
push ebx
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100a2cd
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x674]
call sub.MFC42u.dll_CString::CString_1
push 0x5c
lea ecx, [ebp - 0x674]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::ReverseFind
lea ecx, [ebp - 0x674]
cmp eax, esi
je 0x100a2c5
push eax
lea eax, [ebp - 0x6a0]
push eax
call sub.MFC42u.dll_CString::Left
push eax
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 1
call fcn.01012b16
lea ecx, [ebp - 0x6a0]
mov byte [ebp - 4], bl
call fcn.01012a9e
mov eax, dword [ebp - 0x674]
mov ecx, eax
movzx eax, word [eax]
cmp ax, bx
je 0x100a1cd
movzx eax, ax
cmp ax, 0x20
jbe 0x100a1cd
inc ecx
inc ecx
movzx eax, word [ecx]
cmp ax, bx
jne 0x100a1bd
cmp word [ecx], bx
je 0x100a2bf
push 0x1002558
lea ecx, [ebp - 0x6a8]
call sub.MFC42u.dll_CString::CString_1
push eax
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::operator_1
lea ecx, [ebp - 0x6a8]
mov byte [ebp - 4], bl
call fcn.01012a9e
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x68c]
call sub.MFC42u.dll_CString::CString_2
push 0x100254c
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::CString_1
push eax
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::operator_1
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 3
call fcn.01012a9e
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x68c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, esi
je 0x100a2b1
test byte [ebp - 0x670], 2
jne 0x100a28c
lea eax, [ebp - 0x644]
push 0x1002534
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100a28c
test byte [ebp - 0x670], 0x10
je 0x100a2a0
lea eax, [ebp - 0x670]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100a262
jmp 0x100a2aa
mov dword [ebp - 0x680], 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], bl
call fcn.01012a9e
lea ecx, [ebp - 0x674]
mov dword [ebp - 4], esi
call fcn.01012a9e
add dword [ebp - 0x678], 4
cmp dword [ebp - 0x680], ebx
je 0x100a127
push dword [ebp - 0x684]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
pop ecx
cmp dword [ebp - 0x67c], ebx
je 0x100a300
push dword [ebp - 0x67c]
call edi
pop ecx
mov eax, dword [ebp - 0x680]
call fcn.01013617
ret