Function at 0x4ae1a0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b05cd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6244f8]
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 edi, ecx
cmp dword [edi + 0x28], 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
je 0x4ae3ea
mov eax, dword [edi]
xor esi, esi
cmp dword [edi + 0x3c], esi
cmovne esi, ecx
mov ecx, edi
mov dword [ebp - 0x28], esi
call dword [eax + 0x88]
test eax, eax
jne 0x4ae20d
push esi
push ebx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004ad100
jmp 0x4ae550
mov esi, dword [ebp + 0xc]
movzx eax, si
add eax, 0xfffffffe
cmp eax, 0x63
ja case.0x4ae226.4
movzx eax, byte [eax + 0x4ae580]
jmp dword [eax*4 + 0x4ae570]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, edi
test eax, eax
jne 0x4ae264
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.004ad100
jmp 0x4ae550
push dword [ebp - 0x28]
push ebx
push esi
call fcn.004ad100
jmp 0x4ae550
lea ecx, [ebp - 0x24]
call fcn.00404c17
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ae3cd
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
shr eax, 1
push eax
call fcn.004afa80
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040bcbe
test esi, esi
jne 0x4ae3ca
mov eax, dword [ebp + 0xc]
cmp ax, 0x65
jne 0x4ae331
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
push eax
push 0x5d21c0
push dword [ebp - 0x24]
call fcn.0044f0b0
add esp, 0x10
cmp eax, 2
je 0x4ae312
push dword [ebp - 0x28]
push ebx
push 0x65
jmp 0x4ae3d2
mov ecx, dword [ebp - 0x14]
mov esi, 1
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], ecx
lea ecx, [ebp - 0x24]
mov dword [ebx], eax
call fcn.00404ca9
mov eax, esi
jmp 0x4ae550
cmp ax, 0x64
jne 0x4ae3ab
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
push 0x5d21d0
push dword [ebp - 0x24]
call fcn.0044f0b0
add esp, 0x18
cmp eax, 4
je 0x4ae380
push dword [ebp - 0x28]
push ebx
push 0x64
jmp 0x4ae3d2
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov dword [ebx], eax
mov esi, 1
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
call fcn.00404ca9
mov eax, esi
jmp 0x4ae550
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.00465070
lea ecx, [ebp - 0x24]
mov esi, 1
call fcn.00404ca9
mov eax, esi
jmp 0x4ae550
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x28]
push ebx
push esi
mov ecx, edi
call fcn.004ad100
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00404ca9
mov eax, esi
jmp 0x4ae550
xor eax, eax
cmp dword [edi + 0x40], eax
cmovne eax, ecx
mov ecx, edi
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
call dword [eax + 0x88]
test eax, eax
jne 0x4ae40a
xor eax, eax
jmp 0x4ae550
push dword [ebp - 0x30]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
call fcn.004aff50
test eax, eax
je 0x4ae43b
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4ae431
cmp dword [edi + 0x34], 0
jne 0x4ae431
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, 1
jmp 0x4ae550
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
movzx eax, dx
add eax, 0xfffffffe
cmp eax, 0x63
ja case.0x4ae457.6
movzx eax, byte [eax + 0x4ae5fc]
jmp dword [eax*4 + 0x4ae5e4]
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push edx
mov ecx, edi
call fcn.004ad100
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
jmp case.0x4ae457.6
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
jmp case.0x4ae457.6
push edx
mov ecx, edi
call fcn.004afe40
push eax
push ebx
push 3
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
jmp case.0x4ae457.6
lea ecx, [ebp - 0x14]
call fcn.00404c17
push dword [ebx + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push dword [ebx]
push 0x5d21c0
push eax
call fcn.00404fce
add esp, 0x10
jmp 0x4ae51e
lea ecx, [ebp - 0x14]
call fcn.00404c17
push dword [ebx + 0xc]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push 0x5d21d0
push eax
call fcn.00404fce
add esp, 0x18
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push esi
push dword [edi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
call fcn.00404ca9
mov ecx, dword [ebp - 0x28]
xor eax, eax
test ecx, ecx
sete al
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.0056e41f
mov esp, ebp
pop ebp
ret 0x10