Function at 0x415c50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x3a0
mov dword [esp + 8], 0
push ebx
push esi
push edi
mov ebx, SysReAllocStringLen
mov dword [esp + 0x20], ebx
push ebp
mov edi, str.Interface_
mov ecx, 0xffffffff
sub eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x27
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x66]
mov eax, dword [esp + 0x3b8]
push ecx
push eax
call fcn.00404140
mov edx, str.Forward
lea edi, [esp + 0x58]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, dword [edx]
mov dword [esp + 0x14], 0x100
mov eax, dword [edx + 4]
mov dword [edi], ecx
mov dl, byte [edx + 8]
lea ecx, [esp + 0x14]
push ecx
mov dword [edi + 4], eax
lea eax, [esp + 0xb4]
mov byte [edi + 8], dl
lea edx, [esp + 0x5c]
push eax
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x415d5c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0xb0]
push eax
push ecx
push eax
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x1b0]
push ecx
push edx
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x415d5c
mov eax, dword [esp + 0x3b8]
lea ecx, [esp + 0xa0]
push eax
push ecx
call fcn.00415c50
add esp, 8
test eax, eax
jne 0x415d5c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3a0
ret
xor ebx, ebx
mov edi, str.TypeLib_
mov word [esp + 0x10], bx
mov ecx, 0xffffffff
mov word [esp + 0x12], bx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
lea eax, [esp + 0x10]
lea edx, [esp + 0x12]
push ecx
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x3bc]
push edx
push 0x28
push ecx
push eax
call fcn.00415ac0
add esp, 0x18
test eax, eax
je 0x415dbe
jl 0x41606b
lea eax, [esp + 0x24]
lea ecx, [esp + 0x58]
push eax
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x415de7
mov eax, 0x8002801d
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3a0
ret
xor ebp, ebp
push 0xd
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x28]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov byte [esp + 0x50], 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x415ea0
lea eax, [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00418380
mov si, ax
mov ecx, dword [esp + 0x38]
add esp, 0xc
cmp byte [ecx], 0x2e
jne 0x415e88
mov eax, dword [esp + 0x2c]
push 0x10
push 0
inc eax
push eax
call fcn.00418380
add esp, 0xc
cmp dword [esp + 0x30], 0
jne 0x415e4b
cmp si, word [esp + 0x12]
ja 0x415e59
cmp si, word [esp + 0x12]
jne 0x415e88
cmp ax, word [esp + 0x10]
jb 0x415e88
mov word [esp + 0x12], si
lea edi, [esp + 0x38]
mov word [esp + 0x10], ax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc ebp
push 0xd
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x28]
push eax
push ebp
push ecx
call ebx
test eax, eax
je 0x415e0b
lea eax, [esp + 0x20]
lea ecx, [esp + 0x48]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415f8a
xor esi, esi
push 0x10
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x415f8a
lea eax, [esp + 0x58]
push eax
call fcn.00415bf0
add esp, 4
test eax, eax
jne 0x415f05
inc esi
push 0x10
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push eax
push esi
push ecx
call ebx
test eax, eax
je 0x415ed6
mov esi, 0x8002801d
jmp 0x416006
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x58]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415f8a
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push str.win32
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x415f64
lea eax, [esp + 0x58]
push 6
mov ecx, dword [esp + 0x20]
push eax
push 0
push ecx
call ebx
test eax, eax
jne 0x415f8a
lea eax, [esp + 0x28]
lea ecx, [esp + 0x58]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415f8a
lea eax, [esp + 0x14]
lea ecx, [esp + 0xb0]
mov edx, dword [esp + 0x28]
push eax
mov dword [esp + 0x18], 0x100
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x415f91
mov esi, 0x8002801d
jmp 0x416006
lea eax, [esp + 0x1b0]
push 0x100
lea ecx, [esp + 0xb4]
push eax
mov dword [esp + 0x1c], 0x100
push 0x100
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1b0]
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov esi, eax
test esi, esi
je 0x415fd8
jl 0x416006
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x3b4]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x415ff7
jl 0x416006
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3b8]
xor esi, esi
mov dword [eax], ecx
cmp dword [esp + 0x18], 0
je 0x416017
mov eax, dword [esp + 0x18]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x28], 0x80000000
je 0x416030
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
jmp 0x416036
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], 0x80000000
je 0x416047
mov eax, dword [esp + 0x1c]
push eax
call edi
cmp dword [esp + 0x20], 0x80000000
je 0x416058
mov eax, dword [esp + 0x20]
push eax
call edi
cmp dword [esp + 0x24], 0x80000000
je 0x416069
mov eax, dword [esp + 0x24]
push eax
call edi
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3a0
ret