Function at 0x414a19
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.0040648e
lea eax, [ebp - 0xa80]
call fcn.0040648e
lea eax, [ebp - 0x868]
call fcn.0040648e
lea eax, [ebp - 0x438]
call fcn.0040648e
lea eax, [ebp - 0x220]
call fcn.0040648e
mov eax, dword [edi + 0x1620]
mov ecx, dword [edi + 0x1618]
push eax
mov eax, dword [edi + 0x54]
push ecx
add eax, 0x626
push eax
call fcn.0040d923
test eax, eax
je 0x414c82
lea esi, [edi + 0x1614]
call fcn.00406474
mov dword [ebp - 4], 1
mov ebx, 0x216
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.link_name__u
call fcn.004017f8
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b2da
test al, al
je 0x414c7e
push dword [ebp - 0x21c]
mov eax, str.PROGRAM
call fcn.00401515
pop ecx
test eax, eax
jne 0x414b07
push str.company_program_brief
push dword [edi + 0x58]
lea eax, [ebp - 0x220]
call fcn.0041b2da
test al, al
je 0x414c7e
push str..lnk
lea esi, [ebp - 0x220]
call fcn.0041629c
push dword [ebp - 0x21c]
mov esi, str._s_s
push dword [edi + 0x1618]
lea eax, [ebp - 0xc98]
push esi
call fcn.004017f8
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.file_name__u
call fcn.004017f8
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b2da
test al, al
je 0x414c7e
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0x23
jne 0x414b7c
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x220]
call fcn.00415bcd
pop ecx
test al, al
je 0x414c7e
push dword [ebp - 0x21c]
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push esi
lea eax, [ebp - 0x868]
call fcn.004017f8
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.icon_file__u
call fcn.004017f8
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b2da
test al, al
je 0x414c7e
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0x23
jne 0x414bec
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x220]
call fcn.00415bcd
pop ecx
test al, al
je 0x414c7e
push dword [ebp - 0x21c]
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push esi
lea eax, [ebp - 0xa80]
call fcn.004017f8
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.icon_index__u
call fcn.004017f8
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b2da
test al, al
je 0x414c7e
push dword [ebp - 0x21c]
call fcn.004228d6
pop ecx
push dword [ebp - 0x864]
mov esi, eax
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414c71
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.0040dbc4
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x40
jb 0x414a96
mov al, 1
jmp 0x414cc5
lea eax, [ebp - 0x650]
call fcn.0040648e
push dword [ebp - 0x644]
mov eax, dword [ebp - 0x64c]
push 0x19
call fcn.0040b568
lea esi, [ebp - 0x650]
call fcn.00406474
mov eax, dword [edi + 0x54]
push 0x30
add eax, 0xe
push eax
push dword [ebp - 0x64c]
push dword [edi + 4]
call dword [0x4304c4]
xor al, al
pop esi
pop ebx
leave
ret