Function at 0x41a6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d757
mov eax, dword fs:[0]
push eax
sub esp, 0x9e4
mov eax, dword [0x4ce4bc]
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 - 0x848]
xor eax, eax
mov dword [ebp - 0x848], 0
push eax
push 0x4a9810
mov dword [ebp - 0x9f0], esi
mov dword [ebp - 0x9c8], esi
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
call fcn.00404580
push 7
xor eax, eax
mov dword [ebp - 0x830], 0
push str.version
lea ecx, [ebp - 0x830]
mov dword [ebp - 4], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
call fcn.00404580
mov byte [ebp - 4], 1
call fcn.004885e0
test al, al
mov dword [ebp - 0x860], 0
mov ecx, str.SoftwareKingsoftOffice6.0pluginswpscloudsvrimp
mov dword [ebp - 0x850], 0
mov edx, str.SoftwareKingsoftPDFpluginswpscloudsvrimp
mov dword [ebp - 0x84c], 7
cmove edx, ecx
xor eax, eax
mov ecx, edx
mov word [ebp - 0x860], ax
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a7a0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x860]
call fcn.00404580
or ebx, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [ebp - 0x850], 0
je 0x41aa37
cmp dword [ebp - 0x820], 0
je 0x41aa37
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
lea ecx, [ebp - 0x9d0]
cmovae eax, dword [ebp - 0x860]
push eax
call fcn.00417810
cmp dword [ebp - 0x81c], 8
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x9cc]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x830]
push eax
call fcn.00417810
xor edi, edi
mov dword [ebp - 0x9e4], edi
mov dword [ebp - 0x9e0], edi
mov dword [ebp - 0x9dc], edi
lea eax, [ebp - 0x9d4]
mov dword [ebp - 0x9d4], edi
push eax
push 0x20019
push edi
push dword [ebp - 0x9d0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a86f
mov edi, dword [ebp - 0x9d4]
mov dword [ebp - 0x9e4], edi
mov dword [ebp - 0x9e0], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x41a8d8
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x8c0]
call fcn.00401f70
test edi, edi
je 0x41a895
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call eax
mov edx, dword [ebp - 0x9cc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a8b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9d0]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41aa49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41aa49
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x9d8], 0x400
lea eax, [ebp - 0x9d8]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x9ec]
push eax
push 0
push dword [ebp - 0x9cc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x9c8], eax
test eax, eax
jne 0x41a973
mov eax, dword [ebp - 0x9ec]
cmp eax, 1
je 0x41a942
cmp eax, 2
je 0x41a942
mov dword [ebp - 0x9c8], 0xd
jmp 0x41a973
mov eax, dword [ebp - 0x9d8]
test eax, eax
je 0x41a962
cmp byte [ebp + eax - 0x415], 0
je 0x41a969
mov dword [ebp - 0x9c8], 0xd
jmp 0x41a973
mov byte [ebp - 0x414], 0
mov dword [ebp - 0x9c8], 0
lea eax, [ebp - 0x9c0]
mov dword [ebp - 0x9c4], eax
lea ecx, [ebp - 0x9c4]
push 3
lea eax, [ebp - 0x414]
push eax
call fcn.00418bb0
push dword [ebp - 0x9c4]
lea ecx, [ebp - 0x8a8]
mov byte [ebp - 4], 7
call fcn.00401960
mov eax, dword [ebp - 0x9c4]
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x41a9c6
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x9c8], 0
lea ecx, [ebp - 0x848]
lea eax, [ebp - 0x8a8]
cmovne eax, ecx
lea ecx, [ebp - 0x8c0]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x894]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x41a889
mov ecx, dword [ebp - 0x8a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41aa28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
jmp 0x41a889
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x8c0]
call fcn.00401f70
mov edx, dword [ebp - 0x84c]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x41aa8d
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ab3d
push edx
push ecx
call fcn.004991fe
add esp, 8
xor eax, eax
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
mov edx, dword [ebp - 0x81c]
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x41aaea
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aae0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ab3d
push edx
push ecx
call fcn.004991fe
add esp, 8
xor eax, eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
mov edx, dword [ebp - 0x834]
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x41ab4d
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ab43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41ab43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d3868]
cmp eax, dword [ecx + 4]
jg 0x41b1e3
push 0x4d3850
lea ecx, [ebp - 0x8a8]
call fcn.00401f70
cmp dword [ebp - 0x894], 8
lea edx, [ebp - 0x8a8]
mov ebx, dword [ebp - 0x8a8]
lea ecx, [ebp - 0x8c0]
mov edi, dword [ebp - 0x8c0]
cmovae edx, ebx
cmp dword [ebp - 0x8ac], 8
mov eax, dword [ebp - 0x8b0]
mov esi, dword [ebp - 0x898]
cmovae ecx, edi
cmp esi, eax
mov byte [ebp - 4], 0xf
cmovb eax, esi
push eax
push edx
push ecx
call fcn.00404690
mov esi, dword [ebp - 0x9f0]
add esp, 0xc
test eax, eax
jne 0x41b149
mov eax, dword [ebp - 0x8b0]
cmp eax, dword [ebp - 0x898]
jb 0x41b149
ja 0x41b149
xor eax, eax
mov dword [ebp - 0x848], 0
push eax
push 0x4a9810
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
call fcn.00404580
push 8
xor eax, eax
mov dword [ebp - 0x890], 0
push str.lookpath
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
call fcn.00404580
mov byte [ebp - 4], 0x11
call fcn.004885e0
test al, al
mov dword [ebp - 0x878], 0
mov ecx, str.SoftwareKingsoftOffice6.0pluginswpscloudsvrimp
mov dword [ebp - 0x868], 0
mov eax, str.SoftwareKingsoftPDFpluginswpscloudsvrimp
mov dword [ebp - 0x864], 7
cmove eax, ecx
xor ecx, ecx
mov word [ebp - 0x878], cx
mov ecx, eax
mov dword [ebp - 0x9f0], eax
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41acb0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x9f0]
push ecx
lea ecx, [ebp - 0x878]
call fcn.00404580
cmp dword [ebp - 0x868], 0
mov byte [ebp - 4], 0x12
je 0x41af64
cmp dword [ebp - 0x880], 0
je 0x41af64
cmp dword [ebp - 0x864], 8
lea eax, [ebp - 0x878]
lea ecx, [ebp - 0x9cc]
cmovae eax, dword [ebp - 0x878]
push eax
call fcn.00417810
cmp dword [ebp - 0x87c], 8
lea eax, [ebp - 0x890]
lea ecx, [ebp - 0x9d0]
mov byte [ebp - 4], 0x13
cmovae eax, dword [ebp - 0x890]
push eax
call fcn.00417810
mov dword [ebp - 0x9e4], 0
mov dword [ebp - 0x9e0], 0
mov dword [ebp - 0x9dc], 0
lea eax, [ebp - 0x9d8]
mov dword [ebp - 0x9d8], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x9cc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, eax
test ecx, ecx
jne 0x41ad93
mov eax, dword [ebp - 0x9d8]
mov dword [ebp - 0x9e4], eax
mov dword [ebp - 0x9e0], ecx
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x41ae03
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x830]
call fcn.00401f70
mov eax, dword [ebp - 0x9e4]
test eax, eax
je 0x41adbe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x9d0]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41addc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9cc]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41af76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41af76
push 0x401
lea eax, [ebp - 0x818]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x9d4], 0x400
lea eax, [ebp - 0x9d4]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x9ec]
push eax
mov eax, dword [ebp - 0x9e4]
push 0
push dword [ebp - 0x9d0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x9c8], eax
test eax, eax
jne 0x41aea4
mov eax, dword [ebp - 0x9ec]
cmp eax, 1
je 0x41ae73
cmp eax, 2
je 0x41ae73
mov dword [ebp - 0x9c8], 0xd
jmp 0x41aea4
mov eax, dword [ebp - 0x9d4]
test eax, eax
je 0x41ae93
cmp byte [ebp + eax - 0x819], 0
je 0x41ae9a
mov dword [ebp - 0x9c8], 0xd
jmp 0x41aea4
mov byte [ebp - 0x818], 0
mov dword [ebp - 0x9c8], 0
lea eax, [ebp - 0x9c0]
mov dword [ebp - 0x9c4], eax
lea ecx, [ebp - 0x9c4]
push 3
lea eax, [ebp - 0x818]
push eax
call fcn.00418bb0
push dword [ebp - 0x9c4]
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 0x17
call fcn.00401960
mov eax, dword [ebp - 0x9c4]
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 0x19
cmp eax, ecx
je 0x41aef7
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x9c8], 0
lea ecx, [ebp - 0x848]
lea eax, [ebp - 0x860]
cmovne eax, ecx
lea ecx, [ebp - 0x830]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x84c]
cmp edx, 8
jb 0x41adad
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41af55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41af55
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
jmp 0x41adad
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x830]
call fcn.00401f70
mov edx, dword [ebp - 0x864]
cmp edx, 8
jb 0x41afb6
mov ecx, dword [ebp - 0x878]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41afac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b05e
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x87c]
xor eax, eax
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
cmp edx, 8
jb 0x41b00f
mov ecx, dword [ebp - 0x890]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b005
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b05e
push edx
push ecx
call fcn.004991fe
add esp, 8
mov edx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
cmp edx, 8
jb 0x41b06e
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b064
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41b064
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
mov eax, dword [ebp - 0x830]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x820]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x894]
cmp eax, 8
jb 0x41b0f1
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41b0e7
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b1dd
push ecx
push ebx
call fcn.004991fe
add esp, 8
mov eax, dword [ebp - 0x8ac]
cmp eax, 8
jb 0x41b12b
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x41b121
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b1dd
push ecx
push edi
call fcn.004991fe
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.0049920c
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 0x4a9810
mov word [esi], ax
call fcn.00404580
mov eax, dword [ebp - 0x894]
cmp eax, 8
jb 0x41b1a5
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41b19b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b1dd
push ecx
push ebx
call fcn.004991fe
add esp, 8
mov eax, dword [ebp - 0x8ac]
cmp eax, 8
jb 0x41b12b
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x41b121
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41b121
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x4d3868
call fcn.004995cf
add esp, 4
cmp dword [0x4d3868], 0xffffffff
jne 0x41ab6d
push 0x4d3850
lea ecx, [ebp - 0x9e5]
mov byte [ebp - 4], 0xe
call fcn.00417a10
push 0x4a7890
call fcn.00499487
push 0x4d3868
mov byte [ebp - 4], 0xd
call fcn.00499585
add esp, 8
jmp 0x41ab6d