Function at 0x42e6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1f08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4fd11c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4fd0e8]
mov ecx, 0x4fd0e8
mov dword [ebp - 0x18], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
push 0x4ab940
push dword [ebp + 0x14]
call fcn.0042c110
add esp, 8
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42e766
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [eax], 0x14
jmp 0x42e8da
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x14]
call fcn.0040128f
mov esi, dword [ebp - 0x18]
test esi, esi
jns 0x42e796
push 0x80070057
call fcn.00401f0a
mov eax, dword [ebp - 0x14]
mov edi, 1
mov ecx, dword [eax - 8]
mov edx, edi
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x42e7b8
push esi
lea ecx, [ebp - 0x14]
call fcn.00401497
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
push dword [ecx - 8]
push ecx
call fcn.00450cb0
mov edx, eax
add esp, 8
test edx, edx
js 0x42e78c
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x42e78c
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax + edx*2], cx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42e827
mov ecx, dword [ebp + 0x14]
push 0x4ab940
push ecx
call fcn.0042c110
mov eax, dword [ebp + 0x18]
add esp, 8
mov dword [eax], 0x16
xor edi, edi
jmp 0x42e8da
mov esi, dword [ebp - 0x14]
sub edi, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, edi
jge 0x42e841
push 0
lea ecx, [ebp - 0x14]
call fcn.00401497
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x42e849
xor edx, edx
jmp 0x42e885
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e850
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x42e86e
xor edx, edx
jmp 0x42e885
add edi, edi
mov eax, edi
call fcn.004511f0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00427a70
mov edx, eax
cmp byte [edx], 0
jne 0x42e88e
xor ecx, ecx
jmp 0x42e89c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e893
sub ecx, esi
push ecx
mov ecx, dword [ebp + 0x14]
push edx
call fcn.004018c0
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.00450cb0
mov edx, eax
add esp, 8
test edx, edx
js 0x42e78c
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x42e78c
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax + edx*2], cx
lea edi, [ecx + 1]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42e8fe
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c53d
mov esp, ebp
pop ebp
ret 0x18