Function at 0x40492a
Capabilities:
Delete file
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
mov eax, 0x413a14
call fcn.0040b0c0
sub esp, 0xf8
mov eax, dword [0x419d18]
and byte [ebp - 0xd], 0
test eax, eax
push ebx
push esi
push edi
jne 0x40494e
xor esi, esi
jmp 0x404950
mov esi, dword [eax]
xor edi, edi
push 0x10
inc edi
cmp esi, eax
pop ebx
je 0x404aaa
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401896
and dword [ebp - 4], 0
cmp dword [0x4190f0], ebx
mov ecx, dword [0x4190dc]
jae 0x404981
mov ecx, 0x4190dc
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x2c]
jae 0x40498c
lea eax, [ebp - 0x2c]
push ecx
push eax
call fcn.0041323e
test eax, eax
pop ecx
pop ecx
je 0x4049d0
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x2c]
jae 0x4049a4
lea eax, [ebp - 0x2c]
push 0x415548
push eax
call fcn.0040b77b
test eax, eax
pop ecx
pop ecx
jne 0x4049c9
lea eax, [ebp - 0x30]
push eax
call fcn.00407400
test al, al
pop ecx
je 0x4049d0
mov byte [ebp - 0xd], 1
jmp 0x4049d0
push eax
call fcn.0040b6ce
pop ecx
mov esi, dword [esi]
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x30]
call fcn.004012d4
mov eax, dword [0x419d18]
cmp esi, eax
jne 0x40495e
cmp byte [ebp - 0xd], 0
je 0x404aaa
push str._UNINSTALL_ENSURE_NOT_RUNNING_TITLE_
lea ecx, [ebp - 0x30]
call fcn.00401a09
push str._UNINSTALL_ENSURE_NOT_RUNNING_TEXT_
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], edi
call fcn.00401a09
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 2
call fcn.004043ec
mov esi, eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 3
call fcn.004043ec
add esp, 0x10
cmp dword [esi + 0x18], ebx
jb 0x404a4a
mov esi, dword [esi + 4]
jmp 0x404a4d
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x404a57
mov eax, dword [eax + 4]
jmp 0x404a5a
add eax, 4
push 0x31
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
push edi
lea ecx, [ebp - 0xcc]
sete bl
call fcn.004012d4
push edi
lea ecx, [ebp - 0x94]
call fcn.004012d4
push edi
lea ecx, [ebp - 0x58]
call fcn.004012d4
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x30]
call fcn.004012d4
test bl, bl
mov eax, dword [0x419d18]
je 0x404aaa
mov byte [0x419ce9], 1
test eax, eax
jne 0x404ab2
xor edi, edi
jmp 0x404ab4
mov edi, dword [eax]
cmp byte [0x419ce9], 0
jne 0x404ba8
and dword [ebp - 0x14], 0
xor ebx, ebx
inc ebx
jmp 0x404acf
mov eax, dword [0x419d18]
cmp edi, eax
je 0x404ba8
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401896
cmp dword [0x4190f0], 0x10
mov ecx, dword [0x4190dc]
mov dword [ebp - 4], 4
jae 0x404afe
mov ecx, 0x4190dc
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x404b0a
lea eax, [ebp - 0x2c]
push ecx
push eax
call fcn.0041323e
test eax, eax
pop ecx
pop ecx
je 0x404c37
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x404b27
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
lea eax, [ebp - 0x30]
push eax
jne 0x404bbc
call fcn.00407400
test al, al
pop ecx
je 0x404c37
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xcc]
push str.Failed_to_Delete_
push eax
call fcn.00401fb6
push 0x415228
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 5
call fcn.00401f6a
push eax
call fcn.004036c6
add esp, 0x1c
push ebx
lea ecx, [ebp - 0x94]
call fcn.004012d4
push ebx
lea ecx, [ebp - 0xcc]
call fcn.004012d4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x30]
mov byte [0x419ce9], 1
call fcn.004012d4
mov eax, dword [0x419d24]
test eax, eax
jne 0x404c6c
xor esi, esi
jmp 0x404c6e
lea ecx, [ebp - 0x74]
call fcn.00401896
mov byte [ebp - 4], 6
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00407870
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.0040177b
push ebx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call fcn.004012d4
mov esi, dword [0x419cf4]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x419cf0
call fcn.00403af4
cmp dword [eax], esi
jne 0x404c2e
cmp dword [ebp - 0x5c], 0x10
mov eax, dword [ebp - 0x70]
jae 0x404c23
lea eax, [ebp - 0x70]
push eax
call fcn.004134f6
test eax, eax
pop ecx
je 0x404bc8
push ebx
lea ecx, [ebp - 0x74]
call fcn.004012d4
add dword [ebp - 0x14], 0x3c
mov eax, dword [ebp - 0x14]
xor edx, edx
div dword [0x419d1c]
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x30]
mov dword [0x419ce0], eax
mov edi, dword [edi]
call fcn.004012d4
cmp byte [0x419ce9], 0
je 0x404aca
jmp 0x404ba8
mov esi, dword [eax]
cmp byte [0x419ce9], 0
jne 0x404d29
jmp 0x404c82
mov eax, dword [0x419d24]
cmp esi, eax
je 0x404d29
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401896
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 8
call fcn.00403e32
pop ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401896
mov byte [ebp - 4], 9
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00407870
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0040177b
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
call fcn.004012d4
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x404cf7
lea eax, [ebp - 0x54]
push eax
call fcn.004134f6
test eax, eax
pop ecx
je 0x404cb7
mov esi, dword [esi]
push 1
lea ecx, [ebp - 0x58]
call fcn.004012d4
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.004012d4
cmp byte [0x419ce9], 0
je 0x404c7d
mov ecx, dword [0x419d0c]
test ecx, ecx
mov dword [0x419ce0], 0x5a
jne 0x404d41
xor eax, eax
jmp 0x404d43
mov eax, dword [ecx]
cmp byte [0x419ce9], 0
mov dword [ebp - 0x14], eax
jne 0x404fe3
xor esi, esi
xor edi, edi
inc esi
jmp 0x404d60
mov ecx, dword [0x419d0c]
cmp dword [ebp - 0x14], ecx
je 0x404fe3
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
lea ecx, [ebp - 0x58]
call fcn.00401896
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x18], 0xf
call fcn.004011ad
push 5
push edi
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.00403e61
push str.HKLM_
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.004012b2
mov ebx, eax
neg ebx
sbb bl, bl
push esi
lea ecx, [ebp - 0x94]
inc bl
mov byte [ebp - 4], 0xc
call fcn.004012d4
test bl, bl
lea ecx, [ebp - 0x58]
je 0x404e03
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0x38], 0x80000002
call fcn.00403e61
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.0040177b
lea ecx, [ebp - 0xcc]
jmp 0x404e6c
push 5
push edi
lea eax, [ebp - 0x74]
push eax
call fcn.00403e61
push str.HKCU_
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.004012b2
mov ebx, eax
neg ebx
sbb bl, bl
push esi
lea ecx, [ebp - 0x74]
inc bl
mov byte [ebp - 4], 0xc
call fcn.004012d4
test bl, bl
je 0x404f81
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x38], 0x80000001
call fcn.00403e61
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.0040177b
lea ecx, [ebp - 0xb0]
push esi
mov byte [ebp - 4], 0xc
call fcn.004012d4
cmp byte [0x419ceb], 0
je 0x404edd
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407480
push eax
lea eax, [ebp - 0xe8]
push eax
mov byte [ebp - 4], 0x12
call fcn.00407560
add esp, 0x10
mov ebx, dword [0x419d48]
push eax
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x419d44
mov byte [ebp - 4], 0x13
call fcn.00403af4
cmp dword [eax], ebx
push esi
lea ecx, [ebp - 0xe8]
sete bl
call fcn.004012d4
push esi
lea ecx, [ebp - 0x104]
call fcn.004012d4
test bl, bl
je 0x404f54
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x404ee9
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404f54
mov eax, dword [ebp - 0x14]
add eax, 8
cmp dword [eax + 0x34], 0x10
jb 0x404f0c
mov eax, dword [eax + 0x20]
jmp 0x404f0f
add eax, 0x20
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x3c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], edi
jne 0x404f54
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x404f4a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], eax
call fcn.004012d4
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x58]
call fcn.004012d4
cmp byte [0x419ce9], 0
je 0x404d5a
jmp 0x404fe3
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xe8]
push str.Invalid_Key_
push eax
call fcn.00401fb6
push 0x415228
push eax
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 0x11
call fcn.00401f6a
push eax
call fcn.004036c6
add esp, 0x1c
push esi
lea ecx, [ebp - 0x104]
call fcn.004012d4
push esi
lea ecx, [ebp - 0xe8]
call fcn.004012d4
push esi
lea ecx, [ebp - 0x30]
call fcn.004012d4
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x58]
call fcn.004012d4
mov eax, dword [0x419d3c]
test eax, eax
jne 0x404ff0
xor edi, edi
jmp 0x404ff2
mov edi, dword [eax]
cmp byte [0x419ce9], 0
jne 0x4051e7
xor esi, esi
inc esi
jmp 0x405009
mov eax, dword [0x419d3c]
cmp edi, eax
je 0x4051e7
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00401896
push 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x5c], 0xf
call fcn.004011ad
push 5
push 0
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x15
call fcn.00403e61
push str.HKLM_
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.004012b2
mov ebx, eax
neg ebx
sbb bl, bl
push esi
lea ecx, [ebp - 0x104]
inc bl
mov byte [ebp - 4], 0x15
call fcn.004012d4
test bl, bl
lea ecx, [ebp - 0xb0]
je 0x4050b2
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0xe8]
push eax
mov ebx, 0x80000002
call fcn.00403e61
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x17
call fcn.0040177b
lea ecx, [ebp - 0xe8]
jmp 0x405124
push 5
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.00403e61
push str.HKCU_
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.004012b2
mov ebx, eax
neg ebx
sbb bl, bl
push esi
lea ecx, [ebp - 0x94]
inc bl
mov byte [ebp - 4], 0x15
call fcn.004012d4
test bl, bl
je 0x405183
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xb0]
mov ebx, 0x80000001
call fcn.00403e61
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x19
call fcn.0040177b
lea ecx, [ebp - 0xcc]
push esi
mov byte [ebp - 4], 0x15
call fcn.004012d4
cmp dword [ebp - 0x60], 0
je 0x4051d2
sub esp, 0x1c
lea eax, [ebp - 0x74]
mov ecx, esp
mov dword [ebp - 0x78], esp
push eax
call fcn.00401896
lea eax, [ebp - 0xb0]
push eax
push ebx
call fcn.00403eae
mov edi, dword [edi]
add esp, 0x24
push esi
lea ecx, [ebp - 0x74]
call fcn.004012d4
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0xb0]
call fcn.004012d4
cmp byte [0x419ce9], 0
je 0x405004
jmp 0x4051e7
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xe8]
push str.Invalid_Key_
push eax
call fcn.00401fb6
push 0x415228
push eax
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00401f6a
push eax
call fcn.004036c6
add esp, 0x1c
push esi
lea ecx, [ebp - 0x104]
call fcn.004012d4
push esi
lea ecx, [ebp - 0xe8]
call fcn.004012d4
lea ecx, [ebp - 0x74]
push esi
call fcn.004012d4
lea ecx, [ebp - 0xb0]
push esi
call fcn.004012d4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [0x419ce0], 0x64
mov byte [0x419ce8], 1
mov dword fs:[0], ecx
pop ebx
leave
ret