Function at 0x412620
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4424b2
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4513e0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x164], ebx
call fcn.00405630
lea ecx, [esp + 0xe4]
push ecx
push esi
mov ecx, 0x4477d8
mov byte [esp + 0x168], 1
call fcn.00408280
lea edx, [esp + 0x100]
push edx
push esi
mov ecx, 0x4477e4
mov byte [esp + 0x168], 2
call fcn.00408280
lea eax, [esp + 0xc8]
push eax
push esi
mov ecx, str.path
mov byte [esp + 0x168], 3
call fcn.00408280
lea ecx, [esp + 0x138]
push ecx
push esi
mov ecx, 0x447808
mov byte [esp + 0x168], 4
call fcn.00408280
lea edx, [esp + 0x11c]
push edx
push esi
mov ecx, 0x447594
mov byte [esp + 0x168], 5
call fcn.00408280
mov byte [esp + 0x160], 6
mov eax, dword [esp + 0x14c]
push 0x447814
mov edi, 2
lea ecx, [esp + 0x13c]
call fcn.00404360
mov esi, dword [esi + 4]
push esi
mov ebp, eax
push str.Registry
neg ebp
sbb ebp, ebp
push str.__s____d_
push 0x4524d8
xor eax, eax
add ebp, 1
call fcn.0041eee0
add dword [0x4524f8], 1
add esp, 0x10
lea eax, [esp + 0x100]
push eax
push ecx
push 0x44781c
push ecx
lea ecx, [esp + 0xd8]
push ecx
push ecx
push 0x44781c
push ecx
lea edx, [esp + 0x104]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.004069e0
add esp, 0xc
push eax
call fcn.00406c60
add esp, 0xc
push eax
call fcn.004069e0
add esp, 0xc
push eax
call fcn.00406c60
add esp, 0xc
push eax
call fcn.004069e0
add esp, 8
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00405770
mov esi, 8
mov byte [esp + 0x160], 7
cmp dword [eax + 0x18], esi
jb 0x4127c8
mov eax, dword [eax + 4]
jmp 0x4127cb
add eax, 4
push eax
push str.Deleting___s_
push 0x4524d8
xor eax, eax
call fcn.0041eee0
add esp, 0xc
mov byte [esp + 0x160], 6
cmp dword [esp + 0x38], esi
jb 0x4127fb
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00429d64
add esp, 4
mov eax, dword [esp + 0xf8]
push 0x447824
mov edi, 4
lea ecx, [esp + 0xe8]
call fcn.00404360
test eax, eax
jne 0x412826
mov dword [esp + 0x1c], 0x80000002
jmp 0x412874
mov eax, dword [esp + 0xf8]
push str.HKCU
lea ecx, [esp + 0xe8]
call fcn.00404360
test eax, eax
jne 0x41284c
mov dword [esp + 0x1c], 0x80000001
jmp 0x412874
mov eax, dword [esp + 0xf8]
push str.HKCR
lea ecx, [esp + 0xe8]
call fcn.00404360
test eax, eax
jne 0x412b34
mov dword [esp + 0x1c], 0x80000000
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00405770
mov byte [esp + 0x160], 8
cmp dword [eax + 0x18], esi
jb 0x412893
mov eax, dword [eax + 4]
jmp 0x412896
add eax, 4
mov ebx, eax
mov ecx, 0xbbf
call fcn.00425dd0
mov esi, 8
mov byte [esp + 0x160], 6
cmp dword [esp + 0x38], esi
jb 0x4128c2
mov edx, dword [esp + 0x24]
push edx
call fcn.00429d64
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x114], ebx
jne 0x412924
mov eax, dword [esp + 0x130]
push 0x44792c
mov edi, 3
lea ecx, [esp + 0x120]
call fcn.00404360
mov ecx, dword [esp + 0xcc]
test eax, eax
sete al
cmp dword [esp + 0xe0], esi
jae 0x412906
lea ecx, [esp + 0xcc]
mov edx, dword [esp + 0x1c]
movzx eax, al
push eax
mov eax, ebp
call fcn.0041f620
add esp, 4
mov esi, eax
mov edi, 8
jmp 0x4129eb
cmp dword [esp + 0xe0], esi
mov esi, dword [esp + 0xcc]
jae 0x41293b
lea esi, [esp + 0xcc]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41294a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
sub ebp, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
je 0x412971
sub ebp, 1
jne 0x412989
call fcn.004232a0
test al, al
je 0x4129a3
mov eax, 0x100
mov dword [esp + 0x18], eax
jmp 0x412989
call fcn.004232a0
test al, al
je 0x412985
mov eax, 0x200
mov dword [esp + 0x18], eax
jmp 0x412989
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
or eax, 0xf003f
push eax
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x4129a8
mov eax, 3
cmp eax, ebx
mov esi, eax
mov edi, 8
jne 0x4129ef
cmp dword [esp + 0x118], edi
mov eax, dword [esp + 0x104]
jae 0x4129ca
lea eax, [esp + 0x104]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4129e7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x412a47
cmp esi, 2
je 0x412a47
cmp esi, 3
je 0x412a47
lea ecx, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.00405770
mov byte [esp + 0x160], 9
cmp dword [eax + 0x18], edi
jb 0x412a18
mov eax, dword [eax + 4]
jmp 0x412a1b
add eax, 4
push eax
push esi
push str.Error_0x_X_deleting__s
push 0x4524d8
mov eax, 2
call fcn.0041eee0
add esp, 0x10
cmp dword [esp + 0x38], edi
jb 0x412a47
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00429d64
add esp, 4
sub dword [0x4524f8], 1
cmp dword [esp + 0x134], edi
jb 0x412a67
mov edx, dword [esp + 0x120]
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x150], edi
mov esi, 7
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], bx
jb 0x412a9b
mov eax, dword [esp + 0x13c]
push eax
call fcn.00429d64
add esp, 4
cmp dword [esp + 0xe0], edi
mov dword [esp + 0x150], esi
mov dword [esp + 0x14c], ebx
mov word [esp + 0x13c], bx
jb 0x412aca
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x118], edi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
jb 0x412af9
mov edx, dword [esp + 0x104]
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0xfc], edi
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], bx
jb 0x412b28
mov eax, dword [esp + 0xe8]
push eax
call fcn.00429d64
add esp, 4
mov dword [esp + 0xfc], esi
jmp 0x412c33
push str.Uninstall_key_format_error
push 0x4524d8
mov eax, 2
call fcn.0041eee0
sub dword [0x4524f8], 1
add esp, 8
cmp dword [esp + 0x134], esi
jb 0x412b6b
mov edx, dword [esp + 0x120]
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x150], esi
mov edi, 7
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], bx
jb 0x412b9f
mov eax, dword [esp + 0x13c]
push eax
call fcn.00429d64
add esp, 4
cmp dword [esp + 0xe0], esi
mov dword [esp + 0x150], edi
mov dword [esp + 0x14c], ebx
mov word [esp + 0x13c], bx
jb 0x412bce
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x118], esi
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
jb 0x412bfd
mov edx, dword [esp + 0x104]
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0xfc], esi
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], bx
jb 0x412c2c
mov eax, dword [esp + 0xe8]
push eax
call fcn.00429d64
add esp, 4
mov dword [esp + 0xfc], edi
lea ecx, [esp + 0x90]
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], bx
mov byte [esp + 0x160], bl
call fcn.004056d0
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.00427f16
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x412c7f
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.004289ca
add esp, 0x150
ret