Function at 0x494b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a109d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [0x60e494]
mov dword [ebp - 0x10], 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
lea esi, [ebx + 0x18]
mov ebx, dword [str.LocationRoot]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x494c72
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x494be7
cmp eax, 2
jne 0x494c6f
mov ecx, esi
call fcn.00429bc0
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x494e59
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x494c19
push edx
mov ecx, esi
call fcn.00429e50
mov edi, dword [esi]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x494c6f
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x494c59
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x494e59
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x494e59
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x494d75
mov edi, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office]
test eax, eax
je 0x494c8f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov ebx, dword [str.LocationRoot]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x494d75
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x494cea
cmp eax, 2
jne 0x494d72
mov ecx, esi
call fcn.00429bc0
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x494e59
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x494d1c
push edx
mov ecx, esi
call fcn.00429e50
mov edi, dword [esi]
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x494d72
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x494d5c
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x494e59
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x494e59
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
mov ebx, dword [str.StartMenuDir]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x494e47
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x494db2
cmp eax, 2
jne 0x494e39
lea ecx, [esi + 0x1c]
call fcn.00429bc0
mov ecx, dword [ebp - 0x1c]
shr ecx, 1
add ecx, 1
js 0x494e59
mov edi, dword [esi + 0x1c]
mov edx, 1
mov eax, dword [edi - 8]
sub edx, dword [edi - 4]
sub eax, ecx
or edx, eax
jge 0x494de8
push ecx
lea ecx, [esi + 0x1c]
call fcn.00429e50
mov edi, dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x494e39
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x494e25
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x494e59
mov eax, dword [esi + 0x1c]
cmp ecx, dword [eax - 8]
jg 0x494e59
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 0x1c]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x494e47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b00
int3