Function at 0x41a5e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b951
mov eax, dword fs:[0]
push eax
mov eax, 0x10e0
call fcn.00497a20
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 esi, dword [ebp + 8]
lea ecx, [ebp - 0x1048]
xor eax, eax
mov dword [ebp - 0x1048], 0
push eax
push 0x4a7810
mov dword [ebp - 0x10ec], esi
mov dword [ebp - 0x10c4], esi
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
call fcn.00404580
push 7
xor eax, eax
mov dword [ebp - 0x1030], 0
push str.version
lea ecx, [ebp - 0x1030]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
call fcn.00404580
mov byte [ebp - 4], 1
call fcn.00488300
test al, al
mov dword [ebp - 0x1060], 0
mov ecx, str.SoftwareKingsoftOffice6.0pluginswpscloudsvrimp
mov dword [ebp - 0x1050], 0
mov edx, str.SoftwareKingsoftPDFpluginswpscloudsvrimp
mov dword [ebp - 0x104c], 7
cmove edx, ecx
xor eax, eax
mov ecx, edx
mov word [ebp - 0x1060], ax
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a6e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1060]
call fcn.00404580
or ebx, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1050], 0
je 0x41a943
cmp dword [ebp - 0x1020], 0
je 0x41a943
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
lea ecx, [ebp - 0x10cc]
cmovae eax, dword [ebp - 0x1060]
push eax
call fcn.00417800
cmp dword [ebp - 0x101c], 8
lea eax, [ebp - 0x1030]
lea ecx, [ebp - 0x10c8]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x1030]
push eax
call fcn.00417800
xor edi, edi
mov dword [ebp - 0x10e0], edi
mov dword [ebp - 0x10dc], edi
mov dword [ebp - 0x10d8], edi
lea eax, [ebp - 0x10d0]
mov dword [ebp - 0x10d0], edi
push eax
push 0x20019
push edi
push dword [ebp - 0x10cc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a7af
mov edi, dword [ebp - 0x10d0]
mov dword [ebp - 0x10e0], edi
mov dword [ebp - 0x10dc], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x41a818
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x10c0]
call fcn.00401f70
test edi, edi
je 0x41a7d5
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call eax
mov edx, dword [ebp - 0x10c8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a7f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10cc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a955
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41a955
push 0x802
lea eax, [ebp - 0x814]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10d4], 0x800
lea eax, [ebp - 0x10d4]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10e8]
push eax
push 0
push dword [ebp - 0x10c8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10c4], eax
test eax, eax
jne 0x41a8bc
mov eax, dword [ebp - 0x10e8]
cmp eax, 1
je 0x41a882
cmp eax, 2
je 0x41a882
mov dword [ebp - 0x10c4], 0xd
jmp 0x41a8bc
mov eax, dword [ebp - 0x10d4]
test eax, eax
je 0x41a8a9
test al, 1
jne 0x41a89d
shr eax, 1
cmp word [ebp + eax*2 - 0x816], 0
je 0x41a8b2
mov dword [ebp - 0x10c4], 0xd
jmp 0x41a8bc
xor eax, eax
mov word [ebp - 0x814], ax
mov dword [ebp - 0x10c4], 0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x10a8]
call fcn.00401960
cmp dword [ebp - 0x10c4], 0
lea ecx, [ebp - 0x1048]
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 7
cmovne eax, ecx
lea ecx, [ebp - 0x10c0]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x1094]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x41a7c9
mov ecx, dword [ebp - 0x10a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a934
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41a934
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
jmp 0x41a7c9
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x10c0]
call fcn.00401f70
mov edx, dword [ebp - 0x104c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x41a999
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a98f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aa49
push edx
push ecx
call fcn.0049744e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
mov edx, dword [ebp - 0x101c]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x41a9f6
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a9ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aa49
push edx
push ecx
call fcn.0049744e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
mov edx, dword [ebp - 0x1034]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x41aa59
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41aa4f
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 eax, dword fs:[0x2c]
mov ecx, dword [0x4d4d58]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d1828]
cmp eax, dword [ecx + 4]
jg 0x41b0bf
push 0x4d1810
lea ecx, [ebp - 0x10a8]
call fcn.00401f70
cmp dword [ebp - 0x1094], 8
lea edx, [ebp - 0x10a8]
mov ebx, dword [ebp - 0x10a8]
lea ecx, [ebp - 0x10c0]
mov edi, dword [ebp - 0x10c0]
cmovae edx, ebx
cmp dword [ebp - 0x10ac], 8
mov eax, dword [ebp - 0x10b0]
mov esi, dword [ebp - 0x1098]
cmovae ecx, edi
cmp esi, eax
mov byte [ebp - 4], 0xd
cmovb eax, esi
push eax
push edx
push ecx
call fcn.00404690
mov esi, dword [ebp - 0x10ec]
add esp, 0xc
test eax, eax
jne 0x41b025
mov eax, dword [ebp - 0x10b0]
cmp eax, dword [ebp - 0x1098]
jb 0x41b025
ja 0x41b025
xor eax, eax
mov dword [ebp - 0x1048], 0
push eax
push 0x4a7810
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
call fcn.00404580
push 8
xor eax, eax
mov dword [ebp - 0x1090], 0
push str.lookpath
lea ecx, [ebp - 0x1090]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x107c], 7
mov word [ebp - 0x1090], ax
call fcn.00404580
mov byte [ebp - 4], 0xf
call fcn.00488300
test al, al
mov dword [ebp - 0x1078], 0
mov ecx, str.SoftwareKingsoftOffice6.0pluginswpscloudsvrimp
mov dword [ebp - 0x1068], 0
mov eax, str.SoftwareKingsoftPDFpluginswpscloudsvrimp
mov dword [ebp - 0x1064], 7
cmove eax, ecx
xor ecx, ecx
mov word [ebp - 0x1078], cx
mov ecx, eax
mov dword [ebp - 0x10ec], eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41abc0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10ec]
push ecx
lea ecx, [ebp - 0x1078]
call fcn.00404580
cmp dword [ebp - 0x1068], 0
mov byte [ebp - 4], 0x10
je 0x41ae40
cmp dword [ebp - 0x1080], 0
je 0x41ae40
cmp dword [ebp - 0x1064], 8
lea eax, [ebp - 0x1078]
lea ecx, [ebp - 0x10c8]
cmovae eax, dword [ebp - 0x1078]
push eax
call fcn.00417800
cmp dword [ebp - 0x107c], 8
lea eax, [ebp - 0x1090]
lea ecx, [ebp - 0x10cc]
mov byte [ebp - 4], 0x11
cmovae eax, dword [ebp - 0x1090]
push eax
call fcn.00417800
mov dword [ebp - 0x10e0], 0
mov dword [ebp - 0x10dc], 0
mov dword [ebp - 0x10d8], 0
lea eax, [ebp - 0x10d4]
mov dword [ebp - 0x10d4], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x10c8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x41aca3
mov eax, dword [ebp - 0x10d4]
mov dword [ebp - 0x10e0], eax
mov dword [ebp - 0x10dc], ecx
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x41ad13
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x1030]
call fcn.00401f70
mov eax, dword [ebp - 0x10e0]
test eax, eax
je 0x41acce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10cc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41acec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10c8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ae52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41ae52
push 0x802
lea eax, [ebp - 0x1018]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10d0], 0x800
lea eax, [ebp - 0x10d0]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x10e8]
push eax
mov eax, dword [ebp - 0x10e0]
push 0
push dword [ebp - 0x10cc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10c4], eax
test eax, eax
jne 0x41adbd
mov eax, dword [ebp - 0x10e8]
cmp eax, 1
je 0x41ad83
cmp eax, 2
je 0x41ad83
mov dword [ebp - 0x10c4], 0xd
jmp 0x41adbd
mov eax, dword [ebp - 0x10d0]
test eax, eax
je 0x41adaa
test al, 1
jne 0x41ad9e
shr eax, 1
cmp word [ebp + eax*2 - 0x101a], 0
je 0x41adb3
mov dword [ebp - 0x10c4], 0xd
jmp 0x41adbd
xor eax, eax
mov word [ebp - 0x1018], ax
mov dword [ebp - 0x10c4], 0
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00401960
cmp dword [ebp - 0x10c4], 0
lea ecx, [ebp - 0x1048]
lea eax, [ebp - 0x1060]
mov byte [ebp - 4], 0x15
cmovne eax, ecx
lea ecx, [ebp - 0x1030]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x104c]
cmp edx, 8
jb 0x41acbd
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ae31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41ae31
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
jmp 0x41acbd
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x1030]
call fcn.00401f70
mov edx, dword [ebp - 0x1064]
cmp edx, 8
jb 0x41ae92
mov ecx, dword [ebp - 0x1078]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ae88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af3a
push edx
push ecx
call fcn.0049744e
add esp, 8
mov edx, dword [ebp - 0x107c]
xor eax, eax
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 7
mov word [ebp - 0x1078], ax
cmp edx, 8
jb 0x41aeeb
mov ecx, dword [ebp - 0x1090]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aee1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af3a
push edx
push ecx
call fcn.0049744e
add esp, 8
mov edx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x107c], 7
mov word [ebp - 0x1090], ax
cmp edx, 8
jb 0x41af4a
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41af40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41af40
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 eax, dword [ebp - 0x1030]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x102c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1028]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1024]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x1020]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x101c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x1094]
cmp eax, 8
jb 0x41afcd
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41afc3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b0b9
push ecx
push ebx
call fcn.0049744e
add esp, 8
mov eax, dword [ebp - 0x10ac]
cmp eax, 8
jb 0x41b007
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x41affd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b0b9
push ecx
push edi
call fcn.0049744e
add esp, 8
mov eax, esi
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
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x4a7810
mov word [esi], ax
call fcn.00404580
mov eax, dword [ebp - 0x1094]
cmp eax, 8
jb 0x41b081
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41b077
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b0b9
push ecx
push ebx
call fcn.0049744e
add esp, 8
mov eax, dword [ebp - 0x10ac]
cmp eax, 8
jb 0x41b007
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x41affd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41affd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x4d1828
call fcn.00497934
add esp, 4
cmp dword [0x4d1828], 0xffffffff
jne 0x41aa79
push 0x4d1810
lea ecx, [ebp - 0x10e1]
mov byte [ebp - 4], 0xc
call fcn.00417940
push 0x4a5610
call fcn.004977ec
push 0x4d1828
mov byte [ebp - 4], 0xb
call fcn.004978ea
add esp, 8
jmp 0x41aa79