Function at 0x4161e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, 0x419b64
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], 1
call fcn.00415b24
xor ebx, ebx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.00415b24
call dword [0x419018]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x41645c
push edi
push 0x402a78
push 0x419b50
lea eax, [ebp + 8]
push eax
call fcn.00415f6c
push eax
lea ecx, [ebp - 0x14]
call fcn.00415fd3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004107d0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004161af
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push dword [ebp - 0x14]
mov dword [ebp + 8], 0x80004005
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
jne 0x416303
push dword [ebp - 0x18]
lea ecx, [ebp - 4]
call fcn.00415da0
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x402a68
push dword [ebp - 8]
call ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.0041595c
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00415972
cmp dword [ebp - 0xc], 0
lea ecx, [ebp - 4]
jne 0x4162ec
push 0
call fcn.00415fab
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
je 0x4162f6
and dword [ebp + 8], 0
jmp 0x4162f6
push 0x406084
call fcn.00416042
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
call fcn.00415a9b
cmp dword [ebp + 8], 0
jge 0x4163b2
push 0x419b64
lea ecx, [ebp - 0xc]
call fcn.00415b24
push 0x402a58
lea ecx, [ebp - 0xc]
call fcn.00415f22
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.004161af
push 0x402a38
lea ecx, [ebp - 0xc]
call fcn.004161af
lea eax, [ebp - 8]
push eax
push edi
xor edi, edi
push edi
push dword [ebp - 0xc]
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4163e8
mov eax, 0x104
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.00415da0
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x402a68
push dword [ebp - 8]
call ebx
push dword [ebp - 4]
mov esi, eax
call fcn.0041595c
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00415972
cmp esi, edi
lea ecx, [ebp - 4]
jne 0x4163dc
push edi
call fcn.00415fab
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004107d0
mov edi, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov ebx, 0x4028b8
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x402a2c
lea ecx, [ebp - 4]
movsd dword es:[edi], dword [esi]
call fcn.00415b02
test eax, eax
jne 0x416401
mov esi, 0x40372c
jmp 0x41643f
push 0x406084
call fcn.00416042
jmp 0x4163a7
cmp dword [ebp - 0x20], edi
je 0x4163a7
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
mov dword [ebp + 8], 0x80004005
call fcn.004107d0
jmp 0x41645b
push 0x402a24
lea ecx, [ebp - 4]
call fcn.00415b02
test eax, eax
jne 0x416419
mov esi, 0x40371c
jmp 0x41643f
push 0x402a1c
lea ecx, [ebp - 4]
call fcn.00415b02
test eax, eax
jne 0x416431
mov esi, 0x40370c
jmp 0x41643f
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x416446
mov esi, 0x40373c
mov edi, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
push 4
pop ecx
mov edi, ebx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41645b
mov dword [ebp + 8], 0x80004005
pop edi
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x41646d
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], 0
je 0x41647c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004107d0
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004107d0
mov eax, dword [ebp + 8]
leave
ret 8