Function at 0x46c180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1aed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwarekingsoftOffice6.0kpacketusersetting
push 0x80000001
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46c362
mov byte [ebp - 4], 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x46c38f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 0
test eax, eax
je 0x46c2d6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push str.precontrolpath
push eax
call edi
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x46c240
cmp eax, 2
jne 0x46c2c8
lea ecx, [ebp - 0x30]
call fcn.00429c20
mov edx, dword [ebp - 0x34]
shr edx, 1
add edx, 1
js 0x46c399
mov esi, dword [ebp - 0x30]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x46c276
push edx
lea ecx, [ebp - 0x30]
call fcn.00429eb0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push str.precontrolpath
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x46c2c8
mov eax, dword [ebp - 0x34]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x46c2a2
xor eax, eax
jmp 0x46c2b6
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x46c399
cmp eax, dword [esi - 8]
jg 0x46c399
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x46c2d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi - 0x10]
mov dword [ebp - 0x2c], 0
cmp dword [edi + 4], 0
je 0x46c34d
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 0x46c301
mov edx, dword [edx]
test edx, edx
jne 0x46c309
xor ecx, ecx
jmp 0x46c31f
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c310
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x3c]
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 0x46c346
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x46c364
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46c362
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x46c372
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
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