Function at 0x1003993
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.0100215e
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x10039de
push edi
push 1
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, ebx
call fcn.01002054
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0x18]
jl 0x10039dd
push dword [ebp + 0xc]
call fcn.01003a0a
test eax, eax
jne 0x100582c
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 0x40]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.01003738
cmp eax, esi
jl 0x10039dd
push dword [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp - 4]
call fcn.01003792
cmp dword [edi], esi
je 0x10039dd
push dword [ebp - 4]
mov ecx, ebx
call fcn.010021e7
push 1
push esi
push eax
mov ecx, ebx
call fcn.01002054
lea ecx, [ebp - 0x18]
push ecx
push esi
push dword [eax + 0x14]
push 2
push 0x42
call dword [sym.imp.SHLWAPI.dll_AssocQueryKeyW]
test eax, eax
jl 0x10039dd
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x101e828
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10058da
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x45c]
push eax
mov dword [ebp - 4], esi
mov edi, 0x104
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x101e4d2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10039dd
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x664]
push eax
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
push 1
lea ecx, [ebp + 0x10]
push ecx
push esi
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp + 0x10], esi
je 0x101e52d
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_Ordinal_548]
test eax, eax
jne 0x102106e
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DestroyIcon]
inc dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
jmp 0x10058bd
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e524
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x86c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1021163
push edi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x102113d
push esi
push esi
push 0x418
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
dec ebx
js 0x102113a
mov ecx, dword [ebp - 0x10]
push 1
push esi
push ebx
call fcn.01002054
mov edi, eax
cmp dword [edi], esi
jne 0x1021132
push dword [edi + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
je 0x1021132
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1021132
push 0x104
push dword [edi + 0x14]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
dec ebx
jns 0x10210f0
mov edi, 0x104
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x1021163
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.0102ab72
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101e524