Function at 0x10045be
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.01002797
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x100462d
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 0x100462c
push dword [ebp - 0x634]
call fcn.01004670
test eax, eax
jne 0x1004803
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.010044e0
cmp eax, esi
jl 0x100462c
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x620]
push eax
push ebx
call fcn.01004494
cmp dword [edi], esi
je 0x100462c
mov ecx, dword [ebp - 0x620]
push ebx
call fcn.010027e6
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 0x100462c
lea eax, [ebp - 0x624]
push eax
push 0x20019
push esi
push 0x1021048
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1021022
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 0x1020ff8
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 0x1020fd4
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 0x1021034
push dword [ebp - 0x630]
mov ebx, 0x208
mov dword [ebp - 0x640], ebx
call edi
test eax, eax
jne 0x1020fc8
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 0x1020fc8
push dword [ebp - 0x634]
push dword [ebp - 0x628]
call dword [sym.imp.SHLWAPI.dll_Ordinal_548]
test eax, eax
jne 0x1023e86
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 0x1020f15
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100462c
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
push 0x102996c
push dword [ebp - 0x630]
mov dword [ebp - 0x644], ebx
call edi
test eax, eax
jne 0x1020fbc
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 0x1023eff
mov ecx, dword [ebp - 0x620]
push 1
push esi
push ebx
call fcn.010021c0
mov edi, eax
cmp dword [edi], esi
jne 0x1023eff
push dword [edi + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
je 0x1023eff
lea ecx, [ebp - 0x61c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1023f08
dec ebx
js 0x1020fbc
jmp 0x1023ecb
lea eax, [ebp - 0x654]
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x1020fbc
push dword [edi + 0x14]
mov ecx, dword [ebp - 0x620]
push dword [ebp - 0x648]
call fcn.0102f00e
jmp 0x1020fbc