Function at 0x10004950
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x10035346
mov eax, dword fs:[0]
push eax
mov eax, 0x1140
mov dword fs:[0], esp
call fcn.10022b00
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x116c]
mov edi, dword [esp + 0x1160]
push edi
mov dword [esp + 0x115c], ebp
mov dword [esp + 0x48], eax
call fcn.10003150
mov esi, eax
cmp esi, ebp
jl 0x10004fbb
cmp byte [edi], 0x7d
je 0x10004fb9
jmp 0x100049c4
mov ebx, dword [esp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x100379dc
push edi
mov dword [esp + 0x2c], 1
call esi
mov ebp, eax
neg ebp
push 0x100379bc
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x100049f5
test ebp, ebp
je 0x10004af7
push edi
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
xor esi, esi
cmp dword [esp + 0x1168], esi
je 0x10004af9
mov cl, byte [edi]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov eax, edi
test cl, cl
je 0x10004a42
cmp cl, 0x5c
je 0x10004a3a
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10004a26
jmp 0x10004a42
cmp eax, esi
jne 0x10004f2f
push edi
mov ecx, ebx
call fcn.10003280
test eax, eax
je 0x10004a6f
mov ecx, dword [esp + 0x1164]
mov dword [esp + 0x1c], ecx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], esi
call fcn.100039b0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
cmp ebp, esi
je 0x10004af1
push edi
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004f48
push edi
mov ecx, ebx
call fcn.10003310
mov esi, eax
test esi, esi
jl 0x10004f48
mov dword [esp + 0x20], 0
cmp byte [edi], 0x7b
jne 0x10004ae3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x10004ae3
mov ecx, dword [esp + 0x1168]
mov edx, dword [esp + 0x10]
push 0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.10004950
mov esi, eax
test esi, esi
jl 0x10004faa
push edi
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
cmp byte [edi], 0x7d
jne 0x100049c0
jmp 0x10004faa
mov dword [esp + 0x20], esi
jmp 0x10004af9
xor esi, esi
push 0x100379cc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10004b21
push edi
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
xor esi, esi
push 0x100379b4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10004c3d
lea edx, [esp + 0x150]
push edx
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
push edi
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
cmp byte [edi], 0x3d
jne 0x10004f38
xor ebp, ebp
cmp dword [esp + 0x1168], ebp
je 0x10004bc3
mov eax, dword [esp + 0x1164]
push edi
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, ebx
mov byte [esp + 0x1164], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
call fcn.100045a0
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
jl 0x10004f4e
mov byte [esp + 0x1158], 0
mov dword [esp + 0x34], ebp
jmp 0x10004a9f
cmp dword [esp + 0x116c], ebp
jne 0x10004c2c
cmp dword [esp + 0x24], ebp
je 0x10004c2c
mov eax, dword [esp + 0x1164]
push 0x20006
push ebp
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.10002d70
cmp eax, ebp
jne 0x10004f62
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x150]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x10004c19
cmp eax, 2
jne 0x10004f62
cmp esi, ebp
je 0x10004c28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
push edi
mov ecx, ebx
call fcn.10003310
mov esi, eax
cmp esi, ebp
jmp 0x10004add
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x10004c61
cmp cl, 0x5c
je 0x10004c59
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10004c45
jmp 0x10004c61
cmp eax, esi
jne 0x10004f38
cmp dword [esp + 0x1168], esi
je 0x10004d5e
mov eax, dword [esp + 0x1164]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push esi
push edi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x10004cb1
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, esi
je 0x10004ca1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x10004d25
mov edx, dword [esp + 0x1164]
push 0x20019
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.10002d70
test eax, eax
je 0x10004d25
mov edx, dword [esp + 0x1164]
lea eax, [esp + 0x48]
push eax
xor ebp, ebp
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push edi
push edx
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebp
jne 0x10004f6e
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebp
je 0x10004d0f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
cmp eax, ebp
jne 0x10004f6e
push edi
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
cmp byte [edi], 0x3d
jne 0x10004a9f
push edi
push 0
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.100045a0
mov esi, eax
test esi, esi
jl 0x10004faa
jmp 0x10004a9f
cmp dword [esp + 0x116c], esi
jne 0x10004e52
mov eax, dword [esp + 0x1164]
push 0x20019
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.10002d70
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, esi
je 0x10004d97
mov dword [esp + 0x116c], 1
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x54]
push 0x104
push ecx
call fcn.10022757
push eax
call fcn.10002b70
add esp, 0x14
push edi
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
push edi
mov ecx, ebx
call fcn.10003310
mov esi, eax
test esi, esi
jl 0x10004faa
cmp byte [edi], 0x7b
jne 0x10004e22
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x10004e22
mov ebp, dword [esp + 0x116c]
mov edx, dword [esp + 0x10]
push ebp
push 0
push edx
push edi
mov ecx, ebx
call fcn.10004950
mov esi, eax
test esi, esi
jge 0x10004e0c
test ebp, ebp
je 0x10004faa
push edi
mov ecx, ebx
call fcn.10003150
mov esi, eax
test esi, esi
jl 0x10004faa
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x116c], eax
cmp ebp, 2
je 0x10004ae3
test ebp, ebp
je 0x10004e63
test eax, eax
jne 0x10004ae3
push ebp
call fcn.10002c60
add esp, 4
mov esi, eax
jmp 0x10004faa
mov dword [esp + 0x18], 2
mov ebp, dword [esp + 0x18]
jmp 0x10004d8c
test eax, eax
je 0x10004ea9
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.100032c0
test eax, eax
je 0x10004ea9
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.10003280
test eax, eax
je 0x10004ae3
cmp dword [esp + 0x24], 0
je 0x10004ae3
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x14]
call fcn.100039b0
jmp 0x10004ae3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
push eax
call fcn.100032c0
xor ebp, ebp
mov ebx, eax
cmp dword [esp + 0x10], ebp
je 0x10004ed6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebp, ebp
jne 0x10004f82
cmp dword [esp + 0x24], ebp
je 0x10004ae3
test ebx, ebx
jne 0x10004ae3
mov edx, dword [esp + 0x1164]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
call fcn.10002ce0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
cmp eax, ebx
jne 0x10004f96
lea ecx, [esp + 0x38]
call fcn.10003990
jmp 0x10004ae3
lea ecx, [esp + 0x1c]
call fcn.10003990
lea ecx, [esp + 0x10]
call fcn.10003990
mov eax, 0x80020009
jmp 0x10004fbb
lea ecx, [esp + 0x1c]
jmp 0x10004fa5
lea ecx, [esp + 0x30]
call fcn.10003990
lea ecx, [esp + 0x10]
call fcn.10003990
jmp 0x10004fb9
push eax
call fcn.10002c60
lea ecx, [esp + 0x2c]
jmp 0x10004fa0
lea ecx, [esp + 0x10]
call fcn.10003990
push esi
call fcn.10002c60
add esp, 4
jmp 0x10004fbb
lea ecx, [esp + 0x10]
call fcn.10003990
push ebp
call fcn.10002c60
add esp, 4
jmp 0x10004fbb
push eax
call fcn.10002c60
lea ecx, [esp + 0x3c]
add esp, 4
mov esi, eax
call fcn.10003990
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004fb9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x1150]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114c
ret 0x10