Function at 0x418520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce1a5
mov eax, dword fs:[0]
push eax
sub esp, 0x3fc
mov eax, dword [0x52cc80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x400], esi
mov dword [ebp - 4], 1
mov eax, dword [0x531d90]
xor ebx, ebx
cmp byte [0x531d94], bl
sete bl
imul eax, eax
add ebx, 0x80000001
and eax, 0x8000000f
jns 0x418582
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xc
jne 0x41858d
dec dword [0x531f74]
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3f8], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x3f0], 0
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3e8], 0
mov byte [ebp - 4], 6
mov eax, dword [0x52c6d8]
mov ecx, 0x52c6d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e0], eax
mov byte [ebp - 4], 7
mov eax, 0x511460
test eax, 0xffff0000
jne 0x418832
movzx esi, ax
mov ecx, esi
call fcn.00401b90
test eax, eax
je 0x41860e
push esi
push eax
lea ecx, [ebp - 0x3e0]
call fcn.00402900
mov esi, dword [ebp - 0x400]
mov byte [ebp - 4], 8
lea eax, [ebp - 0x3e0]
push eax
lea edx, [ebp - 0x3f8]
lea ecx, [ebp - 0x3f4]
call fcn.0040e9b0
mov byte [ebp - 4], 9
push 0x531f54
mov edx, eax
lea ecx, [ebp - 0x3e4]
call fcn.0040e9b0
mov byte [ebp - 4], 0xa
push 0x5113f8
mov edx, eax
lea ecx, [ebp - 0x408]
call fcn.00417410
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x404]
call fcn.0040e9b0
add esp, 0x10
mov byte [ebp - 4], 0xc
push 0x20019
push dword [eax]
lea ecx, [ebp - 0x3f0]
push ebx
call fcn.00418210
test eax, eax
setne byte [ebp - 0x3d9]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x404]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4186ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x408]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4186dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x3e4]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418700
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x3f4]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418723
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x3e0]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418746
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x3d9], 0
mov edi, dword [ebp - 0x3f0]
jne 0x418864
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x3fc]
push eax
lea eax, [ebp - 0x3e4]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x3fc], 0
push edi
mov dword [ebp - 0x3f4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418847
cmp dword [ebp - 0x3e4], 4
jne 0x418847
test edi, edi
je 0x4187b6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x3f0], edi
mov eax, dword [ebp - 0x3fc]
mov dword [esi], eax
mov esi, dword [0x531d90]
mov dword [ebp - 0x3ec], 0
lea eax, [esi + 1]
imul eax, esi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4187e0
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 3
jne 0x418829
xor edx, edx
jmp 0x4187f0
mov ecx, dword [ebp + edx*4 - 0x3cc]
add ecx, dword [ebp + edx*4 - 0x3d0]
add edx, 4
add ecx, dword [ebp + edx*4 - 0x3e4]
add ecx, dword [ebp + edx*4 - 0x3e8]
lea eax, [ecx*8]
sub eax, ecx
lea esi, [esi + eax*8]
cmp edx, 0x3c8
jb 0x4187f0
mov dword [0x531d90], esi
mov byte [ebp - 0x3d9], 1
jmp 0x41886b
push 0x511460
lea ecx, [ebp - 0x3e0]
call fcn.00403540
jmp 0x418614
test edi, edi
je 0x41885a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x3f0], edi
mov dword [ebp - 0x3ec], 0
mov byte [ebp - 0x3d9], 0
mov byte [ebp - 4], 3
test edi, edi
je 0x418884
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3f0], 0
mov dword [ebp - 0x3ec], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3f8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4188b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4188d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4188f2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x3d9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a992a
mov esp, ebp
pop ebp
ret