Function at 0x42e950
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aab1
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4a5590]
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 ebx, edx
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x46c], edx
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 4], edi
test ecx, ecx
je 0x42ec9c
test edx, edx
je 0x42ec9c
test ebx, ebx
jne 0x42e9ca
mov ebx, 0x47ac50
lea eax, [ebp - 0x454]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ec9c
xor esi, esi
mov edi, edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 0x454]
mov dword [ebp - 0x478], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x42ea91
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x42ea30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ea30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0044fead
add esp, 0xc
test eax, eax
jne 0x42ea91
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040a200
push eax
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 1
call fcn.0042a050
mov byte [ebp - 4], 0
cmp dword [ebp - 0x43c], 8
jb 0x42ea91
push dword [ebp - 0x450]
call fcn.0044d5f9
add esp, 4
inc esi
test edi, edi
je 0x42e9f0
mov edi, dword [ebp - 0x460]
mov ebx, dword [ebp - 0x464]
push dword [ebp - 0x468]
mov ecx, edi
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov edx, edi
mov ecx, ebx
call fcn.004318a0
add esp, 8
mov esi, ebx
cmp ebx, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42ec8e
mov edi, edi
mov ebx, dword [ebp - 0x474]
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebx], ax
jne 0x42eb0c
xor ecx, ecx
jmp 0x42eb20
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eb11
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x438]
call fcn.0040a100
push esi
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.00409ac0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x42eb4e
mov eax, dword [eax]
lea ecx, [ebp - 0x458]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
cmp dword [ebp - 0x43c], 8
jb 0x42eb84
push dword [ebp - 0x450]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x424], 8
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
jb 0x42ebbb
push dword [ebp - 0x438]
call fcn.0044d5f9
add esp, 4
test bl, bl
je 0x42ec7d
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push dword [ebp - 0x46c]
mov dword [ebp - 0x470], 0x104
push dword [ebp - 0x458]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42ec6d
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], eax
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x42ec19
xor ecx, ecx
jmp 0x42ec31
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ec22
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a100
cmp dword [ebp - 0x428], 0
setne bl
cmp dword [ebp - 0x424], 8
jb 0x42ec65
push dword [ebp - 0x438]
call fcn.0044d5f9
add esp, 4
test bl, bl
jne 0x42ed07
push dword [ebp - 0x458]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x42ec83
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x18
cmp esi, edi
jne 0x42eae0
push dword [ebp - 0x454]
call ebx
mov esi, dword [ebp - 0x464]
xor bl, bl
test esi, esi
je 0x42ece9
mov eax, dword [ebp - 0x464]
cmp eax, edi
je 0x42ece0
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x42ecc0
push dword [esi]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x42ecb0
mov eax, dword [ebp - 0x464]
push eax
call fcn.0044d5f9
add esp, 4
mov al, bl
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.0044c2ed
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x454]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x458]
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040a200
mov ebx, dword [ebp - 0x468]
mov esi, eax
cmp ebx, esi
je 0x42ed66
cmp dword [ebx + 0x14], 8
jb 0x42ed4b
push dword [ebx]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push esi
mov ecx, ebx
mov word [ebx], ax
call fcn.00409c10
cmp dword [ebp - 0x43c], 8
jb 0x42ed7d
push dword [ebp - 0x450]
call fcn.0044d5f9
add esp, 4
mov esi, dword [ebp - 0x464]
mov bl, 1
jmp 0x42ec9e