Function at 0x46f360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
lea ecx, [ebp - 0x412]
xor eax, eax
push ebx
xor edi, edi
push ecx
mov dword [ebp - 0x458], str._shelledit
mov dword [ebp - 0x454], str._shell_new
mov dword [ebp - 0x450], str._shellOnenotePrintto
mov dword [ebp - 0x44c], str._shellopen
mov dword [ebp - 0x448], str._shellOpenAsReadOnly
mov dword [ebp - 0x444], str._shellprint
mov dword [ebp - 0x440], str._shellPrintto
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x414], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, ebx
jle 0x46f64b
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x428], eax
lea esp, [esp]
mov edx, dword [esi]
push 0x20019
push edx
push 0x80000000
lea ecx, [ebp - 0x424]
call fcn.00412570
test eax, eax
jne 0x46f5f7
push 0x206
lea ecx, [ebp - 0x20a]
push ebx
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x42c]
push edx
mov edx, dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x43c]
push ecx
push ebx
push str.AppUserModelID
push edx
mov dword [ebp - 0x42c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x46f5f7
mov eax, dword [ebp - 0x43c]
cmp eax, 1
je 0x46f4aa
cmp eax, 2
jne 0x46f5f7
mov eax, dword [ebp - 0x42c]
cmp eax, ebx
je 0x46f4cd
test al, 1
jne 0x46f5f7
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], bx
je 0x46f4d6
jmp 0x46f5f7
xor eax, eax
mov word [ebp - 0x20c], ax
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
lea ecx, [ebp - 0x20c]
push str.Kingsoft.Office.WPS
push ecx
call esi
add esp, 8
test eax, eax
je 0x46f520
lea edx, [ebp - 0x20c]
push str.Kingsoft.Office.ET
push edx
call esi
add esp, 8
test eax, eax
je 0x46f520
lea eax, [ebp - 0x20c]
push str.Kingsoft.Office.WPP
push eax
call esi
add esp, 8
test eax, eax
jne 0x46f5f7
nop
mov ecx, dword [ebp - 0x418]
mov eax, dword [ecx]
lea edx, [ebp - 0x414]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46f530
mov eax, dword [ebp + ebx*4 - 0x458]
mov edx, eax
jmp 0x46f550
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f550
lea edi, [ebp - 0x414]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x46f566
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x2001f
and ecx, 3
lea edx, [ebp - 0x414]
push edx
rep movsb byte es:[edi], byte [esi]
push 0x80000000
lea ecx, [ebp - 0x438]
call fcn.00412570
test eax, eax
jne 0x46f5b2
push str.ddeexec
lea ecx, [ebp - 0x438]
call fcn.004194e0
mov edi, dword [ebp - 0x438]
test edi, edi
je 0x46f5cb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x438], edi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
mov dword [ebp - 0x434], 0
call sub.MSVCR100.dll_memset
inc ebx
add esp, 0xc
cmp ebx, 7
jb 0x46f520
xor ebx, ebx
mov eax, dword [ebp - 0x424]
cmp eax, ebx
je 0x46f60e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], ebx
mov esi, dword [ebp - 0x418]
add esi, 4
dec dword [ebp - 0x428]
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], esi
jne 0x46f420
mov eax, dword [ebp - 0x424]
cmp eax, ebx
je 0x46f640
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x46f64b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret