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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x30], eax
push 0
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x4bafc2
mov dword [esp + 0x2c], 0
mov eax, edi
or eax, 8
lea ecx, [esp + 0x2c]
push ecx
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4bafc9
xor esi, esi
cmp eax, 2
je 0x4bb1cf
mov esi, eax
jmp 0x4bb1cf
xor esi, esi
jmp 0x4bb1cf
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push ebx
call fcn.0065e7c2
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4bb1e4
mov ecx, eax
cmp eax, 5
jae 0x4bb00e
lea esi, [esp + 0x20]
mov byte [esp + 0x2b], cl
mov dword [esp + 4], esi
test ecx, ecx
jne 0x4bb04a
jmp 0x4bb05d
mov dword [esp + 8], ecx
lea edi, [ecx + 8]
and edi, 0xfffffff8
js 0x4bb1ed
lea eax, [edi + edi]
push eax
call fcn.0064173e
add esp, 4
mov esi, eax
mov dword [esp + 0x20], eax
or edi, 0x80000000
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, ecx
add eax, ecx
push eax
push ebx
push esi
mov edi, ecx
call fcn.006452d0
mov ecx, edi
add esp, 0xc
mov word [esi + ecx*2], 0
mov eax, dword [esp + 4]
mov al, byte [eax + 0xb]
test al, al
js 0x4bb099
test al, al
je 0x4bb0b5
movzx ecx, al
lea edx, [esp + 0x20]
cmp word [edx + ecx*2 - 2], 0x5c
je 0x4bb093
lea ecx, [esp + 0x20]
push 0x5c
call fcn.0048f0c2
mov eax, dword [esp + 4]
mov al, byte [eax + 0xb]
test al, al
jns 0x4bb0b7
jmp 0x4bb0af
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4bb0af
mov edx, dword [esp + 0x20]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x4bb081
jmp 0x4bb093
mov ebx, dword [esp + 0x24]
jmp 0x4bb0ba
xor eax, eax
movzx ebx, al
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
lea esi, [esp + 0x10]
lea edi, [esp + 0x20]
jmp 0x4bb0f7
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004baf60
add esp, 0xc
test eax, eax
jne 0x4bb189
mov dword [esp + 0xc], 0x104
push 0x104
push esi
call fcn.004a8250
add esp, 8
mov ecx, dword [esp + 0x2c]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4bb189
mov ecx, esi
push 0
push dword [esp + 0x10]
call fcn.0048eb74
mov ecx, edi
push 0
push ebx
call fcn.0048eb74
movzx eax, byte [esp + 0x1b]
mov edx, esi
test al, al
jns 0x4bb167
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, edi
push eax
push edx
call fcn.0048edf2
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
mov eax, edi
jns 0x4bb0e0
mov eax, dword [esp + 0x20]
jmp 0x4bb0e0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
cmp byte [esp + 0x1b], 0
jns 0x4bb1b9
push dword [esp + 0x10]
call fcn.006417be
add esp, 4
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x4bb1cf
push dword [esp + 0x20]
call fcn.006417be
add esp, 4
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.0048da34
call fcn.00656a75
int3