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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413623
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2254
call fcn.0040f610
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2268]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2270], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, eax
push edi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c8b
push 0x7d
pop eax
cmp word [edi], ax
je 0x403c7c
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4037cd
test esi, esi
je 0x403878
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40387a
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00402cd3
test eax, eax
jne 0x403c77
push edi
call fcn.00403326
test eax, eax
je 0x40383a
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0040340a
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
cmp dword [esp + 0x20], esi
je 0x403872
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004032bf
mov esi, eax
test esi, esi
js 0x403c7c
and dword [esp + 0x30], 0
jmp 0x403a70
mov dword [esp + 0x30], esi
jmp 0x40387a
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4038a2
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x2c], esi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
push 0x418e1c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4039d8
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x25c]
push eax
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x403c77
cmp dword [ebp + 0x10], 0
je 0x403952
mov ecx, dword [esp + 0x1c]
xor eax, eax
inc eax
mov byte [esp + 0x2270], al
mov eax, dword [esp + 0x24]
and dword [esp + 0x48], 0
and dword [esp + 0x4c], 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x25c]
push edi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00402e7f
mov esi, eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
test esi, esi
js 0x403c7c
mov byte [esp + 0x2270], al
mov dword [esp + 0x48], eax
jmp 0x403a70
cmp dword [ebp + 0x14], 0
jne 0x4039bb
cmp dword [esp + 0x28], 0
je 0x4039bb
xor esi, esi
lea ecx, [esp + 0x38]
push 0x20006
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.004033b8
test eax, eax
jne 0x403c56
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x25c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4039a8
cmp eax, 2
jne 0x403c40
test ebx, ebx
je 0x4039b7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004032bf
mov ebx, dword [esp + 0x10]
mov esi, eax
test esi, esi
js 0x403c80
jmp 0x403b96
push 0x5c
pop edx
mov ecx, edi
call fcn.00402cd3
test eax, eax
jne 0x403c77
cmp dword [ebp + 0x10], eax
je 0x403ab7
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0x2001f
push edi
push ebx
call fcn.004033b8
test eax, eax
je 0x403a35
push 0x20019
push edi
push ebx
lea ecx, [esp + 0x1c]
call fcn.004033b8
test eax, eax
je 0x403a35
sub esp, 0x14
lea ecx, [esp + 0x24]
push edi
push ebx
call fcn.00402d72
test eax, eax
jne 0x403c6c
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
push edi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x403a6c
push edi
push 0
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.00402e7f
mov esi, eax
test esi, esi
js 0x403c7c
mov ebx, dword [esp + 0x10]
push 0x7b
pop eax
cmp word [edi], ax
jne 0x403b92
push edi
call fcn.00405584
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x403b92
push 0
push dword [ebp + 0x10]
push ebx
mov ebx, dword [esp + 0x28]
mov ecx, ebx
push edi
call fcn.00403708
mov esi, eax
test esi, esi
js 0x403c7c
push edi
mov ecx, ebx
call fcn.004035b6
jmp 0x4039c5
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x403ad7
push 0x20019
push edi
push dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.004033b8
mov ebx, dword [esp + 0x10]
jmp 0x403ada
push 2
pop eax
push 1
test eax, eax
mov dword [esp + 0x24], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [esp + 0x58]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.004056dd
push eax
call fcn.004044ab
mov ecx, dword [esp + 0x30]
add esp, 0x14
push edi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004032bf
mov esi, eax
test esi, esi
js 0x403c7c
push 0x7b
pop eax
cmp word [edi], ax
jne 0x403b76
push edi
call fcn.00405584
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x403b76
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
push 0
push ebx
push edi
call fcn.00403708
mov esi, eax
test esi, esi
jns 0x403b62
cmp dword [ebp + 0x14], 0
je 0x403c7c
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004035b6
mov esi, eax
test esi, esi
js 0x403c7c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x403b92
test eax, eax
je 0x403bab
test ecx, ecx
je 0x403c6c
mov ebx, dword [esp + 0x10]
push 0x7d
pop eax
cmp word [edi], ax
je 0x403c80
mov ebx, dword [esp + 0x10]
jmp 0x403799
test ecx, ecx
je 0x403bde
push ebx
call fcn.00403500
test eax, eax
je 0x403bde
lea eax, [esp + 0x54]
push eax
call fcn.00403326
test eax, eax
je 0x403b92
cmp dword [esp + 0x28], 0
je 0x403b92
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.0040340a
jmp 0x403b92
push ebx
call fcn.00403500
mov ecx, eax
xor eax, eax
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x403c03
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x403c07
mov ebx, dword [esp + 0x10]
and dword [esp + 0x14], 0
test eax, eax
jne 0x403c35
cmp dword [esp + 0x28], eax
je 0x403b96
test ecx, ecx
jne 0x403b96
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x403b96
mov ecx, eax
call fcn.004035a8
mov esi, eax
jmp 0x403c80
mov ecx, eax
call fcn.004035a8
mov esi, eax
test ebx, ebx
je 0x403c7c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c7c
mov ecx, eax
call fcn.004035a8
cmp dword [esp + 0x38], 0
mov esi, eax
je 0x403c7c
push dword [esp + 0x38]
jmp 0x403c4e
mov ecx, eax
call fcn.004035a8
mov esi, eax
jmp 0x403c7c
mov esi, 0x80020009
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x403c8b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2250]
xor ecx, esp
call fcn.004053ff
mov esp, ebp
pop ebp
ret 0x10