Function at 0x40ec00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x466910]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x14]
push 0x45804c
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 1
call fcn.00406970
mov ecx, dword [ebp + 8]
mov eax, 0x20019
cmp dword [ecx + 0x10], ebx
je 0x40ec64
mov eax, 0x20119
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40eccd
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40edf9
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push ecx
call edi
cmp eax, ebx
je 0x40ed46
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40edf9
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x40ed53
cmp eax, 2
jne 0x40ed5a
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40edae
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ed86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40edf9
push eax
call fcn.0041595d
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
mov esi, eax
push ebx
push esi
call fcn.00437170
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push ecx
push edx
call edi
cmp eax, ebx
je 0x40ee0f
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call fcn.00401570
lea ecx, [ebp + 0x10]
call fcn.00401570
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x14]
push esi
push 0x457e38
push edx
call fcn.00404600
add esp, 0xc
push esi
call fcn.00415952
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.00401570
lea ecx, [ebp + 0x10]
call fcn.00401570
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14