Function at 0x46c3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 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 0x46c73c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x46c4de
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 0x46c452
cmp eax, 2
jne 0x46c4de
mov ecx, edi
call fcn.00429c20
mov edx, dword [ebp - 0x34]
shr edx, 1
add edx, 1
js 0x46c774
mov esi, dword [edi]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x46c484
push edx
mov ecx, edi
call fcn.00429eb0
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 0x46c4de
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 0x46c4c8
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x46c774
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x46c774
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.00429250
mov ecx, eax
test ecx, ecx
je 0x46c76a
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 0x46c5ca
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 0x46c53b
cmp eax, 2
jne 0x46c5c7
lea ecx, [ebp - 0x34]
call fcn.00429c20
mov edx, dword [ebp - 0x2c]
shr edx, 1
add edx, 1
js 0x46c774
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 0x46c571
push edx
lea ecx, [ebp - 0x34]
call fcn.00429eb0
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 0x46c5c7
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x46c5a1
xor eax, eax
jmp 0x46c5b5
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x46c774
cmp eax, dword [esi - 8]
jg 0x46c774
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 0x46c69f
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 0x46c602
cmp eax, 2
jne 0x46c691
mov ecx, ebx
call fcn.00429c20
mov ecx, dword [ebp - 0x2c]
shr ecx, 1
add ecx, 1
js 0x46c774
mov edi, dword [ebx]
mov edx, 1
mov eax, dword [edi - 8]
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x46c634
push ecx
mov ecx, ebx
call fcn.00429eb0
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 0x46c68e
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 0x46c678
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x46c774
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x46c774
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 0x46c69f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov dword [ebp - 0x30], 0
cmp dword [eax - 0xc], 0
je 0x46c724
cmp dword [esi - 0xc], 0
lea edi, [esi - 0x10]
je 0x46c724
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x46c724
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0052a300
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 3
jb 0x46c6da
mov edx, dword [edx]
test edx, edx
jne 0x46c6e2
xor ecx, ecx
jmp 0x46c6f6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c6e7
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x40]
push edx
call fcn.0042a060
lea ecx, [ebp - 0x28]
call fcn.0042ab30
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46c71d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x46c73e
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46c73c
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 0x46c74c
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
int3