Function at 0x4795e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55740b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5c5244]
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 ecx, dword [ebp + 0xc]
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallLudashi_is1
mov ebx, dword [ebp + 8]
test ecx, ecx
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallLdsLite
mov dword [ebp - 0x42c], ecx
cmove eax, edx
xor esi, esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x424], esi
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x479685
mov esi, dword [ebp - 0x424]
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
mov dword [ebp - 0x424], 0x208
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.InstallLocation
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x47971c
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x4796e2
cmp eax, 2
jne 0x47971c
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x4796ff
test al, 1
jne 0x47971c
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x479708
jmp 0x47971c
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0051070a
add esp, 8
test eax, eax
je 0x479749
test ebx, ebx
je 0x479749
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479725
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push str.InstallLocation
push esi
call edi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004f39e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0x18
mov ecx, 0x575424
cmp dword [ebp - 0x42c], 0
mov eax, 0x56f054
cmove eax, ecx
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.DisplayIcon
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479816
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x4797d6
cmp eax, 2
jne 0x479816
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x4797f3
test al, 1
jne 0x479816
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4797fc
jmp 0x479816
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0051070a
add esp, 8
test eax, eax
je 0x47984a
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479820
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push str.DisplayIcon
push esi
call edi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004f39e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0x18
mov dword [ebp - 0x424], 0x208
cmp dword [ebp - 0x42c], 0
mov eax, 0x575e78
mov edi, 0x56f6b0
cmove edi, eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.DisplayName
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479902
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x4798c8
cmp eax, 2
jne 0x479902
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x4798e5
test al, 1
jne 0x479902
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4798ee
jmp 0x479902
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0051070a
add esp, 8
test eax, eax
je 0x479933
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479907
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.DisplayName
push esi
call edi
jmp 0x479939
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004f39e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0x18
mov ecx, str.liteuninst.exe
cmp dword [ebp - 0x42c], 0
mov eax, str.uninst.exe
cmove eax, ecx
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.UninstallString
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479a06
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x4799c6
cmp eax, 2
jne 0x479a06
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x4799e3
test al, 1
jne 0x479a06
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4799ec
jmp 0x479a06
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0051070a
add esp, 8
test eax, eax
je 0x479a3a
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479a10
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push str.UninstallString
push esi
call edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x479a56
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
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.004da3bd
mov esp, ebp
pop ebp
ret