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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49580b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4bf434]
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 0x43cead
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 0x43cbcb
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x43cbcb
cmp eax, 0xaaaaaaa
ja 0x43cece
push eax
lea ecx, [ebp - 0x444]
call fcn.00407360
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 0x43ccd2
mov esi, dword [ebp - 0x430]
lea ecx, [ecx]
mov eax, dword [ebp - 0x434]
add eax, eax
cmp eax, 0x20a
jae 0x43ced3
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
cmp edi, esi
je 0x43cc69
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 0x43cc40
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407630
add edi, 0x18
mov dword [ebp - 0x440], edi
jmp 0x43cc90
lea eax, [ebp - 0x21c]
push eax
push edi
lea ecx, [ebp - 0x444]
call fcn.0043b5e0
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 0x43cc00
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x438], esi
push 0
call fcn.00478770
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 0x43cdf5
mov ebx, dword [ebp - 0x438]
mov esi, dword [ebp - 0x42c]
cmp ebx, edi
je 0x43cd30
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x43cd21
mov eax, dword [ebx]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 0x18
cmp ebx, edi
jne 0x43cd17
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 0x43cd60
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x43cd7e
movzx eax, word [ecx + ebx]
test ax, ax
je 0x43cd7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x43cd60
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x43cdf5
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x43cdf5
lea eax, [ebp - 0x424]
cmp esi, eax
je 0x43cdf5
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 0x43cdf5
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 0x43cead
mov esi, ebx
cmp esi, edi
je 0x43ce64
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x43ce4a
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x43ce40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ce9d
mov eax, edx
push ecx
push eax
call fcn.00488034
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 0x43ce15
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 0x43cea3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43cea3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.00488034
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.00488042
mov esp, ebp
pop ebp
ret
call fcn.00401d10
call fcn.004889a7
int3