Function at 0x4192f0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d668
mov eax, dword fs:[0]
push eax
sub esp, 0x9c0
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x9cc], edi
mov dword [ebp - 0x9c0], eax
xor eax, eax
mov dword [ebp - 0x9c4], 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 0xb
xor eax, eax
mov dword [ebp - 0x860], 0
push str.InstallRoot
lea ecx, [ebp - 0x860]
mov dword [ebp - 4], 1
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
call fcn.00404580
mov byte [ebp - 4], 2
call fcn.004886b0
test al, al
mov dword [ebp - 0x830], 0
mov ecx, str.SOFTWAREKingsoftOffice6.0Common
mov dword [ebp - 0x820], 0
mov edx, str.SOFTWAREKingsoftPDFCommon
mov dword [ebp - 0x81c], 7
cmove edx, ecx
xor eax, eax
mov ecx, edx
mov word [ebp - 0x830], ax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419400
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x830]
call fcn.00404580
or esi, 0xffffffff
mov byte [ebp - 4], 3
cmp dword [ebp - 0x820], 0
je 0x419690
cmp dword [ebp - 0x850], 0
je 0x419690
cmp dword [ebp - 0x81c], 8
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x9b8]
cmovae eax, dword [ebp - 0x830]
push eax
call fcn.00417810
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
lea ecx, [ebp - 0x9b4]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x860]
push eax
call fcn.00417810
xor ebx, ebx
mov dword [ebp - 0x89c], ebx
mov dword [ebp - 0x898], ebx
mov dword [ebp - 0x894], ebx
lea eax, [ebp - 0x9b0]
mov dword [ebp - 0x9b0], ebx
push eax
push 0x20019
push ebx
push dword [ebp - 0x9b8]
push dword [ebp - 0x9c0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4194d0
mov ebx, dword [ebp - 0x9b0]
mov dword [ebp - 0x89c], ebx
mov dword [ebp - 0x898], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x419535
lea eax, [ebp - 0x848]
mov ecx, edi
push eax
call fcn.00401f70
test ebx, ebx
je 0x4194f2
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call eax
mov edx, dword [ebp - 0x9b4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41950f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9b8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41969e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41969e
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x9bc], 0x400
lea eax, [ebp - 0x9bc]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x9c8]
push eax
push 0
push dword [ebp - 0x9b4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x9b0], eax
test eax, eax
jne 0x4195d0
mov eax, dword [ebp - 0x9c8]
cmp eax, 1
je 0x41959f
cmp eax, 2
je 0x41959f
mov dword [ebp - 0x9b0], 0xd
jmp 0x4195d0
mov eax, dword [ebp - 0x9bc]
test eax, eax
je 0x4195bf
cmp byte [ebp + eax - 0x415], 0
je 0x4195c6
mov dword [ebp - 0x9b0], 0xd
jmp 0x4195d0
mov byte [ebp - 0x414], 0
mov dword [ebp - 0x9b0], 0
lea eax, [ebp - 0x9a8]
mov dword [ebp - 0x9ac], eax
lea ecx, [ebp - 0x9ac]
push 3
lea eax, [ebp - 0x414]
push eax
call fcn.00418bb0
push dword [ebp - 0x9ac]
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 8
call fcn.00401960
mov eax, dword [ebp - 0x9ac]
lea ecx, [ebp - 0x9a8]
mov byte [ebp - 4], 0xa
cmp eax, ecx
je 0x419623
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x9b0], 0
lea ecx, [ebp - 0x848]
lea eax, [ebp - 0x878]
cmovne eax, ecx
mov ecx, edi
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x864]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4194e6
mov ecx, dword [ebp - 0x878]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419681
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419681
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 0x4194e6
lea eax, [ebp - 0x848]
mov ecx, edi
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x81c]
mov dword [ebp - 0x9c4], 3
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4196ec
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4196e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41979b
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x84c]
xor eax, eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x419749
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41973f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41979b
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x4197ab
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4197a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4197a1
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
je 0x4197ca
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4197bb
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419def
xor eax, eax
mov dword [ebp - 0x878], 0
push eax
push 0x4a9810
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], 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
push 0x23
xor eax, eax
mov dword [ebp - 0x890], 0
push str.SOFTWAREKingsoftOffice6.0Common
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
call fcn.00404580
cmp dword [ebp - 0x880], 0
mov byte [ebp - 4], 0xd
je 0x419b09
cmp dword [ebp - 0x838], 0
je 0x419b09
cmp dword [ebp - 0x87c], 8
lea eax, [ebp - 0x890]
lea ecx, [ebp - 0x9b4]
cmovae eax, dword [ebp - 0x890]
push eax
call fcn.00417810
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
lea ecx, [ebp - 0x9b8]
mov byte [ebp - 4], 0xe
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.00417810
xor ebx, ebx
mov dword [ebp - 0x89c], ebx
mov dword [ebp - 0x898], ebx
mov dword [ebp - 0x894], ebx
lea eax, [ebp - 0x9bc]
mov dword [ebp - 0x9bc], ebx
push eax
push 0x20019
push ebx
push dword [ebp - 0x9b4]
push dword [ebp - 0x9c0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419930
mov ebx, dword [ebp - 0x9bc]
mov dword [ebp - 0x89c], ebx
mov dword [ebp - 0x898], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x4199a0
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x860]
call fcn.00401f70
mov dword [ebp - 0x9c4], 7
test ebx, ebx
je 0x41995f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x9b8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41997c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9b4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x419b25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419b25
push 0x401
lea eax, [ebp - 0x818]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x9c0], 0x400
lea eax, [ebp - 0x9c0]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x9c8]
push eax
push 0
push dword [ebp - 0x9b8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x9b0], eax
test eax, eax
jne 0x419a3b
mov eax, dword [ebp - 0x9c8]
cmp eax, 1
je 0x419a0a
cmp eax, 2
je 0x419a0a
mov dword [ebp - 0x9b0], 0xd
jmp 0x419a3b
mov eax, dword [ebp - 0x9c0]
test eax, eax
je 0x419a2a
cmp byte [ebp + eax - 0x819], 0
je 0x419a31
mov dword [ebp - 0x9b0], 0xd
jmp 0x419a3b
mov byte [ebp - 0x818], 0
mov dword [ebp - 0x9b0], 0
lea eax, [ebp - 0x9a8]
mov dword [ebp - 0x9ac], eax
lea ecx, [ebp - 0x9ac]
push 3
lea eax, [ebp - 0x818]
push eax
call fcn.00418bb0
push dword [ebp - 0x9ac]
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 0x12
call fcn.00401960
mov eax, dword [ebp - 0x9ac]
lea ecx, [ebp - 0x9a8]
mov byte [ebp - 4], 0x14
cmp eax, ecx
je 0x419a8e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x9b0], 0
lea ecx, [ebp - 0x878]
lea eax, [ebp - 0x830]
cmovne eax, ecx
lea ecx, [ebp - 0x860]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x81c]
mov dword [ebp - 0x9c4], 7
mov byte [ebp - 4], 0x10
cmp edx, 8
jb 0x419954
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419afa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419afa
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 0x419954
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x860]
call fcn.00401f70
mov dword [ebp - 0x9c4], 7
mov edx, dword [ebp - 0x87c]
mov byte [ebp - 4], 0x16
cmp edx, 8
jb 0x419b69
mov ecx, dword [ebp - 0x890]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419b5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c19
push edx
push ecx
call fcn.0049927f
add esp, 8
xor eax, eax
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
mov edx, dword [ebp - 0x834]
mov byte [ebp - 4], 0x17
cmp edx, 8
jb 0x419bc6
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419bbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c19
push edx
push ecx
call fcn.0049927f
add esp, 8
xor eax, eax
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
mov edx, dword [ebp - 0x864]
mov byte [ebp - 4], 0x18
cmp edx, 8
jb 0x419c29
mov ecx, dword [ebp - 0x878]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419c1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419c1f
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 [ebp - 0x850], 0
je 0x419dad
lea eax, [ebp - 0x8a8]
push eax
call fcn.0041a480
push 0x4a9b28
push eax
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 0x19
push eax
call fcn.00401590
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 0x1a
push ecx
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.00417580
mov esi, eax
add esp, 0x1c
cmp edi, esi
je 0x419cb5
mov ecx, edi
call fcn.00401bf0
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x864]
cmp edx, 8
jb 0x419cf5
mov ecx, dword [ebp - 0x878]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419ceb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419d9d
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x81c]
xor eax, eax
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
cmp edx, 8
jb 0x419d4e
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419d9d
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x894]
xor eax, eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
cmp edx, 8
jb 0x419dad
mov ecx, dword [ebp - 0x8a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419da3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419da3
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 edx, dword [ebp - 0x84c]
cmp edx, 8
jb 0x419def
mov ecx, dword [ebp - 0x860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419de5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419de5
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