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

Disassembly:
sub esp, 0x228
mov eax, dword [0x415310]
mov edx, dword [esp + 0x238]
xor eax, esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x23c]
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jge 0x402e9a
lea ecx, [esp + 0x10]
call fcn.00403480
mov eax, esi
jmp 0x40343e
cmp byte [edi], 0x7d
push ebp
je 0x403432
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
inc ebp
call esi
test eax, eax
je 0x402ed5
cmp ebp, ebx
je 0x402ff5
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
cmp dword [esp + 0x244], ebx
je 0x402ff5
mov dword [esp + 0x18], ebx
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x402f20
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x402f18
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x402f08
jmp 0x402f20
cmp eax, ebx
jne 0x4033d0
mov esi, 0x4121b8
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402f58
add esi, 4
cmp esi, str.TypeLib
jl 0x402f25
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00403590
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x402f5c
mov eax, dword [esp + 0x18]
cmp ebp, ebx
je 0x402fea
mov ebp, dword [esp + 0x1c]
push edi
mov ecx, ebp
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x4033e9
push edi
mov ecx, ebp
call fcn.004034f0
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.00403480
cmp esi, ebx
jl 0x403432
cmp byte [edi], 0x7b
jne 0x402fdc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x402fdc
mov eax, dword [esp + 0x244]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
push ebx
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00402e40
mov esi, eax
cmp esi, ebx
jl 0x403432
push edi
mov ecx, ebp
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
cmp byte [edi], 0x7d
jne 0x402ea4
jmp 0x403432
cmp eax, ebx
je 0x402ff5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40301d
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], ebx
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
push 0x4122a8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403125
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x130]
push edx
mov ecx, ebp
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
push edi
mov ecx, ebp
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
cmp byte [edi], 0x3d
jne 0x4033ef
cmp dword [esp + 0x244], ebx
je 0x40309e
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.004036c0
mov esi, eax
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
jmp 0x402f88
cmp dword [esp + 0x248], ebx
jne 0x403118
cmp dword [esp + 0x10], ebx
je 0x403118
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403405
lea ecx, [esp + 0x18]
call fcn.00403480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jne 0x403405
lea edx, [esp + 0x130]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403109
cmp eax, 2
jne 0x403405
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403118
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebp
call fcn.004034f0
jmp 0x402fd2
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x40314b
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x403143
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x403133
jmp 0x40314b
cmp eax, ebx
jne 0x4033d9
cmp dword [esp + 0x244], ebx
je 0x40322e
mov esi, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push edi
push esi
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x40318e
lea ecx, [esp + 0x14]
call fcn.00403480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x4031fa
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push edi
push esi
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x4031ba
lea ecx, [esp + 0x14]
call fcn.00403480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x4031fa
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x403411
lea ecx, [esp + 0x14]
call fcn.00403480
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jne 0x403411
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
cmp byte [edi], 0x3d
jne 0x402f95
mov ecx, dword [esp + 0x1c]
push edi
push ebx
lea edx, [esp + 0x1c]
push edx
call fcn.004036c0
mov esi, eax
jmp 0x402f8d
cmp dword [esp + 0x248], ebx
jne 0x403329
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push edi
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40326b
lea ecx, [esp + 0x14]
call fcn.00403480
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, ebx
mov ebp, eax
je 0x40327c
mov dword [esp + 0x248], 1
push 0x104
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004034f0
mov esi, eax
cmp esi, ebx
jl 0x403432
cmp byte [edi], 0x7b
jne 0x4032f9
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push edx
push edi
call fcn.00402e40
mov esi, eax
cmp esi, ebx
jge 0x4032e5
cmp dword [esp + 0x248], ebx
je 0x403432
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004028d0
mov esi, eax
cmp esi, ebx
jl 0x403432
cmp ebp, 2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x248], eax
je 0x402fdc
cmp ebp, ebx
je 0x403333
cmp eax, ebx
jne 0x402fdc
push ebp
call fcn.00403460
add esp, 4
mov esi, eax
jmp 0x403432
mov ebp, 2
jmp 0x403271
cmp eax, ebx
je 0x40338f
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004034a0
test eax, eax
je 0x40338f
mov ebp, 0x4121b8
mov edi, edi
mov edx, dword [ebp]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402fdc
add ebp, 4
cmp ebp, str.TypeLib
jl 0x403350
cmp dword [esp + 0x10], ebx
je 0x402fdc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403590
jmp 0x402fdc
lea ecx, [esp + 0x14]
call fcn.00403480
cmp eax, ebx
jne 0x403411
cmp dword [esp + 0x10], ebx
je 0x402fdc
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x40341e
lea ecx, [esp + 0x10]
call fcn.00403480
jmp 0x402fdc
lea ecx, [esp + 0x18]
call fcn.00403480
lea ecx, [esp + 0x14]
call fcn.00403480
mov eax, 0x80020009
jmp 0x40343d
lea ecx, [esp + 0x18]
jmp 0x40342d
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4033fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40343d
push eax
call fcn.00403460
lea ecx, [esp + 0x1c]
jmp 0x403428
push eax
call fcn.00403460
add esp, 4
mov esi, eax
jmp 0x403432
push eax
call fcn.00403460
lea ecx, [esp + 0x14]
add esp, 4
mov esi, eax
call fcn.00403480
lea ecx, [esp + 0x14]
call fcn.00403480
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040aa71
add esp, 0x228
ret 0x10