Function at 0x4135f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x497a28
lea ecx, [ebp - 8]
call fcn.004037fc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push str.install.dat
push eax
lea eax, [ebp - 8]
push eax
call fcn.0042e630
add esp, 0xc
test al, al
je 0x413885
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add ebx, 0xe0
push esi
mov edi, 0x3ea
push edi
mov eax, ebx
mov dword [ebp + 8], ebx
call fcn.0040440e
test al, al
je 0x41387a
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x41387a
lea eax, [ebp - 1]
push eax
push 0x13
mov eax, ebx
mov byte [ebp - 1], 0
call fcn.004043d3
test al, al
je 0x41386e
cmp byte [ebp - 1], 0
je 0x41386e
lea esi, [edi + 2]
push esi
mov eax, ebx
call fcn.00404425
test al, al
jne 0x413885
push dword [ebp + 0xc]
mov eax, ebx
push esi
call fcn.004043bd
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
lea ebx, [edi - 1]
push ebx
call fcn.004043f2
test al, al
je 0x4136d1
mov eax, dword [ebp + 8]
dec esi
push esi
call fcn.00404425
test al, al
jne 0x4136d1
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push esi
call fcn.0040437f
push 0x497a28
lea ecx, [ebp - 0x10]
mov byte [ebp + 0x13], 1
call fcn.004037fc
lea eax, [ebp - 0x10]
push eax
push str._INSTALLCACHEDIR_inststub.exe
call fcn.0043b446
pop ecx
pop ecx
test eax, eax
jne 0x413727
mov byte [ebp + 0x13], al
lea esi, [ebp - 0x58]
call fcn.00403b29
push dword [ebp - 8]
mov eax, esi
push eax
call fcn.004041f2
push dword [ebp - 8]
test al, al
jne 0x4137be
push str.failed_to_initialze_embedded_data:__s
call fcn.00416ef0
pop ecx
jmp 0x413825
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4136f9
lea esi, [ebp - 0x58]
call fcn.00403b29
push 0
push dword [ebp - 0x10]
mov eax, esi
call fcn.00403bf8
test al, al
je 0x413826
push dword [ebp - 0x10]
push str.initialzed_embedded_data:__s
call fcn.00416edc
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
push esi
push edi
lea eax, [ebp - 0x58]
call fcn.0040440e
test al, al
je 0x41379e
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x41379e
mov eax, dword [ebp + 8]
push esi
push edi
call fcn.004043bd
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x58]
call fcn.004043f2
test al, al
jne 0x4137a5
push str.CInstallManager::GetLicenseType_3331__:_failed_to_get_license_type
jmp 0x413820
push str.CInstallManager::GetLicenseType_3318__:_failed_to_get_license_path
jmp 0x413820
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push ebx
call fcn.0040437f
push dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00404111
jmp 0x413838
push str.initialzed_embedded_data:__s
call fcn.00416edc
cmp byte [ebp + 0x13], 0
pop ecx
pop ecx
je 0x413838
mov esi, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x58]
call fcn.0040440e
test al, al
je 0x4137f5
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4137f5
mov eax, dword [ebp + 8]
push esi
push edi
call fcn.004043bd
jmp 0x413804
push str.CInstallManager::GetLicenseType_3364__:_failed_to_get_license_path
call fcn.00416f04
pop ecx
mov byte [ebp + 0x13], 0
cmp byte [ebp + 0x13], 0
je 0x413838
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x58]
call fcn.004043f2
test al, al
jne 0x41382c
push str.CInstallManager::GetLicenseType_3377__:_failed_to_get_license_type
call fcn.00416f04
pop ecx
mov byte [ebp + 0x13], 0
jmp 0x413838
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push ebx
call fcn.0040437f
lea ecx, [ebp - 0x58]
call fcn.00403b7f
cmp byte [ebp + 0x13], 0
jne 0x413861
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
call fcn.0040440e
test al, al
jne 0x413861
push str.CInstallManager::GetLicenseType_3392__:_failed_to_get_license_path
call fcn.00416f04
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00403af7
jmp 0x413885
mov ecx, dword [ebp - 8]
push 0
call fcn.004082c4
jmp 0x413884
push str.license_data_missing
call fcn.00416f04
pop ecx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00403af7
pop edi
pop esi
pop ebx
leave
ret 0xc