Function at 0x42f6c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4be4bc]
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 eax, dword [ebp + 8]
xor ebx, ebx
push 0x20a
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
mov dword [ebp - 0x434], 0x104
call sub.VCRUNTIME140.dll_memset
xor esi, esi
xor eax, eax
xor edi, edi
mov dword [ebp - 0x438], esi
add esp, 0xc
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
push eax
push 0x30019
push edi
push dword [ebp - 0x428]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42faad
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x448]
push eax
push edi
push edi
push edi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42f7cb
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x42f7cb
cmp eax, 0xaaaaaaa
ja 0x42face
push eax
lea ecx, [ebp - 0x444]
call fcn.0042f2b0
mov eax, dword [ebp - 0x43c]
mov esi, dword [ebp - 0x444]
mov edi, dword [ebp - 0x440]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x438], esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42f8d2
mov esi, dword [ebp - 0x430]
lea ecx, [ecx]
mov eax, dword [ebp - 0x434]
add eax, eax
cmp eax, 0x20a
jae 0x42fad3
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
cmp edi, esi
je 0x42f869
mov dword [edi + 0x10], ecx
xor eax, eax
lea ecx, [ebp - 0x21c]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f840
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402680
add edi, 0x18
mov dword [ebp - 0x440], edi
jmp 0x42f890
lea eax, [ebp - 0x21c]
push eax
push edi
lea ecx, [ebp - 0x444]
call fcn.0042dc60
mov eax, dword [ebp - 0x43c]
mov esi, eax
mov edi, dword [ebp - 0x440]
mov dword [ebp - 0x430], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x21c]
inc ebx
push eax
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42f800
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x438], esi
push 0
call fcn.004813f0
xor ebx, ebx
add esp, 4
test al, al
mov ecx, edi
mov eax, 0x2aaaaaab
setne bl
sub ecx, esi
imul ecx
lea ebx, [ebx*4 + 2]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x42f9f5
mov ebx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x42c]
cmp ebx, edi
je 0x42f930
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x42f921
mov eax, dword [ebx]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 0x18
cmp ebx, edi
jne 0x42f917
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x428]
lea ecx, [ebp - 0x424]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub ebx, eax
jmp 0x42f960
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x42f97e
movzx eax, word [ecx + ebx]
test ax, ax
je 0x42f97e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x42f960
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x42f9f5
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x42f9f5
lea eax, [ebp - 0x424]
cmp esi, eax
je 0x42f9f5
xor eax, eax
mov word [esi - 2], ax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
push eax
push 0x30019
push 0
lea eax, [ebp - 0x424]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f9f5
push esi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x438]
test ebx, ebx
je 0x42faad
mov esi, ebx
cmp esi, edi
je 0x42fa64
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x42fa4a
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x42fa40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fa9d
mov eax, edx
push ecx
push eax
call fcn.0048c947
add esp, 8
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
add esi, 0x18
cmp esi, edi
jne 0x42fa15
mov ecx, dword [ebp - 0x430]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x42faa3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42faa3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.0048c947
add esp, 8
mov eax, 1
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.0048cbb4
mov esp, ebp
pop ebp
ret
call fcn.00402340
call fcn.0048d26e
int3