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

Disassembly:
sub esp, 0x228
mov eax, dword [0x42482c]
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.00408c60
mov esi, eax
cmp esi, ebx
jge 0x40922a
lea ecx, [esp + 0x10]
call fcn.00409810
mov eax, esi
jmp 0x4097ce
cmp byte [edi], 0x7d
push ebp
je 0x4097c2
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x41f668
push edi
mov dword [esp + 0x18], 1
call esi
mov ebp, eax
neg ebp
push 0x41f67c
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x409265
cmp ebp, ebx
je 0x409385
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
cmp dword [esp + 0x244], ebx
je 0x409385
mov dword [esp + 0x18], ebx
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x4092b0
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x4092a8
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x409298
jmp 0x4092b0
cmp eax, ebx
jne 0x409760
mov esi, 0x41f598
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4092e8
add esi, 4
cmp esi, 0x41f5c8
jl 0x4092b5
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00409920
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x4092ec
mov eax, dword [esp + 0x18]
cmp ebp, ebx
je 0x40937a
mov ebp, dword [esp + 0x1c]
push edi
mov ecx, ebp
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x409779
push edi
mov ecx, ebp
call fcn.00409880
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.00409810
cmp esi, ebx
jl 0x4097c2
cmp byte [edi], 0x7b
jne 0x40936c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40936c
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.004091d0
mov esi, eax
cmp esi, ebx
jl 0x4097c2
push edi
mov ecx, ebp
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
cmp byte [edi], 0x7d
jne 0x409234
jmp 0x4097c2
cmp eax, ebx
je 0x409385
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41f670
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4093ad
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], ebx
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
push 0x41f688
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4094b5
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x130]
push edx
mov ecx, ebp
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
push edi
mov ecx, ebp
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
cmp byte [edi], 0x3d
jne 0x40977f
cmp dword [esp + 0x244], ebx
je 0x40942e
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.00409a50
mov esi, eax
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
jmp 0x409318
cmp dword [esp + 0x248], ebx
jne 0x4094a8
cmp dword [esp + 0x10], ebx
je 0x4094a8
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 0x409795
lea ecx, [esp + 0x18]
call fcn.00409810
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jne 0x409795
lea edx, [esp + 0x130]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x409499
cmp eax, 2
jne 0x409795
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4094a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebp
call fcn.00409880
jmp 0x409362
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x4094db
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x4094d3
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x4094c3
jmp 0x4094db
cmp eax, ebx
jne 0x409769
cmp dword [esp + 0x244], ebx
je 0x4095be
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 0x40951e
lea ecx, [esp + 0x14]
call fcn.00409810
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x40958a
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 0x40954a
lea ecx, [esp + 0x14]
call fcn.00409810
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x40958a
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 0x4097a1
lea ecx, [esp + 0x14]
call fcn.00409810
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jne 0x4097a1
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
cmp byte [edi], 0x3d
jne 0x409325
mov ecx, dword [esp + 0x1c]
push edi
push ebx
lea edx, [esp + 0x1c]
push edx
call fcn.00409a50
mov esi, eax
jmp 0x40931d
cmp dword [esp + 0x248], ebx
jne 0x4096b9
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 0x4095fb
lea ecx, [esp + 0x14]
call fcn.00409810
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, ebx
mov ebp, eax
je 0x40960c
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.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00409880
mov esi, eax
cmp esi, ebx
jl 0x4097c2
cmp byte [edi], 0x7b
jne 0x409689
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.004091d0
mov esi, eax
cmp esi, ebx
jge 0x409675
cmp dword [esp + 0x248], ebx
je 0x4097c2
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00408c60
mov esi, eax
cmp esi, ebx
jl 0x4097c2
cmp ebp, 2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x248], eax
je 0x40936c
cmp ebp, ebx
je 0x4096c3
cmp eax, ebx
jne 0x40936c
push ebp
call fcn.004097f0
add esp, 4
mov esi, eax
jmp 0x4097c2
mov ebp, 2
jmp 0x409601
cmp eax, ebx
je 0x40971f
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00409830
test eax, eax
je 0x40971f
mov ebp, 0x41f598
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 0x40936c
add ebp, 4
cmp ebp, 0x41f5c8
jl 0x4096e0
cmp dword [esp + 0x10], ebx
je 0x40936c
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00409920
jmp 0x40936c
lea ecx, [esp + 0x14]
call fcn.00409810
cmp eax, ebx
jne 0x4097a1
cmp dword [esp + 0x10], ebx
je 0x40936c
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 0x4097ae
lea ecx, [esp + 0x10]
call fcn.00409810
jmp 0x40936c
lea ecx, [esp + 0x18]
call fcn.00409810
lea ecx, [esp + 0x14]
call fcn.00409810
mov eax, 0x80020009
jmp 0x4097cd
lea ecx, [esp + 0x18]
jmp 0x4097bd
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40978e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4097cd
push eax
call fcn.004097f0
lea ecx, [esp + 0x1c]
jmp 0x4097b8
push eax
call fcn.004097f0
add esp, 4
mov esi, eax
jmp 0x4097c2
push eax
call fcn.004097f0
lea ecx, [esp + 0x14]
add esp, 4
mov esi, eax
call fcn.00409810
lea ecx, [esp + 0x14]
call fcn.00409810
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004144ff
add esp, 0x228
ret 0x10