Function at 0x40e210
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4484a2
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563d0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x164], ebx
call fcn.00401990
push 0x44d96c
lea ecx, [esp + 0xe8]
push ecx
push esi
mov byte [esp + 0x16c], 1
call fcn.00405890
push 0x44d978
lea edx, [esp + 0x104]
push edx
push esi
mov byte [esp + 0x16c], 2
call fcn.00405890
push str.path
lea eax, [esp + 0xcc]
push eax
push esi
mov byte [esp + 0x16c], 3
call fcn.00405890
push 0x44d99c
lea ecx, [esp + 0x120]
push ecx
push esi
mov byte [esp + 0x16c], 4
call fcn.00405890
push 0x44d784
lea edx, [esp + 0x13c]
push edx
push esi
mov byte [esp + 0x16c], 5
call fcn.00405890
mov byte [esp + 0x160], 6
mov eax, dword [esp + 0x130]
push 0x44d9a8
mov edi, 2
lea ecx, [esp + 0x120]
call fcn.00403d20
mov esi, eax
push str.Registry
neg esi
sbb esi, esi
push str.__s_
push 0x4575d0
xor eax, eax
add esi, 1
call fcn.00419220
add dword [0x4575f0], 1
add esp, 0xc
lea eax, [esp + 0x100]
push eax
push ecx
push 0x44d9b0
push ecx
lea ecx, [esp + 0xd8]
push ecx
push ecx
push 0x44d9b0
push ecx
lea edx, [esp + 0x104]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.004162c0
add esp, 0xc
push eax
call fcn.00403a80
add esp, 0xc
push eax
call fcn.004162c0
add esp, 0xc
push eax
call fcn.00403a80
add esp, 0xc
push eax
call fcn.004162c0
add esp, 8
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00401ad0
mov ebp, 8
mov byte [esp + 0x160], 7
cmp dword [eax + 0x18], ebp
jb 0x40e3b4
mov eax, dword [eax + 4]
jmp 0x40e3b7
add eax, 4
push eax
push str.Deleting___s_
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
mov byte [esp + 0x160], 6
cmp dword [esp + 0x38], ebp
jb 0x40e3e7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422ece
add esp, 4
mov eax, dword [esp + 0xf8]
push 0x44d9b8
mov edi, 4
lea ecx, [esp + 0xe8]
call fcn.00403d20
test eax, eax
jne 0x40e40f
mov ebp, 0x80000002
jmp 0x40e434
mov eax, dword [esp + 0xf8]
push str.HKCU
lea ecx, [esp + 0xe8]
call fcn.00403d20
test eax, eax
jne 0x40e6be
mov ebp, 0x80000001
cmp dword [esp + 0x114], ebx
jne 0x40e492
mov eax, dword [esp + 0x14c]
push 0x44dab4
mov edi, 3
lea ecx, [esp + 0x13c]
call fcn.00403d20
mov ecx, dword [esp + 0xcc]
test eax, eax
mov edi, 8
sete al
cmp dword [esp + 0xe0], edi
jae 0x40e47b
lea ecx, [esp + 0xcc]
movzx edx, al
push edx
mov eax, esi
mov edx, ebp
call fcn.0041d390
add esp, 4
mov esi, eax
jmp 0x40e55b
cmp dword [esp + 0xe0], 8
mov edi, dword [esp + 0xcc]
jae 0x40e4aa
lea edi, [esp + 0xcc]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40e4b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
sub esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
je 0x40e4e0
sub esi, 1
jne 0x40e4f8
call fcn.00420bb0
test al, al
je 0x40e50e
mov eax, 0x100
mov dword [esp + 0x1c], eax
jmp 0x40e4f8
call fcn.00420bb0
test al, al
je 0x40e4f4
mov eax, 0x200
mov dword [esp + 0x1c], eax
jmp 0x40e4f8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
or eax, 0xf003f
push eax
push ebx
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x40e513
mov eax, 3
cmp eax, ebx
mov esi, eax
jne 0x40e5a3
cmp dword [esp + 0x118], 8
mov eax, dword [esp + 0x104]
jae 0x40e535
lea eax, [esp + 0x104]
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40e552
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov edi, 8
cmp esi, ebx
jne 0x40e5a8
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00401ad0
mov byte [esp + 0x160], 8
cmp dword [eax + 0x18], edi
jb 0x40e57e
mov eax, dword [eax + 4]
jmp 0x40e581
add eax, 4
push eax
push str.Deleted:__s
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
cmp dword [esp + 0x38], edi
jb 0x40e600
mov eax, dword [esp + 0x24]
push eax
jmp 0x40e5f8
mov edi, 8
cmp esi, 2
je 0x40e600
cmp esi, 3
je 0x40e600
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00401ad0
mov byte [esp + 0x160], 9
cmp dword [eax + 0x18], edi
jb 0x40e5d1
mov eax, dword [eax + 4]
jmp 0x40e5d4
add eax, 4
push eax
push esi
push str.Error_0x_X_deleting__s
push 0x4575d0
mov eax, 2
call fcn.00419220
add esp, 0x10
cmp dword [esp + 0x38], edi
jb 0x40e600
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422ece
add esp, 4
sub dword [0x4575f0], 1
cmp dword [esp + 0x150], edi
jb 0x40e620
mov edx, dword [esp + 0x13c]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x134], edi
mov esi, 7
mov dword [esp + 0x150], esi
mov dword [esp + 0x14c], ebx
mov word [esp + 0x13c], bx
jb 0x40e654
mov eax, dword [esp + 0x120]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xe0], edi
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], bx
jb 0x40e683
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x118], edi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
jb 0x40e6b2
mov edx, dword [esp + 0x104]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xfc], edi
jmp 0x40e78e
push str.Uninstall_key_format_error
push 0x4575d0
mov eax, 2
call fcn.00419220
sub dword [0x4575f0], 1
add esp, 8
cmp dword [esp + 0x150], ebp
jb 0x40e6f5
mov edx, dword [esp + 0x13c]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x134], ebp
mov esi, 7
mov dword [esp + 0x150], esi
mov dword [esp + 0x14c], ebx
mov word [esp + 0x13c], bx
jb 0x40e729
mov eax, dword [esp + 0x120]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], bx
jb 0x40e758
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x118], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
jb 0x40e787
mov edx, dword [esp + 0x104]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xfc], ebp
mov word [esp + 0x104], bx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], esi
jb 0x40e7b6
mov eax, dword [esp + 0xe8]
push eax
call fcn.00422ece
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], bx
mov byte [esp + 0x160], bl
call fcn.00401a30
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.00421af8
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x40e809
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00422834
add esp, 0x150
ret