Function at 0x496890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a58e5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00496580
test al, al
jne 0x496b49
mov ecx, esi
call fcn.00496c60
test al, al
jne 0x496b49
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x496b5d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
call fcn.00522410
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x496920
push ecx
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.KingsoftOffice6.0CommonUserInfo
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov edi, 1
mov dword [ebp - 0x18], 0
test eax, eax
je 0x496a00
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.ACUPI
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x49697d
cmp eax, 2
jne 0x4969fd
lea ecx, [ebp - 0x14]
call fcn.00429c20
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, edi
js 0x496b67
mov esi, dword [ebp - 0x14]
mov ecx, edi
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4969af
push edx
lea ecx, [ebp - 0x14]
call fcn.00429eb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.ACUPI
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4969fd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x496b67
cmp eax, dword [esi - 8]
jg 0x496b67
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x496aeb
test eax, eax
je 0x496a11
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.KingsoftOffice6.0CommonUserInfo
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x496af2
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.ACUPI
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x496a6a
cmp eax, 2
jne 0x496ae8
lea ecx, [ebp - 0x14]
call fcn.00429c20
mov ecx, dword [ebp - 0x18]
shr ecx, 1
add ecx, edi
js 0x496b67
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, ecx
or edi, eax
jge 0x496a9a
push ecx
lea ecx, [ebp - 0x14]
call fcn.00429eb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.ACUPI
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x496ae8
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x496b67
cmp eax, dword [esi - 8]
jg 0x496b67
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x496af2
push eax
call ebx
push 0x5bb494
push esi
mov dword [ebp - 0x10], 0
call fcn.0056b422
add esp, 8
neg eax
sbb edi, edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x496b15
push eax
call ebx
mov dword [ebp - 0x10], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x496b34
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [edi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
int3