Function at 0x42de1a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8fc
mov eax, dword [0x46700c]
xor eax, esp
mov dword [esp + reloc.ADVAPI32.dll_TraceMessage], eax
and dword [esp + 8], 0
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
xor edi, edi
lea ecx, reloc.ADVAPI32.dll_TraceMessage
or esi, reloc.ADVAPI32.dll_TraceMessage
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x42de92
xor ecx, ecx
mov edx, 0x4019e4
cmp ecx, edx
je 0x42de92
test eax, eax
push edx
lea ecx, reloc.ADVAPI32.dll_TraceMessage
mov eax, 0x105
je 0x42de7e
push 0x401860
jmp 0x42de83
push 0x4018d8
call fcn.0042c95b
pop ecx
pop ecx
test eax, eax
js 0x42e148
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e148
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42e0ec
mov eax, dword [esp + 0x10]
and dword [esp + 0x30], edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x42df71
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x42df6e
push 0x20a
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov ecx, eax
mov eax, dword [ebx]
mov dword [eax + esi*4], ecx
mov eax, dword [ebx]
cmp dword [eax + esi*4], 0
jne 0x42df63
xor edi, edi
test esi, esi
jle 0x42df52
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x42df4d
push dword [eax + edi*4]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
pop ecx
inc edi
cmp edi, esi
jl 0x42df35
cmp dword [ebx], 0
je 0x42df63
push dword [ebx]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
and dword [ebx], 0
pop ecx
inc esi
cmp esi, dword [esp + 0x10]
jl 0x42df14
mov edi, dword [esp + 0x18]
or esi, reloc.ADVAPI32.dll_TraceMessage
cmp dword [ebx], 0
je 0x42e13e
lea eax, [esp + 0x20]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
push dword [esp + 0x30]
mov dword [esp + 0x40], 0x208
mov dword [esp + 0x3c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x42e0ec
mov ecx, 0x4019ec
lea eax, [esp + 0xd8]
test eax, eax
je 0x42dffc
xor eax, eax
cmp eax, ecx
je 0x42dffc
cmp dword [ebp + 8], eax
push ecx
lea ecx, [esp + 0xdc]
mov eax, 0x104
je 0x42dfe8
push 0x401860
jmp 0x42dfed
push 0x4018d8
call fcn.0042c95b
pop ecx
pop ecx
test eax, eax
js 0x42e098
lea eax, [esp + 0xd8]
push eax
lea ebx, [esp + 0x3c]
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042dbbe
mov eax, edi
call fcn.0044060c
and dword [esp + 0x28], 0
and dword [esp + 0x2c], 0
mov ebx, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ebx
mov edi, edx
test eax, eax
je 0x42e06b
push dword [ebp + 8]
mov esi, eax
call fcn.0042dc90
test eax, eax
jne 0x42e05d
push 0x4019a8
push 2
call fcn.004400fc
push dword [ebp + 8]
mov ebx, esi
call fcn.0042dd39
mov ebx, dword [esp + 0x34]
cmp edi, dword [esp + 0x2c]
jb 0x42e090
ja 0x42e06b
cmp ebx, dword [esp + 0x28]
jb 0x42e090
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [esp + 0x18]
mov esi, dword [esi + edi*4]
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov eax, 0x104
call fcn.0042c88c
inc edi
mov dword [esp + 0x18], edi
jmp 0x42e098
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, eax
jae 0x42e0f0
lea eax, [esp + 0x20]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x3c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, 0x4019ec
test eax, eax
je 0x42dfbe
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x42e133
cmp dword [ebx], 0
je 0x42e133
mov esi, edi
cmp edi, eax
jae 0x42e120
mov ecx, dword [ebx]
cmp dword [ecx + esi*4], 0
je 0x42e11b
push dword [ecx + esi*4]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebx]
and dword [eax + esi*4], 0
mov eax, dword [esp + 0x14]
pop ecx
inc esi
cmp esi, eax
jb 0x42e0ff
test edi, edi
jne 0x42e135
cmp dword [ebx], edi
je 0x42e13b
push dword [ebx]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
and dword [ebx], edi
pop ecx
test edi, edi
jle 0x42e13b
mov esi, edi
jmp 0x42e13e
or esi, reloc.ADVAPI32.dll_TraceMessage
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + reloc.ADVAPI32.dll_TraceMessage]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004655f1
mov esp, ebp
pop ebp
ret 8