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

Disassembly:
push 0xffffffffffffffff
push 0x10042fe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov eax, dword [0x1005454c]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x448]
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x44c]
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x458]
mov dword [esp + 0x20], ecx
push edi
mov ecx, ebx
mov dword [esp + 0x448], ebp
call fcn.10002930
mov esi, eax
cmp esi, ebp
jl 0x10005224
cmp word [edi], 0x7d
je 0x10005224
jmp 0x10004cd0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x18], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x10004d01
test ebp, ebp
je 0x10004df1
push edi
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
mov eax, dword [esp + 0x454]
xor esi, esi
cmp eax, esi
je 0x10004df3
xor ecx, ecx
mov cx, word [edi]
cmp cx, si
mov dword [esp + 0x18], esi
mov eax, edi
je 0x10004d53
cmp cx, 0x5c
je 0x10004d4b
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x10004d34
jmp 0x10004d53
cmp eax, esi
jne 0x1000524f
push edi
mov ecx, ebx
call fcn.10002a80
test eax, eax
je 0x10004d75
mov edx, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.100031a0
mov dword [esp + 0x18], esi
cmp ebp, esi
je 0x10004df3
push edi
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005268
push edi
mov ecx, ebx
call fcn.10002b10
mov esi, eax
test esi, esi
jl 0x10005268
cmp word [edi], 0x7b
jne 0x10004de2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10004de2
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.10004c50
mov esi, eax
test esi, esi
jl 0x10005215
push edi
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
cmp word [edi], 0x7d
jne 0x10004cd0
jmp 0x10005215
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004e1b
push edi
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
xor esi, esi
push 0x1004664c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004f1c
lea eax, [esp + 0x230]
push eax
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
push edi
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
cmp word [edi], 0x3d
jne 0x10005258
mov eax, dword [esp + 0x454]
xor ebp, ebp
cmp eax, ebp
je 0x10004eb1
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebx
mov byte [esp + 0x450], 1
call fcn.100048c0
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x10], ebp
jl 0x1000526e
mov byte [esp + 0x444], 0
jmp 0x10004d9d
cmp dword [esp + 0x458], ebp
jne 0x10004f0b
cmp dword [esp + 0x10], ebp
je 0x10004f0b
mov ecx, dword [esp + 0x1c]
push 0x20006
push ebp
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.100025f0
cmp eax, ebp
jne 0x10005201
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x230]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebp
je 0x10004f00
cmp eax, 2
jne 0x10005201
cmp esi, ebp
je 0x10004f0b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebx
call fcn.10002b10
mov esi, eax
cmp esi, ebp
jmp 0x10004ddc
xor ecx, ecx
mov cx, word [edi]
cmp cx, si
mov eax, edi
je 0x10004f47
cmp cx, 0x5c
je 0x10004f3f
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x10004f28
jmp 0x10004f47
cmp eax, esi
jne 0x10005258
cmp dword [esp + 0x454], esi
je 0x10005062
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push esi
push edi
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10004f96
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x10004f84
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x10005028
xor esi, esi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10004fd2
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x10004fc6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x10005028
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10005282
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10005016
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x14], ecx
jne 0x10005282
push edi
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
cmp word [edi], 0x3d
jne 0x10004d9d
push edi
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.100048c0
mov esi, eax
test esi, esi
jl 0x10005215
jmp 0x10004d9d
cmp dword [esp + 0x458], esi
jne 0x10005161
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100050a7
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x1000509f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, esi
mov ebp, eax
je 0x100050b8
mov dword [esp + 0x458], 1
push 0x104
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
push edi
mov ecx, ebx
call fcn.10002b10
mov esi, eax
test esi, esi
jl 0x10005215
cmp word [edi], 0x7b
jne 0x10005131
mov ecx, dword [esp + 0x458]
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push edi
mov ecx, ebx
call fcn.10004c50
mov esi, eax
test esi, esi
jge 0x1000511f
mov eax, dword [esp + 0x458]
test eax, eax
je 0x10005215
push edi
mov ecx, ebx
call fcn.10002930
mov esi, eax
test esi, esi
jl 0x10005215
cmp ebp, 2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x458], eax
je 0x10004de2
test ebp, ebp
je 0x1000516b
test eax, eax
jne 0x10004de2
push ebp
call fcn.100024c0
add esp, 4
mov esi, eax
jmp 0x10005215
mov ebp, 2
jmp 0x100050ad
test eax, eax
je 0x100051b2
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.10002ac0
test eax, eax
je 0x100051b2
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.10002a80
test eax, eax
je 0x10004de2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004de2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.100031a0
jmp 0x10004de2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100051d5
mov ecx, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], 0
jne 0x10005296
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004de2
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [esp + 0x10], 0
je 0x10004de2
push eax
call fcn.100024c0
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.10003180
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10005224
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x42c]
pop ebx
xor ecx, esp
call fcn.1003609d
add esp, 0x438
ret 0x10
lea ecx, [esp + 0x18]
call fcn.10003180
lea ecx, [esp + 0x14]
call fcn.10003180
mov eax, 0x80020009
jmp 0x10005226
lea ecx, [esp + 0x18]
jmp 0x10005210
lea ecx, [esp + 0x10]
call fcn.10003180
lea ecx, [esp + 0x14]
call fcn.10003180
jmp 0x10005224
lea ecx, [esp + 0x14]
call fcn.10003180
push esi
call fcn.100024c0
add esp, 4
jmp 0x10005226
lea ecx, [esp + 0x14]
call fcn.10003180
push ebp
call fcn.100024c0
add esp, 4
jmp 0x10005226