Function at 0x783616dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x783aec4a
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x783c8018]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x783c8018]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
cmp dword [ebp + 8], 2
mov esi, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
jne 0x78361744
or dword [esi + 0x7c], 0x3000
jmp 0x783618b0
cmp dword [ebp + 8], 1
jne 0x783618b0
or dword [esi + 0x7c], 0x500
lea ecx, [esp + 0x20]
push ecx
mov edi, 0x20019
push edi
push eax
push eax
push 0x80000000
mov dword [esp + 0x2c], eax
call ebx
test eax, eax
jne 0x783618b0
lea eax, [esp + 0x14]
push eax
push 8
push 0
push 0x782e71bc
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x783618a6
push 0x105
lea eax, [esp + 0x60]
push eax
push 0
jmp 0x7836188a
inc dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push edi
push 0
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x7836187c
lea eax, [esp + 0x1c]
push eax
push edi
push 0
push 0x782f3e48
push dword [esp + 0x40]
call ebx
test eax, eax
je 0x783617f3
lea eax, [esp + 0x1c]
push eax
push edi
push 0
push 0x782f3e60
push dword [esp + 0x40]
call ebx
test eax, eax
jne 0x7836187c
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
push eax
push edi
push 0
push 0x782f3e74
push dword [esp + 0x40]
call ebx
test eax, eax
je 0x78361872
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call sym.MFC80U.DLL_Ordinal_283
and dword [esp + 0x280], 0
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_952
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esp + 0x280], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.78303c47
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x783617a2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x783619e6
mov dword [esi + 0xb8], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xb4], eax
jmp 0x783619e6
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_3358
cmp eax, edi
jne 0x78361a15
cmp dword [ebp + 8], edi
jne 0x78361a15
push dword [esi + 0xac]
and dword [esp + 0x24], 0
lea ecx, [esp + 0x1c]
call sym.MFC80U.DLL_Ordinal_283
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x284], edi
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_GetClassFile]
test eax, eax
jne 0x783619bf
push 0x783c8d10
lea ecx, [esp + 0x28]
call sym.MFC80U.DLL_Ordinal_269
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x288], 2
call sym.MFC80U.DLL_Ordinal_1167
mov byte [esp + 0x280], 3
push dword [esp + 0x28]
lea eax, [esp + 0x28]
push 0x782f3e88
push eax
call sym.MFC80U.DLL_Ordinal_2311
add esp, 0xc
lea eax, [esp + 0x38]
push eax
push edi
mov edi, dword [esp + 0x2c]
push 0
push edi
push 0x80000000
call ebx
test eax, eax
jne 0x7836199c
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.78303c47
lea eax, [edi - 0x10]
mov byte [esp + 0x280], 1
call fcn.78303c47
cmp dword [esp + 0x20], 0
jne 0x78361a09
push 0xffffffffffffffff
push 0x15
push 0xf184
call sym.MFC80U.DLL_Ordinal_1117
cmp eax, 4
jne 0x78361a01
or dword [esp + 0x280], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.78303c47
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14c]
xor edi, edi
inc edi
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x783618e5
jmp 0x78361a15
mov dword [esp + 0x14], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.78303c47
push dword [esp + 0x34]
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [esp + 0x30]
mov dword [esi + 0xb4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xb8], eax
mov eax, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.783a505e
mov esp, ebp
pop ebp
ret 4