Function at 0x4134a1
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 0x4134c1
xor eax, eax
jmp 0x413724
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 0x4134ec
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 0x429ac4
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 0x41367c
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 0x41356d
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 0x4135b3
push 0x429bcc
lea eax, [ebp - 0x20c]
jmp 0x4135a5
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 0x4135b3
push 0x429bcc
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 0x41367c
lea eax, [ebp - 0x61c]
push edi
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004016c4
add esp, 0xc
test eax, eax
je 0x41367c
lea eax, [ebp - 0x61c]
push eax
call fcn.00403efb
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x41367c
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 0x41361a
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 0x429b9c
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 0x41365c
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 0x429b68
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 0x4136a1
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 0x429afc
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 0x41371f
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 0x4136e8
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 0x429590
push 0x429b58
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