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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push esi
mov eax, ebx
mov dword [ebp - 0xc], ecx
call fcn.00403cf3
mov esi, eax
test esi, esi
jge 0x403e54
jmp 0x4041b1
cmp word [ebx], 0x7d
push edi
je 0x4041ae
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x10], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x403e8b
test edi, edi
je 0x403efa
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
test esi, esi
jl 0x40419f
cmp dword [ebp + 0x10], 0
je 0x403efa
push 0x5c
mov eax, ebx
call fcn.00403bc2
test eax, eax
pop ecx
jne 0x404283
push ebx
push dword [ebp - 0xc]
call fcn.0040475a
test eax, eax
je 0x403ed3
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00404786
test edi, edi
je 0x403efa
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
test esi, esi
jl 0x40419f
mov ecx, dword [ebp - 0xc]
mov edi, ebx
call fcn.004046b7
jmp 0x4040d3
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403f21
and dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
test esi, esi
jl 0x40419f
push 0x416714
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404041
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x424]
call fcn.00403cf3
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x40419f
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
cmp esi, edi
jl 0x40419f
cmp word [ebx], 0x3d
jne 0x404246
cmp dword [ebp + 0x10], edi
je 0x403fe6
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
call fcn.004042a6
mov esi, eax
cmp esi, edi
jl 0x40424b
cmp word [ebx], 0x7b
jne 0x403fd7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x403fd7
mov ecx, dword [ebp - 0xc]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
call fcn.00403e1c
mov esi, eax
test esi, esi
jl 0x40419f
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
test esi, esi
jl 0x40419f
cmp word [ebx], 0x7d
jne 0x403e5f
jmp 0x40419f
cmp dword [ebp + 0x14], edi
jne 0x404035
cmp dword [ebp - 0x10], edi
je 0x404035
push 0x20006
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.0040a146
cmp eax, edi
jne 0x404265
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x424]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40402a
cmp eax, 2
jne 0x404253
test edi, edi
je 0x404035
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov edi, ebx
call fcn.004046b7
jmp 0x403fcd
push 0x5c
mov eax, ebx
call fcn.00403bc2
test eax, eax
pop ecx
jne 0x404283
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4040e2
push 0x2001f
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
call fcn.0040a146
test eax, eax
je 0x4040a6
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
call fcn.0040a146
test eax, eax
je 0x4040a6
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 8]
call fcn.00409e5c
cmp eax, esi
jne 0x404198
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
test esi, esi
jl 0x40419f
cmp word [ebx], 0x3d
jne 0x403f96
push ebx
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.004042a6
mov esi, eax
test esi, esi
jl 0x40419f
jmp 0x403f96
cmp dword [ebp + 0x14], esi
jne 0x4040fd
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
call fcn.0040a146
mov dword [ebp + 8], eax
jmp 0x404104
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x404110
mov dword [ebp + 0x14], 1
push 0x104
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
test esi, esi
jl 0x40419f
mov ecx, dword [ebp - 0xc]
mov edi, ebx
call fcn.004046b7
mov esi, eax
test esi, esi
jl 0x40419f
cmp word [ebx], 0x7b
jne 0x404176
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
push 0
push dword [ebp - 8]
push ebx
call fcn.00403e1c
mov esi, eax
test esi, esi
jge 0x404166
cmp dword [ebp + 0x14], 0
je 0x40419f
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00403cf3
mov esi, eax
test esi, esi
jl 0x40419f
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
je 0x403fd7
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x4041c2
cmp dword [ebp - 0x14], edi
jne 0x403fd7
call fcn.00404873
mov esi, eax
cmp dword [ebp - 8], 0
je 0x4041ae
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00415ab2
leave
ret 0x10
cmp dword [ebp - 0x14], edi
je 0x40420b
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00404725
test eax, eax
je 0x40420b
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xc]
call fcn.0040475a
test eax, eax
je 0x403fd7
cmp dword [ebp - 0x10], 0
je 0x403fd7
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.00404786
jmp 0x403fd7
cmp dword [ebp - 8], edi
je 0x404220
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 8], edi
jne 0x40429c
cmp dword [ebp - 0x10], edi
je 0x403fd7
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x404198
jmp 0x403fd7
cmp dword [ebp - 8], edi
jmp 0x404287
cmp dword [ebp - 8], edi
jmp 0x4041a3
call fcn.00404873
test edi, edi
mov esi, eax
je 0x40419f
push edi
jmp 0x404278
call fcn.00404873
cmp dword [ebp + 8], edi
mov esi, eax
je 0x40419f
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40419f
cmp dword [ebp - 8], 0
je 0x404292
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4041b0
call fcn.00404873
jmp 0x4041b0