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

Disassembly:
sub esp, 0x228
mov eax, dword [0x42efe0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x230]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x240]
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x20], ecx
push edi
mov ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408da3
cmp byte [edi], 0x7d
push ebp
je 0x408da0
jmp 0x4087e4
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x18], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
add ebp, 1
call esi
test eax, eax
je 0x408817
test ebp, ebp
je 0x4088fc
push edi
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
xor esi, esi
cmp dword [esp + 0x244], esi
je 0x4088fe
mov cl, byte [edi]
test cl, cl
mov dword [esp + 0x18], esi
mov eax, edi
je 0x408860
cmp cl, 0x5c
je 0x408858
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x408844
jmp 0x408860
cmp eax, esi
jne 0x408d36
push edi
mov ecx, ebx
call fcn.00407430
test eax, eax
je 0x408882
mov edx, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.004075e0
mov dword [esp + 0x18], esi
cmp ebp, esi
je 0x4088fe
push edi
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d4f
push edi
mov ecx, ebx
call fcn.004074c0
mov esi, eax
test esi, esi
jl 0x408d4f
cmp byte [edi], 0x7b
jne 0x4088ee
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x4088ee
mov edx, dword [esp + 0x244]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
push edi
mov ecx, ebx
call fcn.00408780
mov esi, eax
test esi, esi
jl 0x408d91
push edi
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
cmp byte [edi], 0x7d
jne 0x4087e0
jmp 0x408d91
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408926
push edi
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
xor esi, esi
push 0x424528
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408a26
lea eax, [esp + 0x130]
push eax
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
push edi
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
cmp byte [edi], 0x3d
jne 0x408d3f
xor ebp, ebp
cmp dword [esp + 0x244], ebp
je 0x4089bb
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebx
call fcn.00408410
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x10], ebp
jge 0x4088aa
lea ecx, [esp + 0x10]
call fcn.004075c0
lea ecx, [esp + 0x14]
call fcn.004075c0
jmp 0x408da0
cmp dword [esp + 0x248], ebp
jne 0x408a15
cmp dword [esp + 0x10], ebp
je 0x408a15
mov ecx, dword [esp + 0x1c]
push 0x20006
push ebp
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00406f50
cmp eax, ebp
jne 0x408d7d
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x130]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x408a0a
cmp eax, 2
jne 0x408d7d
cmp esi, ebp
je 0x408a15
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebx
call fcn.004074c0
mov esi, eax
cmp esi, ebp
jmp 0x4088e8
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x408a4c
mov edi, edi
cmp cl, 0x5c
je 0x408a44
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x408a30
jmp 0x408a4c
cmp eax, esi
jne 0x408d3f
cmp dword [esp + 0x244], esi
je 0x408b66
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push esi
push edi
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408a9b
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x408a89
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x408b2d
xor esi, esi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408ad7
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x408acb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x408b2d
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x408d55
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x408b1b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x14], ecx
jne 0x408d55
push edi
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
cmp byte [edi], 0x3d
jne 0x4088aa
push edi
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.00408410
mov esi, eax
test esi, esi
jl 0x408d91
jmp 0x4088aa
cmp dword [esp + 0x248], esi
jne 0x408c7b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408bab
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x408ba3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, esi
mov ebp, eax
mov dword [esp + 0x18], ebp
je 0x408bc0
mov dword [esp + 0x248], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00416b3c
push eax
call fcn.00404dc0
add esp, 0x14
push edi
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
push edi
mov ecx, ebx
call fcn.004074c0
mov esi, eax
test esi, esi
jl 0x408d91
cmp byte [edi], 0x7b
jne 0x408c4b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x408c4b
mov ebp, dword [esp + 0x248]
mov ecx, dword [esp + 0x14]
push ebp
push 0
push ecx
push edi
mov ecx, ebx
call fcn.00408780
mov esi, eax
test esi, esi
jge 0x408c35
test ebp, ebp
je 0x408d91
push edi
mov ecx, ebx
call fcn.00407300
mov esi, eax
test esi, esi
jl 0x408d91
mov ebp, dword [esp + 0x18]
cmp ebp, 2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x248], eax
je 0x4088ee
test ebp, ebp
je 0x408c8c
test eax, eax
jne 0x4088ee
push ebp
call fcn.00406e40
add esp, 4
mov esi, eax
jmp 0x408d91
mov dword [esp + 0x18], 2
mov ebp, dword [esp + 0x18]
jmp 0x408bb5
test eax, eax
je 0x408cd2
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
call fcn.00407470
test eax, eax
je 0x408cd2
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.00407430
test eax, eax
je 0x4088ee
cmp dword [esp + 0x10], 0
je 0x4088ee
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.004075e0
jmp 0x4088ee
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ebp
call fcn.00407470
test ebp, ebp
mov ebx, eax
je 0x408cfd
mov edx, ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], 0
jne 0x408d69
cmp dword [esp + 0x10], 0
je 0x4088ee
test ebx, ebx
jne 0x4088ee
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov dword [esp + 0x10], ebx
jne 0x408d7d
lea ecx, [esp + 0x10]
call fcn.004075c0
jmp 0x4088ee
lea ecx, [esp + 0x18]
call fcn.004075c0
lea ecx, [esp + 0x14]
call fcn.004075c0
mov eax, 0x80020009
jmp 0x408da2
lea ecx, [esp + 0x18]
jmp 0x408d8c
lea ecx, [esp + 0x14]
call fcn.004075c0
push esi
call fcn.00406e40
add esp, 4
jmp 0x408da2
lea ecx, [esp + 0x14]
call fcn.004075c0
push ebp
call fcn.00406e40
add esp, 4
jmp 0x408da2
push eax
call fcn.00406e40
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.004075c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408da0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415c68
add esp, 0x228
ret 0x10