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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1834
call fcn.004aea90
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [esp + 0x2c], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x1030], 0
push 0x3ff
push dword [ebp + 0x28]
mov word [esp + 0x838], ax
lea eax, [esp + 0x38]
push eax
call fcn.004a1eb4
add esp, 0xc
lea ecx, [esp + 0x30]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x82e], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e440
sub ecx, edx
sar ecx, 1
je 0x42e460
cmp word [esp + ecx*2 + 0x2e], 0x5c
jne 0x42e460
xor eax, eax
mov word [esp + ecx*2 + 0x2e], ax
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x4d98d8]
mov eax, dword [eax + 0xd0]
or eax, 9
push eax
push 0
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e7c5
push eax
push eax
push eax
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42e7bb
mov eax, dword [esp + 0x20]
mov ebx, dword [0x4d98d8]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
test eax, eax
je 0x42e5eb
cmp edx, 2
je 0x42e5eb
mov dword [esp + 0x1034], 0
mov dword [esp + 0x1038], 0
xor ecx, ecx
mov dword [esp + 0x1c], 0x400
push ecx
push ecx
mov word [esp + 0x838], cx
dec eax
lea ecx, [esp + 0x1038]
mov dword [esp + 0x20], eax
push ecx
push 0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x844]
push ecx
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x42e5dc
lea eax, [esp + 0x28]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x75
je 0x42e585
lea eax, [esp + 0x14]
push eax
push esi
push 3
call fcn.00426700
mov edx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x10], esi
test edx, edx
je 0x42e5a8
cmp esi, 6
jne 0x42e68a
cmp edx, edi
je 0x42e5b6
mov eax, dword [ebp + 0x10]
push dword [esp + 0xc]
mov dword [eax], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push esi
push 2
call fcn.00426700
mov ecx, dword [edi + 0x14]
mov esi, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
cmp edx, ecx
je 0x42e582
jmp 0x42e557
cmp esi, 1
je 0x42e5b6
cmp esi, 6
jne 0x42e6b1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42e5d1
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.0042d800
test al, al
jne 0x42e6ad
add dword [ebx + 8], 1
mov esi, dword [ebp + 8]
adc dword [ebx + 0xc], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42e4ee
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42e7bb
cmp edx, 1
jne 0x42e606
cmp byte [ebp + 0x1c], 0
je 0x42e7bb
mov dword [esp + 0x1030], 0xfffffffe
lea ecx, [esp + 0x1034]
mov dword [esp + 0x1c], 0x400
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
dec eax
push ecx
lea ecx, [esp + 0x844]
mov dword [esp + 0x2c], eax
push ecx
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42e7d6
cmp dword [ebp + 0x18], 1
je 0x42e733
lea eax, [esp + 0x28]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x75
jne 0x42e6c6
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
push 2
call fcn.00426700
mov ecx, dword [edi + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
cmp eax, ecx
je 0x42e665
jmp 0x42e6dd
cmp edx, edi
jne 0x42e568
mov eax, dword [ebp + 0xc]
push dword [esp + 0xc]
mov byte [eax], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea eax, [esp + 0x14]
push eax
push esi
push 3
call fcn.00426700
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
test eax, eax
je 0x42e708
cmp esi, 6
jne 0x42e7e3
cmp eax, edi
je 0x42e712
mov ecx, dword [ebp + 0x10]
push dword [esp + 0xc]
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp esi, 1
je 0x42e712
cmp esi, 6
jne 0x42e6b1
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x42e729
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0042d800
test al, al
jne 0x42e6ad
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
jmp 0x42e736
mov esi, dword [ebp + 0x14]
cmp byte [ebp + 0x1c], 0
je 0x42e7d3
cmp word [esp + 0x30], 0
lea eax, [esp + 0x830]
push eax
mov ecx, 0x4b70dc
mov eax, 0x4cb20c
cmove eax, ecx
push eax
lea eax, [esp + 0x38]
push eax
push 0x4cc9b0
lea eax, [esp + 0x1050]
push 0x400
push eax
call fcn.0047c9c0
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1058]
add esp, 0x18
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
mov ecx, edi
push esi
call fcn.0042e3e0
mov dword [esp + 0x10], eax
cmp eax, 1
jne 0x42e806
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x42e7bb
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x42e7d6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42e7bb
jmp 0x42e611
cmp eax, edi
jne 0x42e6ee
mov eax, dword [ebp + 0xc]
push dword [esp + 0xc]
mov byte [eax], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24