Function at 0x4150eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, 0x418b48
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], 1
call fcn.00414905
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.00414905
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [0x40138c]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x41534c
push edi
push 0x402dd8
push 0x418bd8
lea eax, [ebp + 8]
push eax
call fcn.00414df2
push eax
lea ecx, [ebp - 0x14]
call fcn.00414e6a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00407204
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004150ae
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 0x80000002
call esi
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
jne 0x4151ff
push dword [ebp - 0x18]
lea ecx, [ebp - 4]
call fcn.00414bc9
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x402dc8
push dword [ebp - 8]
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.00414853
cmp dword [ebp - 0xc], 0
lea ecx, [ebp - 4]
jne 0x4151e8
push 0
call fcn.00414e38
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
je 0x4151f2
and dword [ebp + 8], 0
jmp 0x4151f2
push 0x405d0a
call fcn.00414eea
push dword [ebp - 8]
call dword [entry0]
and dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
call fcn.00414817
cmp dword [ebp + 8], 0
jge 0x4152a2
push 0x418b48
lea ecx, [ebp - 0xc]
call fcn.00414905
push 0x402db8
lea ecx, [ebp - 0xc]
call fcn.00414d9d
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.004150ae
push 0x402d98
lea ecx, [ebp - 0xc]
call fcn.004150ae
lea eax, [ebp - 8]
push eax
push edi
xor edi, edi
push edi
push dword [ebp - 0xc]
push 0x80000000
call esi
test eax, eax
jne 0x4152d8
mov eax, 0x104
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.00414bc9
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x402dc8
push dword [ebp - 8]
call ebx
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00414853
lea ecx, [ebp - 4]
cmp esi, edi
jne 0x4152cc
push edi
call fcn.00414e38
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00407204
mov edi, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov ebx, 0x402bb0
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x402d8c
lea ecx, [ebp - 4]
movsd dword es:[edi], dword [esi]
call fcn.004148da
test eax, eax
jne 0x4152f1
mov esi, 0x403a60
jmp 0x41532f
push 0x405d0a
call fcn.00414eea
jmp 0x415297
cmp dword [ebp - 0x20], edi
je 0x415297
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
mov dword [ebp + 8], 0x80004005
call fcn.00407204
jmp 0x41534b
push 0x402d84
lea ecx, [ebp - 4]
call fcn.004148da
test eax, eax
jne 0x415309
mov esi, 0x403a50
jmp 0x41532f
push 0x402d7c
lea ecx, [ebp - 4]
call fcn.004148da
test eax, eax
jne 0x415321
mov esi, 0x403a40
jmp 0x41532f
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x415336
mov esi, 0x403a70
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 0x41534b
mov dword [ebp + 8], 0x80004005
pop edi
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x41535d
push dword [ebp - 0x10]
call dword [0x401398]
cmp dword [ebp - 8], 0
je 0x41536c
push dword [ebp - 8]
call dword [entry0]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407204
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00407204
mov eax, dword [ebp + 8]
leave
ret 8