Function at 0x417a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d467
mov eax, dword fs:[0]
push eax
sub esp, 0x9b4
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x9c0], edi
xor eax, eax
mov dword [ebp - 0x9b8], 0
push eax
mov dword [ebp - 0x848], 0
push 0x4a9810
mov dword [ebp - 4], 0
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], 1
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
call fcn.00404580
mov byte [ebp - 4], 2
call fcn.004886b0
test al, al
mov dword [ebp - 0x860], 0
mov ecx, str.SoftwareKingsoftOffice6.0Common
mov dword [ebp - 0x850], 0
mov edx, str.SOFTWAREKingsoftPDFCommon
mov dword [ebp - 0x84c], 7
cmove edx, ecx
xor eax, eax
mov ecx, edx
mov word [ebp - 0x860], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417b14
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x860]
call fcn.00404580
or ebx, 0xffffffff
mov byte [ebp - 4], 3
cmp dword [ebp - 0x850], 0
je 0x417da3
cmp dword [ebp - 0x820], 0
je 0x417da3
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
lea ecx, [ebp - 0x9a0]
cmovae eax, dword [ebp - 0x860]
push eax
call fcn.00417810
cmp dword [ebp - 0x81c], 8
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x99c]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x830]
push eax
call fcn.00417810
xor esi, esi
mov dword [ebp - 0x9b4], esi
mov dword [ebp - 0x9b0], esi
mov dword [ebp - 0x9ac], esi
lea eax, [ebp - 0x998]
mov dword [ebp - 0x998], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x9a0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417be3
mov esi, dword [ebp - 0x998]
mov dword [ebp - 0x9b4], esi
mov dword [ebp - 0x9b0], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x417c48
lea eax, [ebp - 0x848]
mov ecx, edi
push eax
call fcn.00401f70
test esi, esi
je 0x417c05
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call eax
mov edx, dword [ebp - 0x99c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417c22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9a0]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417db1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x417db1
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x9a4], 0x400
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x9a8]
push eax
push 0
push dword [ebp - 0x99c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x998], eax
test eax, eax
jne 0x417ce3
mov eax, dword [ebp - 0x9a8]
cmp eax, 1
je 0x417cb2
cmp eax, 2
je 0x417cb2
mov dword [ebp - 0x998], 0xd
jmp 0x417ce3
mov eax, dword [ebp - 0x9a4]
test eax, eax
je 0x417cd2
cmp byte [ebp + eax - 0x415], 0
je 0x417cd9
mov dword [ebp - 0x998], 0xd
jmp 0x417ce3
mov byte [ebp - 0x414], 0
mov dword [ebp - 0x998], 0
lea eax, [ebp - 0x990]
mov dword [ebp - 0x994], eax
lea ecx, [ebp - 0x994]
push 3
lea eax, [ebp - 0x414]
push eax
call fcn.00418bb0
push dword [ebp - 0x994]
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 8
call fcn.00401960
mov eax, dword [ebp - 0x994]
lea ecx, [ebp - 0x990]
mov byte [ebp - 4], 0xa
cmp eax, ecx
je 0x417d36
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x998], 0
lea ecx, [ebp - 0x848]
lea eax, [ebp - 0x890]
cmovne eax, ecx
mov ecx, edi
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x87c]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x417bf9
mov ecx, dword [ebp - 0x890]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417d94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417d94
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
jmp 0x417bf9
lea eax, [ebp - 0x848]
mov ecx, edi
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x84c]
mov dword [ebp - 0x9b8], 3
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x417dff
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417df5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417eae
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x81c]
xor eax, eax
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x417e5c
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417e52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417eae
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x417ebe
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417eb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417eb4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x4183a3
xor eax, eax
mov dword [ebp - 0x890], 0
push eax
push 0x4a9810
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
call fcn.00404580
push 7
xor eax, eax
mov dword [ebp - 0x848], 0
push str.Version
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
call fcn.00404580
mov byte [ebp - 4], 0xc
call fcn.004886b0
test al, al
mov dword [ebp - 0x878], 0
mov eax, str.SoftwareKingsoftOffice6.0Common
mov dword [ebp - 0x868], 0
mov esi, str.SOFTWAREKingsoftPDFCommon
mov dword [ebp - 0x864], 7
cmove esi, eax
xor eax, eax
mov ecx, esi
mov word [ebp - 0x878], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417f84
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x878]
call fcn.00404580
cmp dword [ebp - 0x868], 0
mov byte [ebp - 4], 0xd
je 0x418211
cmp dword [ebp - 0x838], 0
je 0x418211
cmp dword [ebp - 0x864], 8
lea eax, [ebp - 0x878]
lea ecx, [ebp - 0x99c]
cmovae eax, dword [ebp - 0x878]
push eax
call fcn.00417810
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
lea ecx, [ebp - 0x9a0]
mov byte [ebp - 4], 0xe
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.00417810
xor esi, esi
mov dword [ebp - 0x9b4], esi
mov dword [ebp - 0x9b0], esi
mov dword [ebp - 0x9ac], esi
lea eax, [ebp - 0x9a4]
mov dword [ebp - 0x9a4], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x99c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418050
mov esi, dword [ebp - 0x9a4]
mov dword [ebp - 0x9b4], esi
mov dword [ebp - 0x9b0], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x4180b6
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x830]
call fcn.00401f70
test esi, esi
je 0x418075
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x9a0]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418092
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x99c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x418223
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x418223
push 0x401
lea eax, [ebp - 0x818]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x9a8], 0x400
lea eax, [ebp - 0x9a8]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x9bc]
push eax
push 0
push dword [ebp - 0x9a0]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x998], eax
test eax, eax
jne 0x418151
mov eax, dword [ebp - 0x9bc]
cmp eax, 1
je 0x418120
cmp eax, 2
je 0x418120
mov dword [ebp - 0x998], 0xd
jmp 0x418151
mov eax, dword [ebp - 0x9a8]
test eax, eax
je 0x418140
cmp byte [ebp + eax - 0x819], 0
je 0x418147
mov dword [ebp - 0x998], 0xd
jmp 0x418151
mov byte [ebp - 0x818], 0
mov dword [ebp - 0x998], 0
lea eax, [ebp - 0x990]
mov dword [ebp - 0x994], eax
lea ecx, [ebp - 0x994]
push 3
lea eax, [ebp - 0x818]
push eax
call fcn.00418bb0
push dword [ebp - 0x994]
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 0x12
call fcn.00401960
mov eax, dword [ebp - 0x994]
lea ecx, [ebp - 0x990]
mov byte [ebp - 4], 0x14
cmp eax, ecx
je 0x4181a4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x998], 0
lea ecx, [ebp - 0x890]
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 0x41806a
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418202
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418202
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
jmp 0x41806a
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x830]
call fcn.00401f70
lea eax, [ebp - 0x830]
cmp edi, eax
je 0x41826b
mov ecx, edi
call fcn.00401bf0
mov eax, dword [ebp - 0x830]
mov dword [edi], eax
mov eax, dword [ebp - 0x82c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x828]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x824]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x820]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [edi + 0x14], eax
jmp 0x4182ab
mov edx, dword [ebp - 0x81c]
cmp edx, 8
jb 0x4182ab
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4182a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418393
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x864]
cmp edx, 8
jb 0x4182eb
mov ecx, dword [ebp - 0x878]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4182e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418393
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
cmp edx, 8
jb 0x418344
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41833a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418393
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x87c]
xor eax, eax
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
cmp edx, 8
jb 0x4183a3
mov ecx, dword [ebp - 0x890]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418399
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418399
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
mov eax, edi
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.0049928d
mov esp, ebp
pop ebp
ret 4