Function at 0x41d5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bd0d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4cc498]
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 - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SoftwareKingsoftOfficeTest
push 0x80000001
mov dword [ebp - 0x34], 0
call esi
test eax, eax
jne 0x41d606
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41d835
push 0x1d
xor eax, eax
mov dword [ebp - 0x28], 0
push str.SoftwareKingsoftOffice6.0_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404580
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d640
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00401cd0
push 0x15
push str.Application_Settings
lea ecx, [ebp - 0x28]
call fcn.00401cd0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x41d7f5
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41d7f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push ecx
push 0
push str.RestartAppInfo
push eax
mov dword [ebp - 0x2c], 0
call esi
test eax, eax
jne 0x41d7ec
cmp dword [ebp - 0x38], 1
jne 0x41d7ec
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004975a2
push dword [ebp - 0x2c]
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x40], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push 0
push str.RestartAppInfo
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41d7e1
cmp word [ebx], si
je 0x41d7e1
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x3c], eax
test edi, 0xfffffffe
jbe 0x41d7d4
mov ebx, dword [ebp - 0x40]
movzx edx, word [ebx + esi*2]
cmp edx, 0x2c
jne 0x41d788
test ecx, ecx
je 0x41d784
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x41d7d2
cmp ecx, dword [ebp - 0x3c]
je 0x41d7d2
push ecx
call fcn.0041d860
add esp, 4
test al, al
je 0x41d7d2
mov edi, dword [ebp - 0x2c]
xor ecx, ecx
jmp 0x41d798
test dx, dx
je 0x41d798
lea ecx, [ecx + ecx*4]
mov eax, edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov eax, edi
inc esi
shr eax, 1
cmp esi, eax
jb 0x41d756
xor bl, bl
test ecx, ecx
je 0x41d7d4
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
je 0x41d7d2
cmp ecx, dword [ebp - 0x3c]
je 0x41d7d2
push ecx
call fcn.0041d860
add esp, 4
test al, al
je 0x41d7d2
push dword [ebp - 0x40]
call fcn.004975ab
add esp, 4
jmp 0x41d7f7
mov bl, 1
push dword [ebp - 0x40]
call fcn.004975ab
add esp, 4
jmp 0x41d7f7
push ebx
call fcn.004975ab
add esp, 4
jmp 0x41d7f5
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41d833
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d829
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41d829
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
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.0049745c
mov esp, ebp
pop ebp
ret