Function at 0x40e120
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x448952
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
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 0x44d984
lea ecx, [esp + 0xe8]
push ecx
push esi
mov byte [esp + 0x16c], 1
call fcn.004057e0
push 0x44d990
lea edx, [esp + 0x104]
push edx
push esi
mov byte [esp + 0x16c], 2
call fcn.004057e0
push str.path
lea eax, [esp + 0xcc]
push eax
push esi
mov byte [esp + 0x16c], 3
call fcn.004057e0
push 0x44d9b4
lea ecx, [esp + 0x120]
push ecx
push esi
mov byte [esp + 0x16c], 4
call fcn.004057e0
push 0x44d79c
lea edx, [esp + 0x13c]
push edx
push esi
mov byte [esp + 0x16c], 5
call fcn.004057e0
mov byte [esp + 0x160], 6
mov eax, dword [esp + 0x130]
push 0x44d9c0
lea edi, [ebx + 2]
lea ecx, [esp + 0x120]
call fcn.00403c20
mov esi, eax
push str.Registry
neg esi
sbb esi, esi
push str.__s_
push 0x4575e0
xor eax, eax
add esi, 1
call fcn.00419140
add dword [0x457600], 1
add esp, 0xc
lea eax, [esp + 0x100]
push eax
push ecx
push 0x44d9c8
push ecx
lea ecx, [esp + 0xd8]
push ecx
push ecx
push 0x44d9c8
push ecx
lea edx, [esp + 0x104]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.004161b0
add esp, 0xc
push eax
call fcn.00403970
add esp, 0xc
push eax
call fcn.004161b0
add esp, 0xc
push eax
call fcn.00403970
add esp, 0xc
push eax
call fcn.004161b0
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 0x40e2c2
mov eax, dword [eax + 4]
jmp 0x40e2c5
add eax, 4
push eax
push str.Deleting___s_
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
mov byte [esp + 0x160], 6
cmp dword [esp + 0x38], ebp
jb 0x40e2f5
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422b32
add esp, 4
mov eax, dword [esp + 0xf8]
push 0x44d9d0
mov edi, 4
lea ecx, [esp + 0xe8]
call fcn.00403c20
test eax, eax
jne 0x40e31d
mov ebp, 0x80000002
jmp 0x40e342
mov eax, dword [esp + 0xf8]
push str.HKCU
lea ecx, [esp + 0xe8]
call fcn.00403c20
test eax, eax
jne 0x40e5cc
mov ebp, 0x80000001
cmp dword [esp + 0x114], ebx
jne 0x40e3a0
mov eax, dword [esp + 0x14c]
push 0x44dacc
mov edi, 3
lea ecx, [esp + 0x13c]
call fcn.00403c20
mov ecx, dword [esp + 0xcc]
test eax, eax
mov edi, 8
sete al
cmp dword [esp + 0xe0], edi
jae 0x40e389
lea ecx, [esp + 0xcc]
movzx edx, al
push edx
mov eax, esi
mov edx, ebp
call fcn.0041d210
add esp, 4
mov esi, eax
jmp 0x40e469
cmp dword [esp + 0xe0], 8
mov edi, dword [esp + 0xcc]
jae 0x40e3b8
lea edi, [esp + 0xcc]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40e3c7
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 0x40e3ee
sub esi, 1
jne 0x40e406
call fcn.00420b10
test al, al
je 0x40e41c
mov eax, 0x100
mov dword [esp + 0x1c], eax
jmp 0x40e406
call fcn.00420b10
test al, al
je 0x40e402
mov eax, 0x200
mov dword [esp + 0x1c], eax
jmp 0x40e406
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 0x40e421
mov eax, 3
cmp eax, ebx
mov esi, eax
jne 0x40e4b1
cmp dword [esp + 0x118], 8
mov eax, dword [esp + 0x104]
jae 0x40e443
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 0x40e460
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov edi, 8
cmp esi, ebx
jne 0x40e4b6
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00401ad0
mov byte [esp + 0x160], 8
cmp dword [eax + 0x18], edi
jb 0x40e48c
mov eax, dword [eax + 4]
jmp 0x40e48f
add eax, 4
push eax
push str.Deleted:__s
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
cmp dword [esp + 0x38], edi
jb 0x40e50e
mov eax, dword [esp + 0x24]
push eax
jmp 0x40e506
mov edi, 8
cmp esi, 2
je 0x40e50e
cmp esi, 3
je 0x40e50e
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00401ad0
mov byte [esp + 0x160], 9
cmp dword [eax + 0x18], edi
jb 0x40e4df
mov eax, dword [eax + 4]
jmp 0x40e4e2
add eax, 4
push eax
push esi
push str.Error_0x_X_deleting__s
push 0x4575e0
mov eax, 2
call fcn.00419140
add esp, 0x10
cmp dword [esp + 0x38], edi
jb 0x40e50e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422b32
add esp, 4
sub dword [0x457600], 1
cmp dword [esp + 0x150], edi
jb 0x40e52e
mov edx, dword [esp + 0x13c]
push edx
call fcn.00422b32
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 0x40e562
mov eax, dword [esp + 0x120]
push eax
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xe0], edi
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], bx
jb 0x40e591
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x118], edi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
jb 0x40e5c0
mov edx, dword [esp + 0x104]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xfc], edi
jmp 0x40e69c
push str.Uninstall_key_format_error
push 0x4575e0
mov eax, 2
call fcn.00419140
sub dword [0x457600], 1
add esp, 8
cmp dword [esp + 0x150], ebp
jb 0x40e603
mov edx, dword [esp + 0x13c]
push edx
call fcn.00422b32
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 0x40e637
mov eax, dword [esp + 0x120]
push eax
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], bx
jb 0x40e666
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x118], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
jb 0x40e695
mov edx, dword [esp + 0x104]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xfc], ebp
mov word [esp + 0x104], bx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], esi
jb 0x40e6c4
mov eax, dword [esp + 0xe8]
push eax
call fcn.00422b32
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.00422117
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x40e717
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.00422b23
add esp, 0x150
ret