Function at 0x4039bf
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.0043abd0
push 0xffffffffffffffff
push 0x45e812
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x48c068]
xor eax, ebp
mov dword [ebp + 0x1104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x1114]
mov edi, dword [ebp + 0x1110]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ed1
cmp byte [edi], 0x7d
je 0x403ec6
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403a6d
test esi, esi
je 0x403afc
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
xor esi, esi
cmp dword [ebp + 0x1118], esi
je 0x403afe
mov dl, 0x5c
mov dword [ebp - 0x44], esi
mov ecx, edi
mov dword [ebp - 0x3c], esi
call fcn.00402f6c
test eax, eax
jne 0x403ec1
push edi
call fcn.0040350f
test eax, eax
je 0x403ac3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
push edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
call fcn.0040249e
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x18], esi
je 0x403af7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403570
mov esi, eax
test esi, esi
js 0x403ec6
and dword [ebp - 0x40], 0
jmp 0x403e47
mov dword [ebp - 0x40], esi
jmp 0x403afe
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403b24
mov ecx, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x28], esi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
push 0x473fec
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403c27
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
cmp byte [edi], 0x3d
jne 0x403ec1
cmp dword [ebp + 0x1118], 0
je 0x403bb8
mov ecx, dword [ebp - 0x10]
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x48], 0
mov dword [ebp - 0x50], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004030c9
mov esi, eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
test esi, esi
js 0x403ec6
mov byte [ebp - 4], al
mov dword [ebp - 0x4c], eax
jmp 0x403e47
cmp dword [ebp + 0x111c], 0
jne 0x403c19
cmp dword [ebp - 0x28], 0
je 0x403c19
xor eax, eax
lea ecx, [ebp - 0x34]
push 0x20006
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00402442
test eax, eax
jne 0x403e99
mov esi, dword [ebp - 0x34]
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x403c06
cmp eax, 2
jne 0x403e99
test esi, esi
je 0x403c15
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403570
jmp 0x403e8e
mov dl, 0x5c
mov ecx, edi
call fcn.00402f6c
test eax, eax
jne 0x403ec1
cmp dword [ebp + 0x1118], eax
je 0x403cb8
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push 0x2001f
push edi
push ebx
call fcn.00402442
test eax, eax
je 0x403c7e
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.00402442
test eax, eax
je 0x403c7e
sub esp, 0x14
lea ecx, [ebp - 0x24]
push edi
push ebx
call fcn.004023e1
test eax, eax
jne 0x403eb3
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ebc
cmp byte [edi], 0x3d
jne 0x403cb0
push edi
push 0
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004030c9
mov esi, eax
test esi, esi
js 0x403ebc
mov ebx, dword [ebp - 0x24]
jmp 0x403e47
cmp dword [ebp + 0x111c], 0
jne 0x403cd7
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.00402442
mov ebx, dword [ebp - 0x24]
jmp 0x403cda
push 2
pop eax
mov ecx, dword [ebp + 0x111c]
test eax, eax
push 1
mov dword [ebp - 0x18], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp + 0x1000]
push edi
push 0x104
push eax
mov dword [ebp - 0x38], ecx
call fcn.0043f433
push eax
call fcn.0040203e
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403570
mov esi, eax
test esi, esi
js 0x403ec6
cmp byte [edi], 0x7b
jne 0x403d74
push edi
call fcn.00441f00
pop ecx
cmp eax, 1
jne 0x403d74
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
push 0
push ebx
push edi
call fcn.004039bf
mov esi, eax
test esi, esi
jns 0x403d61
cmp dword [ebp - 0x38], 0
je 0x403ec6
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
mov eax, dword [ebp - 0x18]
cmp eax, 2
je 0x403a32
test eax, eax
je 0x403d9f
cmp dword [ebp + 0x111c], 0
jne 0x403a32
mov ecx, eax
call fcn.004020b4
mov esi, eax
jmp 0x403ec6
cmp dword [ebp + 0x111c], 0
je 0x403de7
push ebx
call fcn.0040353b
test eax, eax
je 0x403de7
lea eax, [ebp + 0x1000]
push eax
call fcn.0040350f
test eax, eax
je 0x403a32
cmp dword [ebp - 0x28], 0
je 0x403a32
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040249e
mov ebx, dword [ebp - 0x24]
jmp 0x403a32
push ebx
call fcn.0040353b
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x18], ecx
test ebx, ebx
je 0x403e07
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
and dword [ebp - 0x20], 0
test eax, eax
jne 0x403d91
cmp dword [ebp - 0x28], eax
je 0x403a32
test ecx, ecx
jne 0x403a32
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x58], ecx
and dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x1000]
push eax
call fcn.0040234f
and dword [ebp - 0x5c], 0
test eax, eax
jne 0x403d91
cmp dword [ebp + 0x1118], 0
je 0x403a32
cmp byte [edi], 0x7b
jne 0x403a32
push edi
call fcn.00441f00
pop ecx
cmp eax, 1
jne 0x403a32
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x1118]
push ebx
push edi
call fcn.004039bf
mov esi, eax
test esi, esi
js 0x403ec6
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402fb8
mov esi, eax
test esi, esi
js 0x403ec6
jmp 0x403a32
mov ecx, eax
call fcn.004020b4
cmp dword [ebp - 0x34], 0
mov esi, eax
je 0x403ec6
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403ec6
mov ecx, eax
call fcn.004020b4
mov esi, eax
mov ebx, dword [ebp - 0x24]
jmp 0x403ec6
mov esi, 0x80020009
test ebx, ebx
je 0x403ed1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1104]
xor ecx, ebp
call fcn.00439b80
add ebp, 0x1108
leave
ret 0x10