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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d88c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x65afd4]
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 esi, edx
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 8]
push ecx
push 0x64
lea ecx, [ebp - 0x48]
call fcn.0042f0c0
xor edx, edx
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
push edx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x42e893
cmp eax, 0xea
jne 0x42e724
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x42e893
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.0042f670
mov edx, dword [ebp - 0x2c]
jmp 0x42e6d0
mov edx, dword [ebp - 0x2c]
test eax, eax
jne 0x42e6d0
inc dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x50]
push 0x20019
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x54], 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e86f
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x42e780
push ecx
call ebx
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
test eax, eax
jne 0x42e86f
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x38]
call fcn.0042e480
test al, al
je 0x42e861
cmp dword [ebp - 0x58], 0
jbe 0x42e861
lea ecx, [ebp - 0x28]
call fcn.00407bea
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
call fcn.0042e1c0
test al, al
je 0x42e805
cmp dword [ebp - 0x18], 0
je 0x42e805
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp dword [esi + 8], eax
je 0x42e7fd
mov ecx, eax
call fcn.00413b70
add dword [esi + 4], 0x18
jmp 0x42e805
push eax
mov ecx, esi
call fcn.0042f3b0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 4
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push str.release
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e855
cmp dword [ebp - 0x60], 4
jne 0x42e855
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x42e855
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x42e849
mov dword [eax], ecx
add dword [edi + 4], 4
jmp 0x42e855
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov ecx, edi
call fcn.00417570
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004076c4
push edi
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.0042e680
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x42e884
push eax
call ebx
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
jmp 0x42e6d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x42e8e2
mov ecx, dword [ebp - 0x40]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x42e8c3
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e8fe
push ecx
push edx
call fcn.005a8d24
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
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.005a8a56
mov esp, ebp
pop ebp
ret
call fcn.005b0079
int3