Function at 0x495bb0
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 eax, dword [0x63a1e8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
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 0x495c12
mov eax, edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
or eax, 8
push ecx
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x495c19
xor esi, esi
cmp eax, 2
je 0x495e0d
mov esi, eax
jmp 0x495e0d
xor esi, esi
jmp 0x495e0d
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push ebx
call fcn.005ab4c4
add esp, 4
cmp eax, 0x7ffffff0
jae 0x495e22
mov ecx, eax
cmp eax, 5
jae 0x495c5e
lea esi, [esp + 0x20]
test ecx, ecx
mov byte [esp + 0x2b], cl
mov dword [esp + 4], esi
jne 0x495c9a
jmp 0x495cad
lea edi, [ecx + 8]
mov dword [esp + 8], ecx
and edi, 0xfffffff8
js 0x495e2b
lea eax, [edi + edi]
push eax
call fcn.00590936
add esp, 4
mov ecx, dword [esp + 8]
mov esi, eax
mov dword [esp + 0x20], eax
or edi, 0x80000000
lea eax, [esp + 0x20]
mov dword [esp + 0x28], edi
mov dword [esp + 4], eax
mov dword [esp + 0x24], ecx
mov eax, ecx
add eax, ecx
push eax
push ebx
push esi
mov edi, ecx
call fcn.00594260
mov ecx, edi
add esp, 0xc
mov eax, dword [esp + 4]
mov word [esi + ecx*2], 0
mov al, byte [eax + 0xb]
test al, al
js 0x495ce9
test al, al
je 0x495d05
movzx ecx, al
lea edx, [esp + 0x20]
cmp word [edx + ecx*2 - 2], 0x5c
je 0x495ce3
lea ecx, [esp + 0x20]
push 0x5c
call fcn.00478e2c
mov eax, dword [esp + 4]
mov al, byte [eax + 0xb]
test al, al
jns 0x495d07
jmp 0x495cff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x495cff
mov edx, dword [esp + 0x20]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x495cd1
jmp 0x495ce3
mov ebx, dword [esp + 0x24]
jmp 0x495d0a
xor eax, eax
movzx ebx, al
lea esi, [esp + 0x10]
lea edi, [esp + 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
jmp 0x495d47
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00495bb0
add esp, 0xc
test eax, eax
jne 0x495dc7
mov dword [esp + 0xc], 0x104
push 0x104
push esi
call fcn.00489560
add esp, 8
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x495dc7
mov ecx, esi
push 0
push dword [esp + 0x10]
call fcn.0047889e
mov ecx, edi
push 0
push ebx
call fcn.0047889e
movzx eax, byte [esp + 0x1b]
mov edx, esi
test al, al
jns 0x495da5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, edi
push eax
push edx
call fcn.00478b5c
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
mov eax, edi
jns 0x495d30
mov eax, dword [esp + 0x20]
jmp 0x495d30
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]
cmp byte [esp + 0x1b], 0
mov esi, eax
jns 0x495df7
push dword [esp + 0x10]
call fcn.005909b6
add esp, 4
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x495e0d
push dword [esp + 0x20]
call fcn.005909b6
add esp, 4
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00477ba4
call fcn.005a471a