Function at 0x4134a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7b38
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50c3e4]
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]
lea eax, [ebp - 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SoftwareKingsoftOfficeTest
push 0x80000001
mov dword [ebp - 0x38], 0
call esi
test eax, eax
jne 0x413506
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41374e
push 0x1d
xor eax, eax
mov dword [ebp - 0x18], 0
push str.SoftwareKingsoftOffice6.0_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004025c0
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413535
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404930
push 0x15
push str.Application_Settings
lea ecx, [ebp - 0x28]
call fcn.00404930
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x413714
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x413714
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x30]
push ecx
push 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push ecx
push 0
push str.RestartAppInfo
push eax
mov dword [ebp - 0x30], 0
call esi
test eax, eax
jne 0x41370b
cmp dword [ebp - 0x3c], 1
jne 0x41370b
mov eax, dword [ebp - 0x30]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d478
push dword [ebp - 0x30]
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x44], ebx
call fcn.0048f8b0
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
push ebx
push 0
push 0
push str.RestartAppInfo
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x34]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x413700
cmp word [ebx], si
je 0x413700
mov byte [ebp - 0x29], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [ebp - 0x30]
mov ecx, eax
xor edi, edi
mov dword [ebp - 0x40], ecx
test ebx, 0xfffffffe
jbe 0x4136f0
lea esp, [esp]
mov eax, dword [ebp - 0x44]
movzx edx, word [eax + edi*2]
cmp edx, 0x2c
jne 0x413684
test esi, esi
je 0x413680
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x4136a2
cmp esi, ecx
je 0x4136a2
push esi
call fcn.00413770
add esp, 4
test al, al
je 0x4136a2
mov ebx, dword [ebp - 0x30]
xor esi, esi
jmp 0x413694
test dx, dx
je 0x413694
lea esi, [esi + esi*4]
mov eax, edx
lea esi, [esi - 0x18]
lea esi, [eax + esi*2]
mov eax, ebx
inc edi
shr eax, 1
cmp edi, eax
jae 0x4136a9
mov ecx, dword [ebp - 0x40]
jmp 0x413650
mov al, 1
mov byte [ebp - 0x29], al
jmp 0x4136ac
mov al, byte [ebp - 0x29]
test esi, esi
je 0x4136f0
test al, al
jne 0x4136f0
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x4136e1
cmp esi, dword [ebp - 0x40]
je 0x4136e1
push esi
call fcn.00413770
add esp, 4
test al, al
je 0x4136e1
push dword [ebp - 0x44]
xor bl, bl
call fcn.0048d481
add esp, 4
jmp 0x413716
push dword [ebp - 0x44]
mov bl, 1
call fcn.0048d481
add esp, 4
jmp 0x413716
push dword [ebp - 0x44]
mov bl, byte [ebp - 0x29]
call fcn.0048d481
add esp, 4
jmp 0x413716
push ebx
call fcn.0048d481
add esp, 4
jmp 0x413714
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41374c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413742
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41376a
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov al, bl
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.0048d444
mov esp, ebp
pop ebp
ret
call fcn.00498b39
int3