Function at 0x425a84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49048d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [section..data]
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 ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareKingsoftOfficeTest
push 0x80000001
mov dword [ebp - 0x3c], edi
call ebx
cmp eax, edi
jne 0x425ae6
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x425ce1
push 0x1d
xor edx, edx
push str.SoftwareKingsoftOffice6.0_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.00403bac
mov eax, esi
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x425b14
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004051ab
push 0x15
push str.Application_Settings
lea ecx, [ebp - 0x2c]
call fcn.004051ab
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x18], esi
jae 0x425b4f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push 0x20019
push edi
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x425cd0
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x425cd0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x34]
push edx
push edi
lea ecx, [ebp - 0x44]
push ecx
push edi
push str.RestartAppInfo
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x425cba
cmp dword [ebp - 0x44], 1
jne 0x425cba
mov eax, dword [ebp - 0x34]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405aff
mov ebx, eax
mov eax, dword [ebp - 0x34]
push eax
push edi
push ebx
call fcn.00402e70
mov edx, dword [ebp - 0x38]
add esp, 0x10
lea ecx, [ebp - 0x34]
push ecx
push ebx
push edi
push edi
push str.RestartAppInfo
push edx
call esi
mov esi, eax
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x425ca7
cmp word [ebx], di
je 0x425ca7
mov byte [ebp - 0x2d], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
test dword [ebp - 0x34], 0xfffffffe
mov dword [ebp - 0x40], eax
jbe 0x425c91
movzx eax, word [ebx + edi*2]
cmp eax, 0x2c
jne 0x425c45
test esi, esi
je 0x425c41
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x425c5d
cmp esi, dword [ebp - 0x40]
je 0x425c5d
push esi
call fcn.00425801
add esp, 4
test al, al
je 0x425c5d
xor esi, esi
jmp 0x425c51
test ax, ax
je 0x425c51
lea ecx, [esi + esi*4]
lea esi, [eax + ecx*2 - 0x30]
mov eax, dword [ebp - 0x34]
inc edi
shr eax, 1
cmp edi, eax
jb 0x425c16
jmp 0x425c61
mov byte [ebp - 0x2d], 1
test esi, esi
je 0x425c91
cmp byte [ebp - 0x2d], 0
jne 0x425c91
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x425c8d
cmp esi, dword [ebp - 0x40]
je 0x425c8d
push esi
call fcn.00425801
add esp, 4
mov byte [ebp - 0x2d], 0
test al, al
jne 0x425c91
mov byte [ebp - 0x2d], 1
push ebx
call fcn.00406e64
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0040a4bf
mov al, byte [ebp - 0x2d]
jmp 0x425ce3
push ebx
call fcn.00406e64
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0040a4bf
jmp 0x425ce1
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x425ce1
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x425cd9
cmp dword [ebp - 0x18], esi
jb 0x425ce1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f07
add esp, 4
xor al, al
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.0040330b
mov esp, ebp
pop ebp
ret