Function at 0x413756
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 + 0x180], edx
mov dword [ebp - 4], edx
jne 0x413776
xor eax, eax
jmp 0x4139d9
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 + 0x17c]
cmp eax, edx
jne 0x4137a1
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 0x413931
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 0x413822
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 0x413868
push str.JuziPlugin_npJuziPlugin.dll
lea eax, [ebp - 0x20c]
jmp 0x41385a
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.00403975
pop ecx
test eax, eax
pop ecx
je 0x413868
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 0x413931
lea eax, [ebp - 0x61c]
push edi
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004016c4
add esp, 0xc
test eax, eax
je 0x413931
lea eax, [ebp - 0x61c]
push eax
call fcn.00403efb
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x413931
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 + 0x7c]
test eax, eax
jne 0x4138cf
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 + 0x7c]
test eax, eax
jne 0x413911
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 + 0x17c]
test eax, eax
jne 0x413956
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 0x4139d4
and word [ebp - 0x414], 0
mov ebx, dword [ebx + 0x3c]
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 0x41399d
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]
push 0
lea eax, [ebp - 0x414]
push 0
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00402231
add esp, 0x24
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret