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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aaf1
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 0x42ecdc
test edx, edx
je 0x42ecdc
test ebx, ebx
jne 0x42ea0a
mov ebx, 0x47abfc
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 0x42ecdc
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 0x42ead1
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x42ea70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ea70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0044feed
add esp, 0xc
test eax, eax
jne 0x42ead1
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040a210
push eax
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 1
call fcn.0042a090
mov byte [ebp - 4], 0
cmp dword [ebp - 0x43c], 8
jb 0x42ead1
push dword [ebp - 0x450]
call fcn.0044d639
add esp, 4
inc esi
test edi, edi
je 0x42ea30
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.004318e0
add esp, 8
mov esi, ebx
cmp ebx, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42ecce
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 0x42eb4c
xor ecx, ecx
jmp 0x42eb60
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eb51
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x438]
call fcn.0040a110
push esi
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.00409ad0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x42eb8e
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 0x42ebc4
push dword [ebp - 0x450]
call fcn.0044d639
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 0x42ebfb
push dword [ebp - 0x438]
call fcn.0044d639
add esp, 4
test bl, bl
je 0x42ecbd
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 0x42ecad
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], eax
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x42ec59
xor ecx, ecx
jmp 0x42ec71
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ec62
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a110
cmp dword [ebp - 0x428], 0
setne bl
cmp dword [ebp - 0x424], 8
jb 0x42eca5
push dword [ebp - 0x438]
call fcn.0044d639
add esp, 4
test bl, bl
jne 0x42ed47
push dword [ebp - 0x458]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x42ecc3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x18
cmp esi, edi
jne 0x42eb20
push dword [ebp - 0x454]
call ebx
mov esi, dword [ebp - 0x464]
xor bl, bl
test esi, esi
je 0x42ed29
mov eax, dword [ebp - 0x464]
cmp eax, edi
je 0x42ed20
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x42ed00
push dword [esi]
call fcn.0044d639
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 0x42ecf0
mov eax, dword [ebp - 0x464]
push eax
call fcn.0044d639
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.0044c32d
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.0040a210
mov ebx, dword [ebp - 0x468]
mov esi, eax
cmp ebx, esi
je 0x42eda6
cmp dword [ebx + 0x14], 8
jb 0x42ed8b
push dword [ebx]
call fcn.0044d639
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.00409c20
cmp dword [ebp - 0x43c], 8
jb 0x42edbd
push dword [ebp - 0x450]
call fcn.0044d639
add esp, 4
mov esi, dword [ebp - 0x464]
mov bl, 1
jmp 0x42ecde