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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b14b
mov eax, dword fs:[0]
push eax
mov eax, 0x1148
call fcn.0045b380
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x114c], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x1148], xmm0
mov dword [ebp - 0x1140], 0
mov dword [ebp - 0x1150], ecx
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 0x1140], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403ca4
cmp byte [ebx], 0x7d
je 0x403c91
nop dword [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x1154], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403603
test edi, edi
je 0x403701
mov ecx, dword [ebp - 0x114c]
push ebx
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
cmp dword [ebp + 0x10], 0
je 0x403701
mov al, byte [ebx]
mov ecx, ebx
mov dword [ebp - 0x1124], 0
mov dword [ebp - 0x111c], 0
test al, al
je 0x40365d
nop
cmp al, 0x5c
je 0x403655
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x403640
jmp 0x40365d
test ecx, ecx
jne 0x403c81
mov esi, 0x48faa8
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4036ba
add esi, 4
cmp esi, 0x48fad8
jl 0x403662
mov eax, dword [ebp - 0x1150]
lea ecx, [ebp - 0x1124]
push ebx
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], 0
mov dword [ebp - 0x111c], 0
call fcn.00401890
mov dword [ebp - 0x1124], 0
mov dword [ebp - 0x111c], 0
test edi, edi
je 0x4036f7
mov edi, dword [ebp - 0x114c]
mov ecx, edi
push ebx
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
push ebx
mov ecx, edi
call fcn.00403130
mov esi, eax
test esi, esi
js 0x403c91
mov dword [ebp - 0x1120], 0
jmp 0x403967
mov dword [ebp - 0x1120], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, dword [ebp - 0x114c]
test eax, eax
jne 0x40372f
push ebx
mov ecx, edi
mov dword [ebp - 0x1154], eax
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
push 0x48f54c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4038bc
lea eax, [ebp - 0x1114]
mov ecx, edi
push eax
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
push ebx
mov ecx, edi
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
cmp byte [ebx], 0x3d
jne 0x403c81
cmp dword [ebp + 0x10], 0
je 0x40380a
xorps xmm0, xmm0
mov dword [ebp - 0x1128], 0
movq qword [ebp - 0x1130], xmm0
mov eax, dword [ebp - 0x1150]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1114]
push ebx
push eax
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x112c], 0
push eax
mov dword [ebp - 0x1128], 0
call fcn.00402b00
mov esi, eax
mov dword [ebp - 0x1130], 0
mov dword [ebp - 0x112c], 0
mov dword [ebp - 0x1128], 0
test esi, esi
js 0x403c91
mov byte [ebp - 4], 0
mov dword [ebp - 0x112c], 0
jmp 0x403967
cmp dword [ebp + 0x14], 0
jne 0x4038a5
cmp dword [ebp - 0x1154], 0
je 0x4038a5
push 0x20006
push 0
push dword [ebp - 0x1150]
lea ecx, [ebp - 0x113c]
mov dword [ebp - 0x113c], 0
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0
call fcn.004017b0
test eax, eax
jne 0x403c65
mov edi, dword [ebp - 0x113c]
lea eax, [ebp - 0x1114]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x403880
cmp eax, 2
jne 0x403c4f
test edi, edi
je 0x403895
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x113c], 0
mov edi, dword [ebp - 0x114c]
mov dword [ebp - 0x1138], 0
push ebx
mov ecx, edi
call fcn.00403130
mov esi, eax
test esi, esi
js 0x403c91
jmp 0x403c44
mov al, byte [ebx]
mov ecx, ebx
test al, al
je 0x4038e1
cmp al, 0x5c
je 0x4038d9
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x4038c4
jmp 0x4038e1
test ecx, ecx
jne 0x403c81
cmp dword [ebp + 0x10], 0
je 0x4039bb
mov esi, dword [ebp - 0x1150]
lea ecx, [ebp - 0x1148]
push 0x2001f
push ebx
push esi
call fcn.004017b0
test eax, eax
je 0x403935
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x1148]
call fcn.004017b0
test eax, eax
je 0x403935
sub esp, 0x14
lea ecx, [ebp - 0x1148]
push ebx
push esi
call fcn.004016c0
test eax, eax
jne 0x403c88
push ebx
mov ecx, edi
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
cmp byte [ebx], 0x3d
jne 0x403967
push ebx
push 0
lea eax, [ebp - 0x1148]
mov ecx, edi
push eax
call fcn.00402b00
mov esi, eax
test esi, esi
js 0x403c91
cmp byte [ebx], 0x7b
jne 0x403c44
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403975
sub ecx, edx
cmp ecx, 1
jne 0x403c44
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x1148]
push ebx
call fcn.00403530
mov esi, eax
test esi, esi
js 0x403c91
push ebx
mov ecx, edi
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
jmp 0x403c44
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4039dd
push 0x20019
push ebx
push dword [ebp - 0x1150]
lea ecx, [ebp - 0x1148]
call fcn.004017b0
mov edi, eax
jmp 0x4039e2
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x1118], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00460100
push eax
call fcn.004012e0
mov ecx, dword [ebp - 0x114c]
add esp, 0x14
push ebx
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
mov ecx, dword [ebp - 0x114c]
push ebx
call fcn.00403130
mov esi, eax
test esi, esi
js 0x403c91
cmp byte [ebx], 0x7b
jne 0x403a96
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a45
sub ecx, edx
cmp ecx, 1
jne 0x403a96
push dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x114c]
push 0
push dword [ebp - 0x1148]
push ebx
call fcn.00403530
mov esi, eax
test esi, esi
jns 0x403a80
cmp dword [ebp - 0x1118], 0
je 0x403c91
mov ecx, dword [ebp - 0x114c]
push ebx
call fcn.004029a0
mov esi, eax
test esi, esi
js 0x403c91
cmp edi, 2
je 0x403c44
test edi, edi
je 0x403ab4
cmp dword [ebp + 0x14], 0
jne 0x403c44
mov ecx, edi
jmp 0x403c8a
cmp dword [ebp + 0x14], 0
je 0x403b4a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x1148]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x403b4a
cmp eax, dword [ebp - 0x1118]
sbb eax, eax
neg eax
je 0x403b4a
mov edi, 0x48faa8
push dword [edi]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403c44
add edi, 4
cmp edi, 0x48fad8
jl 0x403b04
cmp dword [ebp - 0x1154], 0
je 0x403c44
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1148]
call fcn.00401890
jmp 0x403c44
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x1148]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x403b83
xor edi, edi
jmp 0x403b8f
xor eax, eax
cmp eax, dword [ebp - 0x1118]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x1148]
xor eax, eax
test ecx, ecx
je 0x403baa
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x1148], ecx
mov dword [ebp - 0x1144], 0
test eax, eax
jne 0x403c88
cmp dword [ebp - 0x1154], eax
je 0x403c44
test edi, edi
jne 0x403c44
cmp byte [0x494b5a], al
jne 0x403c0f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x403c01
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x494b54], eax
mov byte [0x494b5a], 1
jmp 0x403c14
mov eax, dword [0x494b54]
mov byte [0x494b5a], 1
jmp 0x403c14
mov eax, dword [0x494b54]
test eax, eax
je 0x403c2d
push 0
push 0
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 0x1150]
call eax
jmp 0x403c40
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x1150]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x403c88
cmp byte [ebx], 0x7d
jne 0x4035d0
jmp 0x403c91
mov ecx, eax
call fcn.004013d0
mov esi, eax
test edi, edi
je 0x403c91
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c91
mov ecx, eax
call fcn.004013d0
mov esi, eax
mov eax, dword [ebp - 0x113c]
test eax, eax
je 0x403c91
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c91
mov esi, 0x80020009
jmp 0x403c91
mov ecx, eax
call fcn.004013d0
mov esi, eax
mov eax, dword [ebp - 0x1148]
test eax, eax
je 0x403ca2
push eax
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 - 0x10]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret 0x10