Function at 0x409c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493791
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x98]
xor edi, edi
push edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xac], edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, edi
jl 0x40a08d
mov esi, dword [ebp - 0xac]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409c94
sub eax, edx
sar eax, 1
inc eax
push eax
call fcn.004708c0
mov ebx, eax
mov eax, esi
add esp, 4
mov dword [ebp - 0xc0], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409cc0
sub eax, edx
sar eax, 1
inc eax
push eax
push esi
push ebx
call fcn.00470be5
mov eax, dword [ebp - 0xac]
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x72
mov dword [ebp - 0xb4], 0x72
call fcn.004708c0
add esp, 4
lea ecx, [ebp - 0xc4]
push ecx
push 0x20019
push edi
push 0x499b64
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push SysReAllocString
mov esi, eax
mov byte [ebp - 0x99], 1
call edi
xor ecx, ecx
cmp eax, ecx
jne 0x40a00c
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xa0]
push edx
push 0x20019
push ecx
push ebx
push eax
call edi
mov ecx, dword [ebp - 0xc4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [ebp - 0xc8], eax
call edi
push ebx
call fcn.00470886
xor eax, eax
add esp, 4
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc8], eax
jne 0x409fa4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0xbc]
push edx
push 0x20019
push eax
mov eax, dword [ebp - 0xa0]
push 0x499ae0
push eax
call ebx
test eax, eax
je 0x409e12
mov ecx, dword [ebp - 0xa0]
push ecx
call edi
xor eax, eax
mov dword [ebp - 0xdc], vtable.tcomxException.0
mov dword [ebp - 0xd4], vtable.tStringBuffer.0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 3
mov ebx, dword [0x4b1ad4]
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xd8], 6
call fcn.0040b420
mov edx, dword [ebp - 0xcc]
push edx
mov ecx, 0x4985d4
call fcn.00409360
add esp, 4
push 0x4ac5b0
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 0
call fcn.0047816e
mov edx, dword [ebp - 0xa0]
lea ecx, [ebp - 0xb0]
push ecx
push 0x20019
push 0
push 0x499f88
push edx
call ebx
mov ebx, eax
mov eax, dword [ebp - 0xa0]
push eax
call edi
test ebx, ebx
je 0x409e44
mov byte [ebp - 0x99], 0
mov edx, dword [ebp - 0xbc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0xb4]
push ecx
push esi
push 0
push 0
push 0
push edx
call ebx
mov eax, dword [ebp - 0xbc]
push eax
call edi
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push 0
push eax
call ebx
mov ecx, dword [ebp - 0xb0]
push ecx
call edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e92
sub eax, edx
lea edx, [eax + eax + 2]
push edx
call fcn.004708c0
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409eb0
sub eax, edx
inc eax
push eax
push esi
push edi
call fcn.004713e2
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
cmp byte [ebp - 0x99], bl
je 0x409efc
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x78]
push 0x499b38
push edx
call fcn.0047157a
add esp, 0x10
jmp 0x409f1d
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa4]
mov ebx, esi
call fcn.0040a2d0
add esp, 4
test al, al
je 0x40a08d
xor ebx, ebx
push esi
call fcn.00470886
mov edx, dword [0x4983e8]
mov ecx, dword [0x4983e4]
mov eax, dword [0x4983ec]
add esp, 4
mov dword [ebp - 0x84], edx
lea edx, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
mov ecx, dword [0x4983f0]
push edx
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
call fcn.00470886
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
add esp, 4
lea eax, [ebp - 0xb8]
push eax
push ebx
push ecx
push edx
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
xor ecx, ecx
test eax, eax
sets cl
lea eax, [ecx - 1]
and eax, dword [ebp - 0xb8]
jmp 0x40a08f
mov dword [ebp - method.tcomxException.virtual_0], vtable.tcomxException.0
mov dword [ebp - 0xfc], vtable.tStringBuffer.0
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 2
mov ebx, dword [0x4b1ad4]
lea esi, [ebp - 0xfc]
mov dword [ebp - 0x100], 6
call fcn.0040b420
mov edx, dword [ebp - 0xf4]
push edx
mov ecx, 0x4985d4
call fcn.00409360
add esp, 4
push 0x4ac5b0
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 0
call fcn.0047816e
mov dword [ebp - 0xf0], vtable.tcomxException.0
mov dword [ebp - 0xe8], vtable.tStringBuffer.0
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], ecx
mov byte [ebp - 4], 1
mov ebx, dword [0x4b1ad4]
lea esi, [ebp - 0xe8]
mov dword [ebp - 0xec], 6
call fcn.0040b420
mov ecx, dword [ebp - 0xe0]
push ecx
mov ecx, 0x4985d4
call fcn.00409360
add esp, 4
push 0x4ac5b0
lea edx, [ebp - 0xf0]
push edx
mov byte [ebp - 4], 0
call fcn.0047816e
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x40a087
push eax
call fcn.00470886
add esp, 4
mov eax, 0x40a08d
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046eb41
mov esp, ebp
pop ebp
ret