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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x41c060]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x41c060]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp + 0x250], ebx
mov dword [esp + 0x28], edx
call fcn.00402ad0
mov esi, eax
cmp esi, ebx
jl 0x4030cb
cmp byte [edi], 0x7d
je 0x4030c9
lea esp, [esp]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x2c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
add ebx, 1
call esi
test eax, eax
je 0x402cb3
test ebx, ebx
je 0x402daa
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
cmp dword [ebp + 0x10], 0
je 0x402daa
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x402cf6
cmp cl, 0x5c
je 0x402cee
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x402cda
jmp 0x402cf6
test eax, eax
jne 0x403193
mov esi, 0x418f28
jmp 0x402d00
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402d2b
add esi, 4
cmp esi, 0x418f58
jl 0x402d00
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00403950
test ebx, ebx
je 0x402daa
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
mov ecx, dword [esp + 0x1c]
call fcn.004038a0
mov esi, eax
test esi, esi
jl 0x4030ba
cmp byte [edi], 0x7b
jne 0x402d9c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x402d9c
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00402c00
mov esi, eax
test esi, esi
jl 0x4030ba
mov eax, edi
mov ecx, ebx
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
cmp byte [edi], 0x7d
jne 0x402c80
jmp 0x4030ba
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402dd3
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
mov ebx, dword [esp + 0x1c]
push 0x418e5c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402ed1
lea eax, [esp + 0x134]
mov ecx, ebx
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
mov eax, edi
mov ecx, ebx
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
cmp byte [edi], 0x3d
jne 0x403193
cmp dword [ebp + 0x10], 0
je 0x402e62
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x254], 1
mov dword [esp + 0x18], edx
push ecx
mov ecx, edi
mov edx, ebx
call fcn.00403230
mov esi, eax
test esi, esi
jl 0x4030ba
mov byte [esp + 0x250], 0
jmp 0x402d57
cmp dword [ebp + 0x14], 0
jne 0x402ec3
cmp dword [esp + 0x24], 0
je 0x402ec3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20006
push 0
push 0
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4030b3
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x134]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x402eb8
cmp eax, 2
jne 0x4031ac
test ebx, ebx
je 0x402ec3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
call fcn.004038a0
jmp 0x402d92
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x402efc
lea esp, [esp]
cmp cl, 0x5c
je 0x402ef4
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x402ee0
jmp 0x402efc
test eax, eax
jne 0x403193
cmp dword [ebp + 0x10], 0
je 0x402fc7
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x402f47
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402f3b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x402f92
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x402f7e
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402f72
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x402f92
push ebx
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.004031e0
test eax, eax
jne 0x4030b3
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
cmp byte [edi], 0x3d
jne 0x402d57
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
mov edx, ebx
call fcn.00403230
jmp 0x402d4d
cmp dword [ebp + 0x14], 0
jne 0x4030f1
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40300c
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403004
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
test eax, eax
mov dword [esp + 0x14], eax
je 0x40301b
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00409976
push eax
call fcn.00401e50
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
mov ecx, ebx
call fcn.004038a0
mov esi, eax
test esi, esi
jl 0x4030ba
cmp byte [edi], 0x7b
jne 0x403091
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x403091
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push 0
push edx
push edi
mov ecx, ebx
call fcn.00402c00
mov esi, eax
test esi, esi
jge 0x403082
cmp dword [ebp + 0x14], 0
je 0x4030ba
mov eax, edi
mov ecx, ebx
call fcn.00402ad0
mov esi, eax
test esi, esi
jl 0x4030ba
mov ecx, dword [esp + 0x14]
cmp ecx, 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x402d9c
test ecx, ecx
je 0x4030fe
test eax, eax
jne 0x402d9c
mov eax, ecx
call fcn.00403b00
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4030c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00409967
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x14], 2
jmp 0x403014
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x40313e
mov ecx, ebx
call fcn.00403aa0
test eax, eax
je 0x40313e
lea ebx, [esp + 0x2c]
call fcn.00403910
test eax, eax
je 0x402d9c
cmp dword [esp + 0x24], 0
je 0x402d9c
mov eax, ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403950
jmp 0x402d9c
mov ecx, ebx
call fcn.00403aa0
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x403160
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov dword [esp + 0x18], 0
jne 0x4031c7
cmp dword [esp + 0x24], 0
je 0x402d9c
cmp dword [esp + 0x14], 0
jne 0x402d9c
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4030b3
jmp 0x402d9c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4031a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4030cb
call fcn.00403b00
test ebx, ebx
mov esi, eax
je 0x4030ba
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4030ba
call fcn.00403b00
jmp 0x4030cb