Function at 0x40ff34
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
mov ebx, ecx
xor edx, edx
cmp dword [ebx + 0x17c], edx
mov dword [ebp - 4], edx
jne 0x40ff54
xor eax, eax
jmp 0x4101b5
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x822]
mov word [ebp - 0x824], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x178]
cmp eax, edx
jne 0x40ff7f
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push str.Installer_npJuziPlugin.dll
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41010f
and word [ebp - 0x61c], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call section..text
cmp eax, 8
jge 0x410000
xor edx, edx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x410046
push str.JuziPlugin_npJuziPlugin.dll
lea eax, [ebp - 0x20c]
jmp 0x410038
and word [ebp - 0x20c], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00403962
pop ecx
test eax, eax
pop ecx
je 0x410046
push str.JuziPlugin_npJuziPlugin.dll
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edi, edi
cmp word [ebp - 0x61c], di
je 0x41010f
lea eax, [ebp - 0x61c]
push edi
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004016c4
add esp, 0xc
test eax, eax
je 0x41010f
lea eax, [ebp - 0x61c]
push eax
call fcn.00403e76
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x41010f
mov word [ebp - 0x20c], di
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x4100ad
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push str.InstallerJuziAgent.dll
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
and word [ebp - 0x414], 0
pop ecx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x4100ef
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push str.Installer_npJuziAgent.dll
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call fcn.00401a3c
pop ecx
and word [ebp - 0xa2c], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xa2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x178]
test eax, eax
jne 0x410134
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push str.Installer_setup_haolink.exe
push eax
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4101b0
and word [ebp - 0x414], 0
mov ebx, dword [ebx + 0x38]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
test ebx, ebx
stosw word es:[edi], ax
jne 0x41017b
mov ebx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push str._cid:
push str._s__s_
lea eax, [ebp - 0x414]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x414]
push 0
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00402231
add esp, 0x20
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret