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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x224c
call fcn.0043d0c0
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x221c], 0
and dword [ebp - 0x2218], 0
push ebx
push esi
mov dword [ebp - 0x2220], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x223c], eax
mov eax, edi
mov dword [ebp - 0x2214], ecx
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c8b
cmp word [edi], 0x7d
je 0x403c89
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x2228], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x403811
test ebx, ebx
je 0x403921
mov ecx, dword [ebp - 0x2214]
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x403923
push 0x5c
mov eax, edi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.00402fba
pop ecx
test eax, eax
jne 0x403d5b
push edi
call fcn.00403460
test eax, eax
je 0x403885
mov eax, dword [ebp - 0x2220]
push edi
lea ecx, [ebp - 0x2238]
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], esi
call fcn.004034bf
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
cmp ebx, esi
je 0x403919
mov ecx, dword [ebp - 0x2214]
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
mov ecx, dword [ebp - 0x2214]
call fcn.004033fb
mov esi, eax
test esi, esi
jl 0x403c74
and dword [ebp - 0x2234], 0
cmp word [edi], 0x7b
jne 0x40390a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40390a
mov ecx, dword [ebp - 0x2214]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x221c]
push edi
call fcn.00403780
mov esi, eax
test esi, esi
jl 0x403c74
mov ecx, dword [ebp - 0x2214]
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
cmp word [edi], 0x7d
jne 0x4037de
jmp 0x403c74
mov dword [ebp - 0x2234], esi
jmp 0x403923
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403952
and dword [ebp - 0x2228], eax
mov ecx, dword [ebp - 0x2214]
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
xor esi, esi
push 0x447b68
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403a81
mov ecx, dword [ebp - 0x2214]
lea eax, [ebp - 0x2210]
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
mov ecx, dword [ebp - 0x2214]
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
cmp word [edi], 0x3d
jne 0x403d79
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4039f5
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2214]
mov dword [ebp - 0x2244], eax
push edi
lea eax, [ebp - 0x2210]
push eax
lea edx, [ebp - 0x2244]
mov dword [ebp - 0x2240], ebx
call fcn.00403108
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
jl 0x403dcf
mov dword [ebp - 0x2240], ebx
jmp 0x4038c0
cmp dword [ebp + 0x14], ebx
jne 0x403a6d
cmp dword [ebp - 0x2228], ebx
je 0x403a6d
push 0x20006
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2230]
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
call fcn.0040348c
cmp eax, ebx
jne 0x403d82
lea eax, [ebp - 0x2210]
push eax
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x403a4d
cmp eax, 2
jne 0x403d82
cmp dword [ebp - 0x2230], ebx
je 0x403a67
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
mov ecx, dword [ebp - 0x2214]
call fcn.004033fb
mov esi, eax
cmp esi, ebx
jmp 0x403904
push 0x5c
mov eax, edi
call fcn.00402fba
pop ecx
test eax, eax
jne 0x403d5b
cmp dword [ebp + 0x10], esi
je 0x403b75
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp - 0x2220]
lea eax, [ebp - 0x221c]
call fcn.0040348c
test eax, eax
je 0x403b31
push 0x20019
push edi
push dword [ebp - 0x2220]
lea eax, [ebp - 0x221c]
call fcn.0040348c
test eax, eax
je 0x403b31
lea eax, [ebp - 0x2248]
push eax
lea eax, [ebp - 0x2228]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp - 0x2220]
mov dword [ebp - 0x2228], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x403da6
xor eax, eax
cmp dword [ebp - 0x221c], esi
je 0x403b17
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2228]
mov dword [ebp - 0x2218], esi
mov dword [ebp - 0x221c], ecx
cmp eax, esi
jne 0x403da6
mov ecx, dword [ebp - 0x2214]
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
cmp word [edi], 0x3d
jne 0x4038c0
mov ecx, dword [ebp - 0x2214]
push edi
push 0
lea edx, [ebp - 0x221c]
call fcn.00403108
mov esi, eax
test esi, esi
jl 0x403c74
jmp 0x4038c0
cmp dword [ebp + 0x14], esi
jne 0x403b99
push 0x20019
push edi
push dword [ebp - 0x2220]
lea eax, [ebp - 0x221c]
call fcn.0040348c
mov dword [ebp - 0x2224], eax
jmp 0x403ba3
mov dword [ebp - 0x2224], 2
cmp dword [ebp - 0x2224], esi
je 0x403bb2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0042eb7b
push eax
call fcn.00404337
mov ecx, dword [ebp - 0x2214]
add esp, 0x14
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
mov ecx, dword [ebp - 0x2214]
call fcn.004033fb
mov esi, eax
test esi, esi
jl 0x403c74
cmp word [edi], 0x7b
jne 0x403c3f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x403c3f
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2214]
push 0
push dword [ebp - 0x221c]
push edi
call fcn.00403780
mov esi, eax
test esi, esi
jge 0x403c2c
cmp dword [ebp + 0x14], 0
je 0x403c74
mov ecx, dword [ebp - 0x2214]
mov eax, edi
call fcn.0040366a
mov esi, eax
test esi, esi
jl 0x403c74
cmp dword [ebp - 0x2224], 2
mov eax, dword [ebp - 0x223c]
mov dword [ebp + 0x14], eax
je 0x40390a
xor ebx, ebx
cmp dword [ebp - 0x2224], ebx
je 0x403c9c
cmp eax, ebx
jne 0x40390a
mov eax, dword [ebp - 0x2224]
call fcn.0040363b
mov esi, eax
cmp dword [ebp - 0x221c], 0
je 0x403c89
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
leave
ret 0x10
cmp eax, ebx
je 0x403ce7
push dword [ebp - 0x221c]
call fcn.004035ef
test eax, eax
je 0x403ce7
lea eax, [ebp - 0x210]
push eax
call fcn.00403460
test eax, eax
je 0x40390a
cmp dword [ebp - 0x2228], 0
je 0x40390a
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x221c]
call fcn.004034bf
jmp 0x40390a
push dword [ebp - 0x221c]
call fcn.004035ef
mov dword [ebp - 0x2224], eax
xor eax, eax
cmp dword [ebp - 0x221c], ebx
je 0x403d14
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x221c], ebx
mov dword [ebp - 0x2218], ebx
cmp eax, ebx
jne 0x403dc8
cmp dword [ebp - 0x2228], ebx
je 0x40390a
cmp dword [ebp - 0x2224], 0
jne 0x40390a
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403c6d
jmp 0x40390a
cmp dword [ebp - 0x221c], esi
je 0x403d6f
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x403c8b
cmp dword [ebp - 0x221c], 0
jmp 0x403d61
call fcn.0040363b
mov esi, eax
cmp dword [ebp - 0x2230], ebx
je 0x403c74
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c74
call fcn.0040363b
mov edi, eax
cmp dword [ebp - 0x221c], esi
je 0x403dc1
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x403c8b
call fcn.0040363b
mov esi, eax
cmp dword [ebp - 0x221c], ebx
jmp 0x403c7b