Function at 0x4a3630
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5599d0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004144e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x28]
call fcn.004925c0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a36b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x5c], 2
je 0x4a36bd
xor bl, bl
jmp 0x4a3ac8
mov esi, dword [ebp - 0x60]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0040be70
lea edi, [eax + 0x10]
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 4
mov ecx, str._cmdloc
mov eax, edi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a3706
test dx, dx
je 0x4a3702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a3706
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a36e0
xor eax, eax
jmp 0x4a370b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a3718
mov byte [ebp - 0xd], 0
jmp 0x4a3aac
mov ecx, dword [esi + 4]
sub ecx, 0x10
call fcn.0040be70
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 7
push 0x5c
push esi
call fcn.0052266c
add esp, 8
test eax, eax
je 0x4a3a8d
sub eax, esi
sar eax, 1
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
je 0x4a3a8d
push eax
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040bce0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call fcn.00413410
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.00413410
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
call fcn.004bea80
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
jg 0x4a3794
or eax, 0xffffffff
jmp 0x4a37ad
push 0x5c
push eax
call fcn.00522329
add esp, 8
test eax, eax
jne 0x4a37a8
or eax, 0xffffffff
jmp 0x4a37ad
sub eax, dword [ebp - 0x20]
sar eax, 1
inc eax
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040bbc0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a3820
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a3820
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a397f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0xd], 0
jmp 0x4a3a31
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0047bde0
push eax
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
call fcn.0040ba30
mov byte [ebp - 4], 0x14
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov dword [ebp - 0x3c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x34], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4a38a4
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x38], eax
jl 0x4a3898
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4a3898
mov ecx, dword [ebp - 0x34]
call fcn.0040be70
mov edx, dword [ebp - 0x38]
mov ecx, ebx
mov dword [ebp - 0x34], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3890
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x4a38a4
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.004143c0
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a38c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x14]
inc eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040bbc0
mov byte [ebp - 4], 0x16
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x3c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x44], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4a393d
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x40], eax
jl 0x4a3931
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4a3931
mov ecx, dword [ebp - 0x44]
call fcn.0040be70
mov edx, dword [ebp - 0x40]
mov ecx, ebx
mov dword [ebp - 0x44], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3929
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x4a393d
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.004143c0
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a395b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a3979
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0
jne 0x4a3988
mov byte [ebp - 0xd], 0
jmp 0x4a3a31
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040bbc0
mov byte [ebp - 4], 0x1e
lea edx, [ebp - 0x2c]
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x24]
call fcn.004bc850
add esp, 4
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4a3a0f
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a3a0f
push eax
push eax
push eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4a3a0f
cmp dword [ebp - 0x28], 0
jne 0x4a3a0f
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a3a31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a3a4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a3a6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a3a91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a3a91
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a3aac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a3ac5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov bl, byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0047e6b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret