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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc98
push ebx
push esi
lea eax, [ebp - 0xc98]
call fcn.00406522
lea eax, [ebp - 0xa80]
call fcn.00406522
lea eax, [ebp - 0x868]
call fcn.00406522
lea eax, [ebp - 0x438]
call fcn.00406522
lea eax, [ebp - 0x220]
call fcn.00406522
mov eax, dword [edi + 0xac8]
mov ecx, dword [edi + 0xac0]
push eax
mov eax, dword [edi + 0x54]
push ecx
add eax, 0x624
push eax
call fcn.0040d770
test eax, eax
je 0x415312
lea esi, [edi + 0xabc]
call fcn.00406508
mov dword [ebp - 4], 1
mov ebx, 0x214
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.link_name__u
call fcn.004017c3
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b732
test al, al
je 0x41530e
push dword [ebp - 0x21c]
mov eax, str.PROGRAM
call fcn.004014e1
pop ecx
test eax, eax
jne 0x415197
push str.company_program_brief
push dword [edi + 0x58]
lea eax, [ebp - 0x220]
call fcn.0041b732
test al, al
je 0x41530e
push str..lnk
lea esi, [ebp - 0x220]
call fcn.0041681a
push dword [ebp - 0x21c]
mov esi, str._s_s
push dword [edi + 0xac0]
lea eax, [ebp - 0xc98]
push esi
call fcn.004017c3
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.file_name__u
call fcn.004017c3
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b732
test al, al
je 0x41530e
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0x23
jne 0x41520c
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x220]
call fcn.004161dc
pop ecx
test al, al
je 0x41530e
push dword [ebp - 0x21c]
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push esi
lea eax, [ebp - 0x868]
call fcn.004017c3
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.icon_file__u
call fcn.004017c3
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b732
test al, al
je 0x41530e
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0x23
jne 0x41527c
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x220]
call fcn.004161dc
pop ecx
test al, al
je 0x41530e
push dword [ebp - 0x21c]
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push esi
lea eax, [ebp - 0xa80]
call fcn.004017c3
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.icon_index__u
call fcn.004017c3
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b732
test al, al
je 0x41530e
push dword [ebp - 0x21c]
call fcn.00422202
pop ecx
push dword [ebp - 0x864]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415301
mov eax, dword [edi + 0x54]
push esi
push dword [ebp - 0xa7c]
add eax, ebx
push dword [ebp - 0xc94]
push dword [ebp - 0x864]
push eax
call fcn.0040da0c
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x40
jb 0x415126
mov al, 1
jmp 0x415355
lea eax, [ebp - 0x650]
call fcn.00406522
push dword [ebp - 0x644]
mov eax, dword [ebp - 0x64c]
push 0x19
call fcn.0040b37f
lea esi, [ebp - 0x650]
call fcn.00406508
mov eax, dword [edi + 0x54]
push 0x30
add eax, 0xc
push eax
push dword [ebp - 0x64c]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop esi
pop ebx
leave
ret