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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x427300]
and dword [ebp - 0x41c], 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x424], eax
jmp 0x403e3f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x422528
push edi
mov dword [ebp - 0x420], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x403a3a
test ebx, ebx
je 0x403acc
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401760
mov esi, eax
test esi, esi
jl 0x403e99
cmp dword [ebp + 0x10], 0
je 0x403acc
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.004016f0
test eax, eax
pop ecx
pop ecx
jne 0x403e57
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401866
test eax, eax
je 0x403a8f
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00402117
and dword [ebp + 8], 0
test ebx, ebx
je 0x403ac4
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401760
mov esi, eax
test esi, esi
jl 0x403e91
mov ecx, dword [ebp - 0x418]
push edi
call fcn.004018c7
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00401420
jmp 0x403c86
lea ecx, [ebp + 8]
call fcn.00401420
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403af8
mov ecx, dword [ebp - 0x418]
and dword [ebp - 0x420], eax
push edi
call fcn.00401760
mov esi, eax
test esi, esi
jl 0x403e99
push 0x422564
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403be3
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
call fcn.00401760
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x403e99
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401760
mov esi, eax
cmp esi, ebx
jl 0x403e99
cmp word [edi], 0x3d
jne 0x403e5f
cmp dword [ebp + 0x10], ebx
je 0x403b80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x418]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00403709
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.00401420
cmp esi, ebx
jmp 0x403c88
cmp dword [ebp + 0x14], ebx
jne 0x403bce
cmp dword [ebp - 0x420], ebx
je 0x403bce
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00401485
cmp eax, ebx
jne 0x403e88
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x403bc6
cmp eax, 2
jne 0x403e88
lea ecx, [ebp + 8]
call fcn.00401420
mov ecx, dword [ebp - 0x418]
push edi
call fcn.004018c7
mov esi, eax
cmp esi, ebx
jmp 0x403e49
push 0x5c
push edi
call fcn.004016f0
test eax, eax
pop ecx
pop ecx
jne 0x403e5f
cmp dword [ebp + 0x10], eax
je 0x403c93
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x41c]
call fcn.00401485
test eax, eax
je 0x403c4f
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x41c]
call fcn.00401485
test eax, eax
je 0x403c4f
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x41c]
call fcn.00401437
mov esi, eax
cmp esi, ebx
jne 0x403e66
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401760
mov esi, eax
test esi, esi
jl 0x403e99
cmp word [edi], 0x3d
jne 0x403e04
mov ecx, dword [ebp - 0x418]
push edi
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.00403709
mov esi, eax
test esi, esi
jl 0x403e99
jmp 0x403e04
cmp dword [ebp + 0x14], 0
jne 0x403cb1
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x41c]
call fcn.00401485
mov ebx, eax
jmp 0x403cb4
push 2
pop ebx
test ebx, ebx
je 0x403cbf
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401760
mov esi, eax
test esi, esi
jl 0x403e99
mov ecx, dword [ebp - 0x418]
push edi
call fcn.004018c7
mov esi, eax
test esi, esi
jl 0x403e99
cmp word [edi], 0x7b
jne 0x403d41
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push 0
push dword [ebp - 0x41c]
push edi
call fcn.004039d5
mov esi, eax
test esi, esi
jge 0x403d2b
cmp dword [ebp + 0x14], 0
je 0x403e99
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401760
mov esi, eax
test esi, esi
jl 0x403e99
cmp ebx, 2
mov eax, dword [ebp - 0x424]
mov dword [ebp + 0x14], eax
je 0x403e4b
test ebx, ebx
je 0x403d6d
test eax, eax
jne 0x403e4b
push ebx
call fcn.004011ac
pop ecx
mov esi, eax
jmp 0x403e99
test eax, eax
je 0x403dc4
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x418]
call fcn.00401892
test eax, eax
je 0x403dc4
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401866
test eax, eax
je 0x403e4b
cmp dword [ebp - 0x420], 0
je 0x403e4b
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00402117
jmp 0x403e4b
lea ecx, [ebp - 0x41c]
call fcn.00401420
mov ebx, eax
test ebx, ebx
jne 0x403e74
cmp dword [ebp - 0x420], eax
je 0x403e4b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], ebx
test eax, eax
jne 0x403e88
lea ecx, [ebp + 8]
call fcn.00401420
cmp dword [ebp + 0x10], 0
je 0x403e4b
cmp word [edi], 0x7b
jne 0x403e4b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x403e4b
mov ecx, dword [ebp - 0x418]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x41c]
push edi
call fcn.004039d5
mov esi, eax
test esi, esi
jl 0x403e99
mov ecx, dword [ebp - 0x418]
push edi
call fcn.00401760
mov esi, eax
test esi, esi
jl 0x403e99
cmp word [edi], 0x7d
jne 0x403a07
jmp 0x403e99
lea ecx, [ebp + 8]
call fcn.00401420
mov esi, 0x80020009
jmp 0x403e99
lea ecx, [ebp - 0x41c]
call fcn.00401420
push esi
jmp 0x403e80
lea ecx, [ebp - 0x41c]
call fcn.00401420
push ebx
call fcn.004011ac
pop ecx
jmp 0x403ea6
push eax
call fcn.004011ac
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00401420
lea ecx, [ebp - 0x41c]
call fcn.00401420
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004177b3
leave
ret 0x10