Function at 0x1005818
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100d058]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x84]
push eax
mov edi, str.Package
push edi
mov esi, 0x80
push OleLoadFromStream
mov dword [ebp - 0x10c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
je 0x10059e2
lea eax, [ebp - 0x108]
push eax
push 0
push OleLoadFromStream
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1005af6
push esi
lea eax, [ebp - 0x84]
push eax
push 0x106
push dword [0x100de70]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push edi
push OleLoadFromStream
call ebx
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010016e5
push 0x1001510
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010051ce
push str.packager.exe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.packager.exe
push 1
lea eax, [ebp - 0x84]
push eax
push OleLoadFromStream
call ebx
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010016e5
push 0x10014f0
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010051ce
push esi
lea eax, [ebp - 0x104]
push eax
push 0x122
push dword [0x100de70]
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
lea eax, [ebp - 0x104]
push eax
push 1
lea eax, [ebp - 0x84]
push eax
push OleLoadFromStream
call ebx
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010016e5
push 0x10014d0
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010051ce
push esi
lea eax, [ebp - 0x104]
push eax
push 0x123
push dword [0x100de70]
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
lea eax, [ebp - 0x104]
push eax
push 1
lea eax, [ebp - 0x84]
push eax
push OleLoadFromStream
call ebx
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010016e5
push 0x10014c8
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010051ce
push 0x27
push str.0003000C_0000_0000_C000_000000000046
push 1
lea eax, [ebp - 0x84]
push eax
push OleLoadFromStream
call ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10014c0
push esi
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x10c], esi
call fcn.010016e5
push str.0003000C_0000_0000_C000_000000000046
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010051ce
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
push eax
push OleLoadFromStream
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x1005af6
lea eax, [ebp - 0x108]
push eax
push 0x10014b8
push OleLoadFromStream
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1005af6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push str.0003000C_0000_0000_C000_000000000046
push dword [ebp - 0x108]
call ebx
push str.0003000C_0000_0000_C000_000000000046
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010016e5
push 0x10014ac
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010051ce
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x108]
call ebx
push str.0003000C_0000_0000_C000_000000000046
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010016e5
push 0x10014a4
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.010051ce
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x108]
call ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01003019
leave
ret