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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0b86
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x62819c]
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 esi, ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x238], esi
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4c7cc8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 1
call fcn.00515dd0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4c7a74
push eax
call ebx
push 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREKingsoftOffice6.0Common
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4c7c63
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4c7b8d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x234]
push ecx
push 0
lea ecx, [ebp - 0x230]
push ecx
push 0
push str.infoGUID
push eax
call ebx
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x4c7af0
cmp eax, 2
jne 0x4c7b87
mov ecx, esi
call fcn.00429490
mov edx, dword [ebp - 0x234]
shr edx, 1
add edx, 1
js 0x4c7cbe
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x4c7b25
push edx
mov ecx, esi
call fcn.004296d0
mov edi, dword [esi]
lea eax, [ebp - 0x234]
push eax
push edi
lea eax, [ebp - 0x230]
push eax
push 0
push str.infoGUID
push dword [ebp - 0x22c]
call ebx
test eax, eax
jne 0x4c7b87
mov eax, dword [ebp - 0x234]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4c7b71
push dword [eax - 8]
push eax
call fcn.00555593
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4c7cbe
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4c7cbe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4c7c4c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4c7c4c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054b380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7be6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00429870
mov eax, dword [ebp - 0x22c]
mov edi, dword [esi]
test eax, eax
je 0x4c7c59
mov edx, edi
lea ecx, [edx + 2]
mov dword [ebp - 0x230], ecx
jmp 0x4c7c20
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4c7c20
sub edx, dword [ebp - 0x230]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push edi
push 1
push 0
push str.infoGUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4c7c59
push eax
call ebx
mov dword [ebp - 0x22c], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4c7c79
push 0x26
push str.BEE0D90A_11F1_4E60_9C6B_8FFD17FE3F24
mov ecx, esi
call fcn.00429870
mov ecx, 0x6319b8
call fcn.0048d140
mov ecx, 0x6319b8
mov dword [esi + 4], eax
call fcn.0048d030
mov ecx, dword [ebp - 0x22c]
mov dword [esi + 8], eax
test ecx, ecx
je 0x4c7ca0
push ecx
call ebx
mov eax, esi
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3