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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49df12
mov eax, dword fs:[0]
push eax
mov eax, 0x10bc
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x1048]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10c8], edi
mov dword [ebp - 0x10bc], eax
xor eax, eax
mov dword [ebp - 0x10c0], 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 0xb
xor eax, eax
mov dword [ebp - 0x1060], 0
push str.InstallRoot
lea ecx, [ebp - 0x1060]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
call fcn.00404580
mov byte [ebp - 4], 2
call fcn.00488c70
test al, al
mov dword [ebp - 0x1030], 0
mov ecx, str.SOFTWAREKingsoftOffice6.0Common
mov dword [ebp - 0x1020], 0
mov edx, str.SOFTWAREKingsoftPDFCommon
mov dword [ebp - 0x101c], 7
cmove edx, ecx
xor eax, eax
mov ecx, edx
mov word [ebp - 0x1030], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4194b1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1030]
call fcn.00404580
or esi, 0xffffffff
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1020], 0
je 0x41970d
cmp dword [ebp - 0x1050], 0
je 0x41970d
cmp dword [ebp - 0x101c], 8
lea eax, [ebp - 0x1030]
lea ecx, [ebp - 0x10b4]
cmovae eax, dword [ebp - 0x1030]
push eax
call fcn.00417910
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
lea ecx, [ebp - 0x10b0]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x1060]
push eax
call fcn.00417910
xor ebx, ebx
mov dword [ebp - 0x109c], ebx
mov dword [ebp - 0x1098], ebx
mov dword [ebp - 0x1094], ebx
lea eax, [ebp - 0x10ac]
mov dword [ebp - 0x10ac], ebx
push eax
push 0x20019
push ebx
push dword [ebp - 0x10b4]
push dword [ebp - 0x10bc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419581
mov ebx, dword [ebp - 0x10ac]
mov dword [ebp - 0x109c], ebx
mov dword [ebp - 0x1098], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4195e6
lea eax, [ebp - 0x1048]
mov ecx, edi
push eax
call fcn.00401f70
test ebx, ebx
je 0x4195a3
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call eax
mov edx, dword [ebp - 0x10b0]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4195c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10b4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41971b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41971b
push 0x802
lea eax, [ebp - 0x814]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10b8], 0x800
lea eax, [ebp - 0x10b8]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10c4]
push eax
push 0
push dword [ebp - 0x10b0]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10ac], eax
test eax, eax
jne 0x41968a
mov eax, dword [ebp - 0x10c4]
cmp eax, 1
je 0x419650
cmp eax, 2
je 0x419650
mov dword [ebp - 0x10ac], 0xd
jmp 0x41968a
mov eax, dword [ebp - 0x10b8]
test eax, eax
je 0x419677
test al, 1
jne 0x41966b
shr eax, 1
cmp word [ebp + eax*2 - 0x816], 0
je 0x419680
mov dword [ebp - 0x10ac], 0xd
jmp 0x41968a
xor eax, eax
mov word [ebp - 0x814], ax
mov dword [ebp - 0x10ac], 0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1078]
call fcn.00401960
cmp dword [ebp - 0x10ac], 0
lea ecx, [ebp - 0x1048]
lea eax, [ebp - 0x1078]
mov byte [ebp - 4], 8
cmovne eax, ecx
mov ecx, edi
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x1064]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x419597
mov ecx, dword [ebp - 0x1078]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4196fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4196fe
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 0x419597
lea eax, [ebp - 0x1048]
mov ecx, edi
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x101c]
mov dword [ebp - 0x10c0], 3
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x419769
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41975f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419818
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x104c]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4197c6
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4197bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419818
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x419828
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41981e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41981e
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 [edi + 0x10], 0
je 0x419847
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x419838
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419e38
xor eax, eax
mov dword [ebp - 0x1078], 0
push eax
push 0x4a9810
lea ecx, [ebp - 0x1078]
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 7
mov word [ebp - 0x1078], 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
push 0x23
xor eax, eax
mov dword [ebp - 0x1090], 0
push str.SOFTWAREKingsoftOffice6.0Common
lea ecx, [ebp - 0x1090]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x107c], 7
mov word [ebp - 0x1090], ax
call fcn.00404580
cmp dword [ebp - 0x1080], 0
mov byte [ebp - 4], 0xb
je 0x419b52
cmp dword [ebp - 0x1038], 0
je 0x419b52
cmp dword [ebp - 0x107c], 8
lea eax, [ebp - 0x1090]
lea ecx, [ebp - 0x10b0]
cmovae eax, dword [ebp - 0x1090]
push eax
call fcn.00417910
cmp dword [ebp - 0x1034], 8
lea eax, [ebp - 0x1048]
lea ecx, [ebp - 0x10b4]
mov byte [ebp - 4], 0xc
cmovae eax, dword [ebp - 0x1048]
push eax
call fcn.00417910
xor ebx, ebx
mov dword [ebp - 0x109c], ebx
mov dword [ebp - 0x1098], ebx
mov dword [ebp - 0x1094], ebx
lea eax, [ebp - 0x10b8]
mov dword [ebp - 0x10b8], ebx
push eax
push 0x20019
push ebx
push dword [ebp - 0x10b0]
push dword [ebp - 0x10bc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4199ad
mov ebx, dword [ebp - 0x10b8]
mov dword [ebp - 0x109c], ebx
mov dword [ebp - 0x1098], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x419a1d
lea eax, [ebp - 0x1078]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00401f70
mov dword [ebp - 0x10c0], 7
test ebx, ebx
je 0x4199dc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10b4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4199f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10b0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x419b6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419b6e
push 0x802
lea eax, [ebp - 0x1018]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10bc], 0x800
lea eax, [ebp - 0x10bc]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x10c4]
push eax
push 0
push dword [ebp - 0x10b4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10ac], eax
test eax, eax
jne 0x419ac1
mov eax, dword [ebp - 0x10c4]
cmp eax, 1
je 0x419a87
cmp eax, 2
je 0x419a87
mov dword [ebp - 0x10ac], 0xd
jmp 0x419ac1
mov eax, dword [ebp - 0x10bc]
test eax, eax
je 0x419aae
test al, 1
jne 0x419aa2
shr eax, 1
cmp word [ebp + eax*2 - 0x101a], 0
je 0x419ab7
mov dword [ebp - 0x10ac], 0xd
jmp 0x419ac1
xor eax, eax
mov word [ebp - 0x1018], ax
mov dword [ebp - 0x10ac], 0
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1030]
call fcn.00401960
cmp dword [ebp - 0x10ac], 0
lea ecx, [ebp - 0x1078]
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 0x10
cmovne eax, ecx
lea ecx, [ebp - 0x1060]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x101c]
mov dword [ebp - 0x10c0], 7
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x4199d1
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419b43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419b43
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 0x4199d1
lea eax, [ebp - 0x1078]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00401f70
mov dword [ebp - 0x10c0], 7
mov edx, dword [ebp - 0x107c]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x419bb2
mov ecx, dword [ebp - 0x1090]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419ba8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c62
push edx
push ecx
call fcn.00499aee
add esp, 8
xor eax, eax
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x107c], 7
mov word [ebp - 0x1090], ax
mov edx, dword [ebp - 0x1034]
mov byte [ebp - 4], 0x13
cmp edx, 8
jb 0x419c0f
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419c05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c62
push edx
push ecx
call fcn.00499aee
add esp, 8
xor eax, eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
mov edx, dword [ebp - 0x1064]
mov byte [ebp - 4], 0x14
cmp edx, 8
jb 0x419c72
mov ecx, dword [ebp - 0x1078]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419c68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419c68
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 [ebp - 0x1050], 0
je 0x419df6
lea eax, [ebp - 0x10a8]
push eax
call fcn.0041a4d0
push 0x4a9b30
push eax
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 0x15
push eax
call fcn.00401590
lea ecx, [ebp - 0x1060]
mov byte [ebp - 4], 0x16
push ecx
push eax
lea eax, [ebp - 0x1078]
push eax
call fcn.00417730
mov esi, eax
add esp, 0x1c
cmp edi, esi
je 0x419cfe
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 - 0x1064]
cmp edx, 8
jb 0x419d3e
mov ecx, dword [ebp - 0x1078]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419de6
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x101c]
xor eax, eax
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 7
mov word [ebp - 0x1078], ax
cmp edx, 8
jb 0x419d97
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419de6
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x1094]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp edx, 8
jb 0x419df6
mov ecx, dword [ebp - 0x10a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419dec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419dec
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 edx, dword [ebp - 0x104c]
cmp edx, 8
jb 0x419e38
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419e2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419e2e
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, 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.00499afc
mov esp, ebp
pop ebp
ret