Function at 0x42c440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fd88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x58d038]
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 0x42c4a2
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c69d
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.00401b70
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 0x42c4d0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004044f0
push 0x15
push str.Application_Settings
lea ecx, [ebp - 0x2c]
call fcn.004044f0
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x18], esi
jae 0x42c50b
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push 0x20019
push edi
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x42c68c
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x42c68c
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 0x5513c8
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x42c676
cmp dword [ebp - 0x44], 1
jne 0x42c676
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.0047eeb1
mov ebx, eax
mov eax, dword [ebp - 0x34]
push eax
push edi
push ebx
call fcn.00480280
mov edx, dword [ebp - 0x38]
add esp, 0x10
lea ecx, [ebp - 0x34]
push ecx
push ebx
push edi
push edi
push 0x5513c8
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 0x42c663
cmp word [ebx], di
je 0x42c663
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 0x42c64d
movzx eax, word [ebx + edi*2]
cmp eax, 0x2c
jne 0x42c601
test esi, esi
je 0x42c5fd
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x42c619
cmp esi, dword [ebp - 0x40]
je 0x42c619
push esi
call fcn.0042c080
add esp, 4
test al, al
je 0x42c619
xor esi, esi
jmp 0x42c60d
test ax, ax
je 0x42c60d
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 0x42c5d2
jmp 0x42c61d
mov byte [ebp - 0x2d], 1
test esi, esi
je 0x42c64d
cmp byte [ebp - 0x2d], 0
jne 0x42c64d
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x42c649
cmp esi, dword [ebp - 0x40]
je 0x42c649
push esi
call fcn.0042c080
add esp, 4
mov byte [ebp - 0x2d], 0
test al, al
jne 0x42c64d
mov byte [ebp - 0x2d], 1
push ebx
call fcn.00481649
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0046e6d0
mov al, byte [ebp - 0x2d]
jmp 0x42c69f
push ebx
call fcn.00481649
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0046e6d0
jmp 0x42c69d
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x42c69d
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x42c695
cmp dword [ebp - 0x18], esi
jb 0x42c69d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
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.00480264
mov esp, ebp
pop ebp
ret