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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aaa8b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x639354]
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
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4d07bd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 2
call fcn.00522410
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4d056b
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 0x4d0758
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4d0684
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 0x4d05e7
cmp eax, 2
jne 0x4d067e
mov ecx, esi
call fcn.00429c20
mov edx, dword [ebp - 0x234]
shr edx, 1
add edx, 1
js 0x4d07b3
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x4d061c
push edx
mov ecx, esi
call fcn.00429eb0
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 0x4d067e
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 0x4d0668
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4d07b3
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4d07b3
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 0x4d0741
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4d0741
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560a80
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]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d06e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042a060
mov eax, dword [ebp - 0x22c]
mov edi, dword [esi]
test eax, eax
je 0x4d074e
mov edx, edi
lea ecx, [edx + 2]
mov dword [ebp - 0x230], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4d0715
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 0x4d074e
push eax
call ebx
mov dword [ebp - 0x22c], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4d076e
push 0x26
push str.BEE0D90A_11F1_4E60_9C6B_8FFD17FE3F24
mov ecx, esi
call fcn.0042a060
mov ecx, 0x641e28
call fcn.00496890
mov ecx, 0x641e28
mov dword [esi + 4], eax
call fcn.00496780
mov ecx, dword [ebp - 0x22c]
mov dword [esi + 8], eax
test ecx, ecx
je 0x4d0795
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3