Function at 0x417a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dd11
mov eax, dword fs:[0]
push eax
mov eax, 0x10b0
call fcn.00499fb0
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 ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x10bc], ebx
xor eax, eax
mov dword [ebp - 0x10b4], 0
push eax
mov dword [ebp - 0x1048], 0
push 0x4a9810
mov dword [ebp - 4], 0
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], 1
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
call fcn.00404580
mov byte [ebp - 4], 2
call fcn.00488c70
test al, al
mov dword [ebp - 0x1060], 0
mov ecx, str.SoftwareKingsoftOffice6.0Common
mov dword [ebp - 0x1050], 0
mov edx, str.SOFTWAREKingsoftPDFCommon
mov dword [ebp - 0x104c], 7
cmove edx, ecx
xor eax, eax
mov ecx, edx
mov word [ebp - 0x1060], ax
lea esi, [ecx + 2]
jmp 0x417b60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417b60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1060]
call fcn.00404580
or edi, 0xffffffff
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1050], 0
je 0x417dbb
cmp dword [ebp - 0x1020], 0
je 0x417dbb
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
lea ecx, [ebp - 0x109c]
cmovae eax, dword [ebp - 0x1060]
push eax
call fcn.00417910
cmp dword [ebp - 0x101c], 8
lea eax, [ebp - 0x1030]
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x1030]
push eax
call fcn.00417910
xor esi, esi
mov dword [ebp - 0x10b0], esi
mov dword [ebp - 0x10ac], esi
mov dword [ebp - 0x10a8], esi
lea eax, [ebp - 0x1094]
mov dword [ebp - 0x1094], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x109c]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417c2f
mov esi, dword [ebp - 0x1094]
mov dword [ebp - 0x10b0], esi
mov dword [ebp - 0x10ac], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x417c94
lea eax, [ebp - 0x1048]
mov ecx, ebx
push eax
call fcn.00401f70
test esi, esi
je 0x417c51
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call eax
mov edx, dword [ebp - 0x1098]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417c6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x109c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417dc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x417dc9
push 0x802
lea eax, [ebp - 0x814]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10a0], 0x800
lea eax, [ebp - 0x10a0]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10a4]
push eax
push 0
push dword [ebp - 0x1098]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1094], eax
test eax, eax
jne 0x417d38
mov eax, dword [ebp - 0x10a4]
cmp eax, 1
je 0x417cfe
cmp eax, 2
je 0x417cfe
mov dword [ebp - 0x1094], 0xd
jmp 0x417d38
mov eax, dword [ebp - 0x10a0]
test eax, eax
je 0x417d25
test al, 1
jne 0x417d19
shr eax, 1
cmp word [ebp + eax*2 - 0x816], 0
je 0x417d2e
mov dword [ebp - 0x1094], 0xd
jmp 0x417d38
xor eax, eax
mov word [ebp - 0x814], ax
mov dword [ebp - 0x1094], 0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1090]
call fcn.00401960
cmp dword [ebp - 0x1094], 0
lea ecx, [ebp - 0x1048]
lea eax, [ebp - 0x1090]
mov byte [ebp - 4], 8
cmovne eax, ecx
mov ecx, ebx
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x107c]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x417c45
mov ecx, dword [ebp - 0x1090]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417dac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417dac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
jmp 0x417c45
lea eax, [ebp - 0x1048]
mov ecx, ebx
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x104c]
mov dword [ebp - 0x10b4], 3
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x417e17
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417e0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417ec6
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x101c]
xor eax, eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x417e74
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417e6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417ec6
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x417ed6
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417ecc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417ecc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
cmp dword [ebx + 0x10], 0
jne 0x41838b
xor eax, eax
mov dword [ebp - 0x1090], 0
push eax
push 0x4a9810
lea ecx, [ebp - 0x1090]
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x107c], 7
mov word [ebp - 0x1090], ax
call fcn.00404580
push 7
xor eax, eax
mov dword [ebp - 0x1048], 0
push str.Version
lea ecx, [ebp - 0x1048]
mov dword [ebp - 4], 9
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
call fcn.00404580
mov byte [ebp - 4], 0xa
call fcn.00488c70
test al, al
mov dword [ebp - 0x1078], 0
mov eax, str.SoftwareKingsoftOffice6.0Common
mov dword [ebp - 0x1068], 0
mov esi, str.SOFTWAREKingsoftPDFCommon
mov dword [ebp - 0x1064], 7
cmove esi, eax
xor eax, eax
mov ecx, esi
mov word [ebp - 0x1078], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417fa0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1078]
call fcn.00404580
cmp dword [ebp - 0x1068], 0
mov byte [ebp - 4], 0xb
je 0x4181f9
cmp dword [ebp - 0x1038], 0
je 0x4181f9
cmp dword [ebp - 0x1064], 8
lea eax, [ebp - 0x1078]
lea ecx, [ebp - 0x1098]
cmovae eax, dword [ebp - 0x1078]
push eax
call fcn.00417910
cmp dword [ebp - 0x1034], 8
lea eax, [ebp - 0x1048]
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 0xc
cmovae eax, dword [ebp - 0x1048]
push eax
call fcn.00417910
xor esi, esi
mov dword [ebp - 0x10b0], esi
mov dword [ebp - 0x10ac], esi
mov dword [ebp - 0x10a8], esi
lea eax, [ebp - 0x10a0]
mov dword [ebp - 0x10a0], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x1098]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41806c
mov esi, dword [ebp - 0x10a0]
mov dword [ebp - 0x10b0], esi
mov dword [ebp - 0x10ac], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4180d2
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1030]
call fcn.00401f70
test esi, esi
je 0x418091
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x109c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4180ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1098]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41820b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41820b
push 0x802
lea eax, [ebp - 0x1018]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10a4], 0x800
lea eax, [ebp - 0x10a4]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x10b8]
push eax
push 0
push dword [ebp - 0x109c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1094], eax
test eax, eax
jne 0x418176
mov eax, dword [ebp - 0x10b8]
cmp eax, 1
je 0x41813c
cmp eax, 2
je 0x41813c
mov dword [ebp - 0x1094], 0xd
jmp 0x418176
mov eax, dword [ebp - 0x10a4]
test eax, eax
je 0x418163
test al, 1
jne 0x418157
shr eax, 1
cmp word [ebp + eax*2 - 0x101a], 0
je 0x41816c
mov dword [ebp - 0x1094], 0xd
jmp 0x418176
xor eax, eax
mov word [ebp - 0x1018], ax
mov dword [ebp - 0x1094], 0
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00401960
cmp dword [ebp - 0x1094], 0
lea ecx, [ebp - 0x1090]
lea eax, [ebp - 0x1060]
mov byte [ebp - 4], 0x10
cmovne eax, ecx
lea ecx, [ebp - 0x1030]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x104c]
cmp edx, 8
jb 0x418086
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4181ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4181ea
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
jmp 0x418086
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1030]
call fcn.00401f70
lea eax, [ebp - 0x1030]
cmp ebx, eax
je 0x418253
mov ecx, ebx
call fcn.00401bf0
mov eax, dword [ebp - 0x1030]
mov dword [ebx], eax
mov eax, dword [ebp - 0x102c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1028]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1024]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1020]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x101c]
mov dword [ebx + 0x14], eax
jmp 0x418293
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x418293
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418289
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41837b
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x1064]
cmp edx, 8
jb 0x4182d3
mov ecx, dword [ebp - 0x1078]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4182c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41837b
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 7
mov word [ebp - 0x1078], ax
cmp edx, 8
jb 0x41832c
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41837b
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x107c]
xor eax, eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
cmp edx, 8
jb 0x41838b
mov ecx, dword [ebp - 0x1090]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418381
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418381
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
mov eax, ebx
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.00499afc
mov esp, ebp
pop ebp
ret 4