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

Disassembly:
push 0x38
mov eax, 0x50751b
call fcn.004d2c19
mov dword [ebp - 0x34], edx
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.00409419
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x24]
call fcn.0046ce60
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406df6
cmp dword [ebp - 0x40], 2
jne 0x47a5a5
push ebx
lea ecx, [ebp - 0x44]
call fcn.00406760
push eax
lea ecx, [ebp - 0x30]
call fcn.004073cf
push str._cmdloc
lea ecx, [ebp - 0x30]
call fcn.004451dc
test eax, eax
jne 0x47a597
push 1
lea ecx, [ebp - 0x44]
call fcn.00406760
push eax
lea ecx, [ebp - 0x14]
call fcn.004073cf
push 0x5c
push dword [ebp - 0x14]
call fcn.004d5852
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47a589
sub esi, dword [ebp - 0x14]
sar esi, 1
cmp esi, edi
je 0x47a589
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0044514d
call fcn.00406d01
push eax
lea ecx, [ebp - 0x24]
call fcn.00406b29
mov dword [ebp - 4], edi
call fcn.00406d01
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b29
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x1c]
call fcn.00484ee2
push ebx
mov edi, eax
lea ecx, [ebp - 0x1c]
push 0x5c
mov dword [ebp - 0x38], edi
call fcn.004504a9
inc eax
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00444f84
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47a44b
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47a44b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x47a4c9
push 0x5c
push dword [ebp - 0x10]
call fcn.004d5852
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47a462
or edi, 0xffffffff
jmp 0x47a467
sub edi, dword [ebp - 0x10]
sar edi, 1
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444ed9
push eax
lea ecx, [ebp - 0x24]
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444f84
push eax
lea ecx, [ebp - 0x20]
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
cmp dword [ebp - 0x18], 0
jne 0x47a4d4
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
jmp 0x47a560
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00444f84
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
call fcn.00486b4a
pop ecx
push dword [ebp - 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x47a54f
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push ebx
push edi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47a54f
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x47a54f
cmp dword [ebp - 0x10], 0
jne 0x47a54f
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00406df6
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00406df6
lea ecx, [ebp - 0x44]
call fcn.00451f33
mov al, bl
call fcn.004d2be2
ret