Function at 0x100c5a46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jge 0x100c5ab2
xor eax, eax
jmp 0x100c5d4c
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.clsid
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c5c3d
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x100c5af6
mov dword [ebp - 0x24c], 0
jmp 0x100c5b43
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x240]
add eax, 3
and al, 0xfc
call fcn.100254a0
mov dword [ebp - 0x250], esp
mov eax, dword [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call fcn.100146b0
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x228]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c5c33
lea eax, [ebp - 0x230]
push eax
push 0x20019
push 0
push 0x104aba08
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c5c26
mov dword [ebp - 0x244], 0x105
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c5c19
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.100c5d56
add esp, 0xc
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.100ae4b0
mov edx, dword [eax + 0x6c]
push edx
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 1
jne 0x100c5c19
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
jne 0x100c5d39
lea eax, [ebp - 0x228]
push eax
push 0x20019
push 0
push str.DocShortcut
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c5d39
lea ecx, [ebp - 0x230]
push ecx
push 0x20019
push 0
push str.DefaultIcon
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c5d2c
mov dword [ebp - 0x248], 0x105
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
push 0
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c5d1f
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.100c5d56
add esp, 0xc
mov ecx, dword [ebp - 0x238]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.100ae4b0
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 1
jne 0x100c5d1f
mov dword [ebp - 0x220], 0
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x220]
lea esp, [ebp - 0x250]
mov esp, ebp
pop ebp
ret