Function at 0x479870
Capabilities:
Check if file exists
Get installed programs
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560ea5
mov eax, dword fs:[0]
push eax
sub esp, 0xda4
mov eax, dword [0x61308c]
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 ebx, ecx
push 0xffffffffffffffff
push 0x5ac06c
lea ecx, [ebp - 0xcf8]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
mov dword [ebp - 4], 0
mov edx, str.STR_VER
push 0
push 0
lea ecx, [ebp - 0xc58]
call fcn.0044b7f0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4798dd
mov eax, dword [eax]
mov edi, dword [sym.imp.DTLUI.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__]
lea ecx, [ebp - 0xcf8]
push eax
call edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x47990e
inc eax
lea ecx, [ebp - 0xc58]
push eax
push dword [ebp - 0xc58]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0xc44], 7
push 0x5ac134
lea ecx, [ebp - 0xcf8]
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
call edi
mov esi, dword [0x61e774]
test esi, esi
jne 0x47997c
push 0x2a8
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0xd94], esi
mov byte [ebp - 4], 3
push 0x2a8
push 0
push esi
call fcn.0052d340
add esp, 0xc
mov ecx, esi
call fcn.00442c50
mov byte [ebp - 4], 0
mov dword [0x61e774], esi
lea eax, [ebp - 0xc58]
push eax
lea ecx, [esi + 0xc]
call fcn.004059c0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x479997
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xcf8]
call edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x4799c2
inc eax
lea ecx, [ebp - 0xc58]
push eax
push dword [ebp - 0xc58]
call fcn.00404be0
mov edi, dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
xor eax, eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
cmp dword [ebx + 0x694], eax
je 0x479f4d
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0052d340
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5ac138
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0xd80]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479b5c
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0052d340
mov dword [ebp - 0xc48], 0
add esp, 0xc
mov dword [ebp - 0xc44], 0
mov dword [ebp - 0xc44], 0xf
mov dword [ebp - 0xc48], 0
mov byte [ebp - 0xc58], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.0040c430
mov byte [ebp - 4], 8
lea eax, [ebp - 0xc58]
cmp dword [ebp - 0xc44], 0x10
push 0x5ac150
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.0052e7c1
add esp, 8
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc58]
call fcn.0040c3b0
test esi, esi
je 0x479f41
push esi
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.0053c03d
add esp, 0xc
test eax, eax
je 0x479b17
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0xd80]
call dword [sym.imp.DTLUI.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_char_const__]
lea ecx, [ebp - 0xd80]
call dword [sym.imp.DTLUI.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const]
test al, al
jne 0x479f41
mov esi, dword [sym.imp.DTLUI.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
lea ecx, [ebp - 0xd80]
call esi
push eax
lea ecx, [ebp - 0xcf8]
call esi
push eax
push str._sc_ff0000__s__c
push dword [ebx + 0x694]
call dword [sym.imp.DTLUI.dll_public:_void___cdecl_DuiLib::CLabelUI::SetFormatText_wchar_t_const__]
add esp, 0x10
jmp 0x479f41
mov eax, dword [ebx + 0x694]
lea ecx, [ebp - 0xcf8]
mov esi, dword [eax]
call dword [sym.imp.DTLUI.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
mov ecx, dword [ebx + 0x694]
push eax
call dword [esi + 0x2c]
xor eax, eax
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 0
mov dword [ebp - 0xc5c], 7
mov dword [ebp - 0xc60], 0
mov word [ebp - 0xc70], ax
mov byte [ebp - 4], 9
mov ecx, 0x2f
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall29FE44D7_BC89_4188_8B0E_F6BA073C15A4_is1
mov dword [ebp - 0xd84], eax
lea edi, [ebp - 0x830]
rep movsd dword es:[edi], dword [esi]
push 0x14a
push eax
lea eax, [ebp - 0x772]
push eax
movsw word es:[edi], word [esi]
call fcn.0052d340
add esp, 0xc
mov dword [ebp - 0xd98], 0x104
lea eax, [ebp - 0xd84]
mov dword [ebp - 0xd88], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x830]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479efc
push eax
push eax
lea eax, [ebp - 0xd9c]
push eax
lea eax, [ebp - 0xda0]
push eax
lea eax, [ebp - 0xd88]
push eax
push 0
lea eax, [ebp - 0xd98]
push eax
lea eax, [ebp - 0xda8]
push eax
push 0
push 0
push 0
push dword [ebp - 0xd84]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0052d340
add esp, 0xc
lea eax, [ebp - 0xc40]
push 0x208
push 0
push eax
call fcn.0052d340
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0xd88], esi
jbe 0x479ef0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0xd9c]
add eax, 2
mov dword [ebp - 0xda4], eax
mov eax, dword [ebp - 0xda0]
add eax, 2
mov dword [ebp - 0xd94], eax
lea eax, [ebp - 0xda4]
push eax
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0xdac]
push eax
push 0
lea eax, [ebp - 0xd94]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0xd84]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x218]
push str.DisplayVersion
push eax
call fcn.00533aae
add esp, 8
test eax, eax
jne 0x479ee3
lea eax, [ebp - 0xd8c]
mov dword [ebp - 0xd90], 1
push eax
push 0
lea eax, [ebp - 0xd90]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xd84]
call ebx
push dword [ebp - 0xd8c]
call fcn.00512116
add esp, 4
mov edi, eax
lea eax, [ebp - 0xd8c]
push eax
push edi
lea eax, [ebp - 0xd90]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xd84]
call ebx
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0052d340
add esp, 0xc
lea eax, [ebp - 0x628]
push edi
push 0x104
push eax
call fcn.0053531f
add esp, 0xc
cmp word [ebp - 0x628], 0
jne 0x479da0
xor ecx, ecx
jmp 0x479dbf
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479db0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc70]
call fcn.00404d30
push edi
call fcn.0051211f
add esp, 4
call fcn.00415660
lea ecx, [ebp - 0xc58]
push ecx
lea ecx, [eax + 0xc]
call fcn.004059c0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xc60]
test edx, edx
je 0x479ea4
mov edi, dword [ebp - 0xc44]
lea eax, [ebp - 0xc58]
mov ebx, dword [ebp - 0xc58]
lea ecx, [ebp - 0xc70]
push dword [ebp - 0xc48]
cmp edi, 8
cmovae eax, ebx
cmp dword [ebp - 0xc5c], 8
push eax
cmovae ecx, dword [ebp - 0xc70]
call fcn.0040d870
add esp, 8
test eax, eax
je 0x479e9e
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0052d340
add esp, 0xc
lea eax, [ebp - 0xc58]
cmp edi, 8
cmovae eax, ebx
push eax
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.0053531f
mov eax, dword [ebp - 0xc48]
add esp, 0xc
add eax, eax
push eax
lea eax, [ebp - 0xa38]
push eax
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xd84]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x479ec6
inc eax
lea ecx, [ebp - 0xc58]
push eax
push dword [ebp - 0xc58]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
inc esi
cmp esi, dword [ebp - 0xd88]
jb 0x479ca0
push dword [ebp - 0xd84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xc5c]
cmp eax, 8
jb 0x479f1e
inc eax
lea ecx, [ebp - 0xc70]
push eax
push dword [ebp - 0xc70]
call fcn.00404be0
mov edi, dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
xor eax, eax
mov dword [ebp - 0xc5c], 7
mov dword [ebp - 0xc60], 0
mov word [ebp - 0xc70], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd80]
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcf8]
call edi
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.005120a1
mov esp, ebp
pop ebp
ret