Function at 0x46c7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d67d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x63434c]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwarekingsoftOffice6.0kpacketusersetting
push 0x80000001
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46cb2c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x46c8ce
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push str.prever
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x46c842
cmp eax, 2
jne 0x46c8ce
mov ecx, edi
call fcn.00429bc0
mov edx, dword [ebp - 0x34]
shr edx, 1
add edx, 1
js 0x46cb64
mov esi, dword [edi]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x46c874
push edx
mov ecx, edi
call fcn.00429e50
mov esi, dword [edi]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0
push str.prever
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46c8ce
mov eax, dword [ebp - 0x34]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
mov eax, dword [edi]
test eax, eax
je 0x46c8b8
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x46cb64
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x46cb64
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
mov byte [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x46cb5a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x46c9ba
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.prepath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x46c92b
cmp eax, 2
jne 0x46c9b7
lea ecx, [ebp - 0x34]
call fcn.00429bc0
mov edx, dword [ebp - 0x2c]
shr edx, 1
add edx, 1
js 0x46cb64
mov esi, dword [ebp - 0x34]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x46c961
push edx
lea ecx, [ebp - 0x34]
call fcn.00429e50
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push str.prepath
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46c9b7
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x46c991
xor eax, eax
jmp 0x46c9a5
push dword [esi - 8]
push esi
call fcn.00566c13
add esp, 8
test eax, eax
js 0x46cb64
cmp eax, dword [esi - 8]
jg 0x46cb64
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x46ca8f
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.prepackage
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x46c9f2
cmp eax, 2
jne 0x46ca81
mov ecx, ebx
call fcn.00429bc0
mov ecx, dword [ebp - 0x2c]
shr ecx, 1
add ecx, 1
js 0x46cb64
mov edi, dword [ebx]
mov edx, 1
mov eax, dword [edi - 8]
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x46ca24
push ecx
mov ecx, ebx
call fcn.00429e50
mov edi, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push 0
push str.prepackage
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ca7e
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [ebx]
test eax, eax
je 0x46ca68
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x46cb64
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x46cb64
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x46ca8f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov dword [ebp - 0x30], 0
cmp dword [eax - 0xc], 0
je 0x46cb14
cmp dword [esi - 0xc], 0
lea edi, [esi - 0x10]
je 0x46cb14
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x46cb14
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00524940
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 3
jb 0x46caca
mov edx, dword [edx]
test edx, edx
jne 0x46cad2
xor ecx, ecx
jmp 0x46cae6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46cad7
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x40]
push edx
call fcn.0042a000
lea ecx, [ebp - 0x28]
call fcn.0042aad0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46cb0d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x46cb2e
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46cb2c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x46cb3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00557e89
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
push 0x80070057
call fcn.00429b00
int3