Function at 0x4314a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514956
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 0x431506
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x431701
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.0040392d
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 0x431534
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405221
push 0x15
push str.Application_Settings
lea ecx, [ebp - 0x2c]
call fcn.00405221
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x18], esi
jae 0x43156f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push 0x20019
push edi
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x4316f0
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4316f0
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 0x52a6d8
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x4316da
cmp dword [ebp - 0x44], 1
jne 0x4316da
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.00405b75
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 0x52a6d8
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 0x4316c7
cmp word [ebx], di
je 0x4316c7
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 0x4316b1
movzx eax, word [ebx + edi*2]
cmp eax, 0x2c
jne 0x431665
test esi, esi
je 0x431661
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x43167d
cmp esi, dword [ebp - 0x40]
je 0x43167d
push esi
call fcn.0043111e
add esp, 4
test al, al
je 0x43167d
xor esi, esi
jmp 0x431671
test ax, ax
je 0x431671
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 0x431636
jmp 0x431681
mov byte [ebp - 0x2d], 1
test esi, esi
je 0x4316b1
cmp byte [ebp - 0x2d], 0
jne 0x4316b1
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x4316ad
cmp esi, dword [ebp - 0x40]
je 0x4316ad
push esi
call fcn.0043111e
add esp, 4
mov byte [ebp - 0x2d], 0
test al, al
jne 0x4316b1
mov byte [ebp - 0x2d], 1
push ebx
call fcn.00409a6f
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
mov al, byte [ebp - 0x2d]
jmp 0x431703
push ebx
call fcn.00409a6f
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
jmp 0x431701
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x431701
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x4316f9
cmp dword [ebp - 0x18], esi
jb 0x431701
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
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