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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x1046080]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [ebp - 0x620], ecx
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x634], edx
call fcn.01002799
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x1004665
mov ecx, dword [ebp - 0x620]
push edi
push 1
lea eax, [ebp - 0x674]
push eax
push ebx
call fcn.010021c0
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0x18]
jl 0x1004664
push dword [ebp - 0x634]
call fcn.010046a8
test eax, eax
jne 0x100483b
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01001aff
leave
ret 0xc
push dword [ebp - 0x668]
mov ecx, dword [ebp - 0x620]
push dword [ebp - 0x634]
call fcn.01004518
cmp eax, esi
jl 0x1004664
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x620]
push eax
push ebx
call fcn.010044cc
cmp dword [edi], esi
je 0x1004664
mov ecx, dword [ebp - 0x620]
push ebx
call fcn.010027e8
mov ecx, dword [ebp - 0x620]
push 1
push esi
push eax
call fcn.010021c0
lea ecx, [ebp - 0x63c]
push ecx
push esi
push dword [eax + 0x14]
push 2
push 0x42
call dword [sym.imp.SHLWAPI.dll_AssocQueryKeyW]
test eax, eax
jl 0x1004664
lea eax, [ebp - 0x624]
push eax
push 0x20019
push esi
push 0x1020ee0
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1020ebb
lea eax, [ebp - 0x650]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x638], esi
push esi
jmp 0x1020e91
lea eax, [ebp - 0x630]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1020e6d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push 0x1020ecc
push dword [ebp - 0x630]
mov ebx, 0x208
mov dword [ebp - 0x640], ebx
call edi
test eax, eax
jne 0x1020e61
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x628], esi
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
push 1
lea ecx, [ebp - 0x628]
push ecx
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp - 0x628], esi
je 0x1020e61
push dword [ebp - 0x634]
push dword [ebp - 0x628]
call dword [sym.imp.SHLWAPI.dll_Ordinal_548]
test eax, eax
jne 0x1023f7a
push dword [ebp - 0x628]
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x638]
lea eax, [ebp - 0x650]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x638]
push dword [ebp - 0x624]
mov dword [ebp - 0x62c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1020dae
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004664
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
push 0x1029c20
push dword [ebp - 0x630]
mov dword [ebp - 0x644], ebx
call edi
test eax, eax
jne 0x1020e55
mov eax, dword [ebp - 0x620]
push esi
push esi
push 0x418
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
jmp 0x1023ff3
mov ecx, dword [ebp - 0x620]
push 1
push esi
push ebx
call fcn.010021c0
mov edi, eax
cmp dword [edi], esi
jne 0x1023ff3
push dword [edi + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
je 0x1023ff3
lea ecx, [ebp - 0x61c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1023ffc
dec ebx
js 0x1020e55
jmp 0x1023fbf
lea eax, [ebp - 0x654]
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x1020e55
push dword [edi + 0x14]
mov ecx, dword [ebp - 0x620]
push dword [ebp - 0x648]
call fcn.0102f3c6
jmp 0x1020e55