Function at 0x422190
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce298
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x64b4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x42c], eax
call fcn.004086a0
mov ecx, eax
test ecx, ecx
je 0x42262e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push str.__fromnewinstall
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.00407a70
test al, al
jne 0x422216
push 0x11
push str.__fromnewinstall
lea ecx, [ebp - 0x428]
call fcn.00408e60
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 4
push eax
push str.shortcut
push str.SOFTWAREUltra_Uninstaller
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x430], 4
call esi
or edi, 0xffffffff
test eax, eax
jne 0x42227b
cmp dword [ebp - 0x43c], 1
je 0x42259b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00523fd0
add esp, 0xc
mov dword [ebp - 0x434], 1
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x434]
push eax
push str.Setup_Path
push str.SOFTWAREUltra_Uninstaller
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4222d9
mov ebx, 2
jmp 0x42259b
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4222e2
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x218]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00408e60
push str.UltraUninstaller.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42232f
lea ebx, [eax + 2]
jmp 0x42259b
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00523fd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x654d5c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004086a0
mov ecx, eax
test ecx, ecx
je 0x422638
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 2
call fcn.004086a0
mov ecx, eax
test ecx, ecx
je 0x422642
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x424]
call fcn.00407a70
test al, al
jne 0x4223e2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00408e60
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00415730
mov edx, dword [ebp - 0x424]
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42241d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004086a0
mov ecx, eax
test ecx, ecx
je 0x42264c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 5
call fcn.004086a0
mov ecx, eax
test ecx, ecx
je 0x422656
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x424]
call fcn.00407a70
test al, al
jne 0x4224a2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422480
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00408e60
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00415730
mov edx, dword [ebp - 0x424]
add esp, 8
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4224dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x42c]
cmp dword [esi - 0xc], 0
jne 0x422513
mov ebx, 2
add esi, 0xfffffff0
mov byte [ebp - 4], bl
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x422508
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x438]
add edx, 0xfffffff0
jmp 0x422583
mov edi, dword [ebp - 0x438]
push edi
push esi
call fcn.004103d0
add esp, 8
lea ecx, [ebp - 0x428]
test eax, eax
jns 0x42253e
push 0
push 0x5e68b0
call fcn.00408e60
or ebx, 0xffffffff
jmp 0x422561
jne 0x422550
push 0
push 0x5e68b0
call fcn.00408e60
xor ebx, ebx
jmp 0x422561
push 0x10
push str.__fromupinstall
mov ebx, 1
call fcn.00408e60
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42257d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42259b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x428]
cmp dword [esi - 4], 1
jle 0x4225bb
push dword [esi - 0xc]
lea ecx, [ebp - 0x428]
call fcn.004085f0
mov esi, dword [ebp - 0x428]
call fcn.0041c300
add eax, 0x40
mov dword [ebp - 0x42c], eax
test esi, esi
jne 0x4225d1
xor ecx, ecx
jmp 0x4225eb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4225d6
mov eax, dword [ebp - 0x42c]
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.00408e60
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x422610
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465678
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407a50
push 0x80004005
call fcn.00407a50
push 0x80004005
call fcn.00407a50
push 0x80004005
call fcn.00407a50
push 0x80004005
call fcn.00407a50
int3