Function at 0x1009720d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x30c]
sub esp, 0x38c
mov eax, dword [0x1011c710]
push ebx
push esi
mov esi, dword [ebp + 0x314]
xor eax, ebp
push edi
mov dword [ebp + 0x308], eax
mov dword [ebp - 0x80], esi
call dword [0x1011a9fc]
xor ebx, ebx
cmp word [ebp + 0x318], bx
mov edi, eax
mov dword [ebp - 0x64], ebx
je 0x1009726e
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0x320]
push dword [ebp + 0x31c]
push dword [ebp + 0x318]
push esi
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
test eax, eax
jge 0x1009726e
mov dword [ebp - 0x64], ebx
push 0x27
lea eax, [ebp + 0x2b8]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, 0x27
je 0x1009728a
xor eax, eax
jmp 0x100974da
lea eax, [ebp + 0x2b8]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.100ab6e0
mov eax, esp
push edi
push esi
lea ecx, [ebp + 0x2b8]
push ecx
push eax
call fcn.10001059
push eax
lea eax, [ebp - 0x54]
push str.TYPELIB_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10097425
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x104
push edi
lea eax, [ebp + 0xb0]
push eax
push ebx
push dword [ebp - 0x6c]
mov dword [ebp - 0x5c], ebx
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10097411
and dword [ebp - 0x60], 0
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100973fe
and dword [ebp - 0x58], eax
push edi
lea eax, [ebp + 0x1b4]
push eax
push 0
jmp 0x100973db
push str.HELPDIR
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100973cd
push str.FLAGS
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100973cd
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1b4]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100973cd
lea eax, [ebp - 0x7c]
push eax
push str.win16
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10097483
push dword [ebp - 0x7c]
call ebx
push str.win32
push dword [ebp - 0x68]
call fcn.10096ee1
push dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 1
call ebx
inc dword [ebp - 0x58]
push edi
lea eax, [ebp + 0x1b4]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x60]
call esi
test eax, eax
je 0x1009734a
push dword [ebp - 0x60]
call ebx
cmp dword [ebp - 0x78], 0
je 0x100974a7
mov dword [ebp - 0x70], 1
inc dword [ebp - 0x5c]
push edi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x10097314
push dword [ebp - 0x6c]
call ebx
xor ebx, ebx
cmp dword [ebp - 0x70], ebx
jne 0x10097436
lea eax, [ebp - 0x54]
push eax
push 0x80000000
call fcn.10096ee1
mov dword [ebp - 0x74], eax
push dword [ebp - 0x74]
call fcn.100969ef
mov esi, eax
cmp esi, ebx
pop ecx
je 0x100974d8
cmp dword [ebp - 0x64], ebx
je 0x100974d8
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x320]
mov dword [ebp - 0x70], ebx
push dword [ebp + 0x31c]
push dword [ebp + 0x318]
push dword [ebp - 0x80]
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
test eax, eax
jge 0x100974c6
push dword [ebp - 0x64]
call fcn.10096f25
pop ecx
jmp 0x100974cf
push dword [ebp - 0x68]
call ebx
lea eax, [ebp + 0x1b4]
push eax
push dword [ebp - 0x60]
call fcn.10096ee1
test eax, eax
jne 0x100973cd
and dword [ebp - 0x58], eax
jmp 0x100973d0
lea eax, [ebp + 0xb0]
push eax
push dword [ebp - 0x6c]
call fcn.10096ee1
test eax, eax
jne 0x100973fe
and dword [ebp - 0x5c], eax
jmp 0x10097401
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x308]
xor ecx, ebp
call fcn.100ac33f
add ebp, 0x30c
leave
ret 0x10