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

Disassembly:
push 0xffffffffffffffff
push 0x476706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x4b9314]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x240]
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x244]
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x250]
mov dword [esp + 0x20], ecx
push edi
mov ecx, ebx
mov dword [esp + 0x240], ebp
call fcn.0040d350
mov esi, eax
cmp esi, ebp
jl 0x40eae7
cmp byte [edi], 0x7d
je 0x40eae7
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 0x494c4c
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x40e5d5
test ebp, ebp
je 0x40e6bc
push edi
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
mov eax, dword [esp + 0x24c]
xor esi, esi
cmp eax, esi
je 0x40e6be
mov cl, byte [edi]
test cl, cl
mov dword [esp + 0x18], esi
mov eax, edi
je 0x40e620
cmp cl, 0x5c
je 0x40e618
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40e604
jmp 0x40e620
cmp eax, esi
jne 0x40eb12
push edi
mov ecx, ebx
call fcn.0040d490
test eax, eax
je 0x40e642
mov edx, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.0040d660
mov dword [esp + 0x18], esi
cmp ebp, esi
je 0x40e6be
push edi
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40eb2b
push edi
mov ecx, ebx
call fcn.0040d520
mov esi, eax
test esi, esi
jl 0x40eb2b
cmp byte [edi], 0x7b
jne 0x40e6ae
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40e6ae
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.0040e530
mov esi, eax
test esi, esi
jl 0x40ead8
push edi
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
cmp byte [edi], 0x7d
jne 0x40e5a4
jmp 0x40ead8
xor esi, esi
push 0x494c40
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e6e6
push edi
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
xor esi, esi
push 0x494c58
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e7e6
lea eax, [esp + 0x12c]
push eax
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
push edi
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
cmp byte [edi], 0x3d
jne 0x40eb1b
mov eax, dword [esp + 0x24c]
xor ebp, ebp
cmp eax, ebp
je 0x40e77b
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebx
mov byte [esp + 0x248], 1
call fcn.0040e100
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x10], ebp
jl 0x40eb31
mov byte [esp + 0x23c], 0
jmp 0x40e66a
cmp dword [esp + 0x250], ebp
jne 0x40e7d5
cmp dword [esp + 0x10], ebp
je 0x40e7d5
mov ecx, dword [esp + 0x1c]
push 0x20006
push ebp
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.0040d020
cmp eax, ebp
jne 0x40eac4
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x12c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebp
je 0x40e7ca
cmp eax, 2
jne 0x40eac4
cmp esi, ebp
je 0x40e7d5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebx
call fcn.0040d520
mov esi, eax
cmp esi, ebp
jmp 0x40e6a8
mov cl, byte [edi]
test cl, cl
mov eax, edi
je 0x40e80c
mov edi, edi
cmp cl, 0x5c
je 0x40e804
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40e7f0
jmp 0x40e80c
cmp eax, esi
jne 0x40eb1b
cmp dword [esp + 0x24c], esi
je 0x40e926
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 0x40e85b
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40e849
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x40e8ed
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 0x40e897
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40e88b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x40e8ed
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
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 0x40eb45
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40e8db
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 0x40eb45
push edi
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
cmp byte [edi], 0x3d
jne 0x40e66a
push edi
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.0040e100
mov esi, eax
test esi, esi
jl 0x40ead8
jmp 0x40e66a
cmp dword [esp + 0x250], esi
jne 0x40ea24
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 0x40e96b
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x40e963
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
je 0x40e97c
mov dword [esp + 0x250], 1
push 0x104
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
push edi
mov ecx, ebx
call fcn.0040d520
mov esi, eax
test esi, esi
jl 0x40ead8
cmp byte [edi], 0x7b
jne 0x40e9f4
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push edi
mov ecx, ebx
call fcn.0040e530
mov esi, eax
test esi, esi
jge 0x40e9e2
mov eax, dword [esp + 0x250]
test eax, eax
je 0x40ead8
push edi
mov ecx, ebx
call fcn.0040d350
mov esi, eax
test esi, esi
jl 0x40ead8
cmp ebp, 2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x250], eax
je 0x40e6ae
test ebp, ebp
je 0x40ea2e
test eax, eax
jne 0x40e6ae
push ebp
call fcn.0040cfc0
add esp, 4
mov esi, eax
jmp 0x40ead8
mov ebp, 2
jmp 0x40e971
test eax, eax
je 0x40ea75
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0040d4d0
test eax, eax
je 0x40ea75
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.0040d490
test eax, eax
je 0x40e6ae
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e6ae
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.0040d660
jmp 0x40e6ae
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ea98
mov ecx, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], 0
jne 0x40eb59
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e6ae
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov dword [esp + 0x10], 0
je 0x40e6ae
push eax
call fcn.0040cfc0
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.0040d640
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40eae7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x224]
pop ebx
xor ecx, esp
call fcn.0044c1c4
add esp, 0x230
ret 0x10
lea ecx, [esp + 0x18]
call fcn.0040d640
lea ecx, [esp + 0x14]
call fcn.0040d640
mov eax, 0x80020009
jmp 0x40eae9
lea ecx, [esp + 0x18]
jmp 0x40ead3
lea ecx, [esp + 0x10]
call fcn.0040d640
lea ecx, [esp + 0x14]
call fcn.0040d640
jmp 0x40eae7
lea ecx, [esp + 0x14]
call fcn.0040d640
push esi
call fcn.0040cfc0
add esp, 4
jmp 0x40eae9
lea ecx, [esp + 0x14]
call fcn.0040d640
push ebp
call fcn.0040cfc0
add esp, 4
jmp 0x40eae9