Function at 0x4123b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, 0x415b80
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], 1
call fcn.00411cf5
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.00411cf5
call dword [0x415018]
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 0x41262d
push edi
push 0x402d08
push 0x415bdc
lea eax, [ebp + 8]
push eax
call fcn.0041213d
push eax
lea ecx, [ebp - 0x14]
call fcn.004121a4
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004066d0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00412380
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 0x4124d4
push dword [ebp - 0x18]
lea ecx, [ebp - 4]
call fcn.00411f71
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x402cf8
push dword [ebp - 8]
call ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.00411b2d
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00411b43
cmp dword [ebp - 0xc], 0
lea ecx, [ebp - 4]
jne 0x4124bd
push 0
call fcn.0041217c
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
je 0x4124c7
and dword [ebp + 8], 0
jmp 0x4124c7
push 0x40532a
call fcn.00412213
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
call fcn.00411c6c
cmp dword [ebp + 8], 0
jge 0x412583
push 0x415b80
lea ecx, [ebp - 0xc]
call fcn.00411cf5
push 0x402ce8
lea ecx, [ebp - 0xc]
call fcn.004120f3
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00412380
push 0x402cc8
lea ecx, [ebp - 0xc]
call fcn.00412380
lea eax, [ebp - 8]
push eax
push edi
xor edi, edi
push edi
push dword [ebp - 0xc]
push SysReAllocString
call esi
test eax, eax
jne 0x4125b9
mov eax, 0x104
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.00411f71
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x402cf8
push dword [ebp - 8]
call ebx
push dword [ebp - 4]
mov esi, eax
call fcn.00411b2d
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00411b43
cmp esi, edi
lea ecx, [ebp - 4]
jne 0x4125ad
push edi
call fcn.0041217c
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004066d0
mov edi, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov ebx, 0x402b80
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x402cbc
lea ecx, [ebp - 4]
movsd dword es:[edi], dword [esi]
call fcn.00411cd3
test eax, eax
jne 0x4125d2
mov esi, 0x403990
jmp 0x412610
push 0x40532a
call fcn.00412213
jmp 0x412578
cmp dword [ebp - 0x20], edi
je 0x412578
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
mov dword [ebp + 8], 0x80004005
call fcn.004066d0
jmp 0x41262c
push 0x402cb4
lea ecx, [ebp - 4]
call fcn.00411cd3
test eax, eax
jne 0x4125ea
mov esi, 0x403980
jmp 0x412610
push 0x402cac
lea ecx, [ebp - 4]
call fcn.00411cd3
test eax, eax
jne 0x412602
mov esi, 0x403970
jmp 0x412610
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x412617
mov esi, 0x4039a0
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 0x41262c
mov dword [ebp + 8], 0x80004005
pop edi
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x41263e
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], 0
je 0x41264d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004066d0
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004066d0
mov eax, dword [ebp + 8]
leave
ret 8