Function at 0x414b38
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.00406448
lea eax, [ebp - 0xa80]
call fcn.00406448
lea eax, [ebp - 0x868]
call fcn.00406448
lea eax, [ebp - 0x438]
call fcn.00406448
lea eax, [ebp - 0x220]
call fcn.00406448
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.0040d1bc
test eax, eax
je 0x414da1
lea esi, [edi + 0xabc]
call fcn.00406409
mov dword [ebp - 4], 1
mov ebx, 0x214
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.link_name__u
call fcn.0040179f
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b388
test al, al
je 0x414d9d
push dword [ebp - 0x21c]
mov eax, str.PROGRAM
call fcn.004014be
pop ecx
test eax, eax
jne 0x414c26
pushal
lea edi, [ebp - 0x210]
mov esi, str.BPE_MetaTrader.lnk
mov ecx, 0x34
rep movsb byte es:[edi], byte [esi]
popal
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [ebp - 0x21c]
mov esi, str._s_s
push dword [edi + 0xac0]
lea eax, [ebp - 0xc98]
push esi
call fcn.0040179f
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.file_name__u
call fcn.0040179f
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b388
test al, al
je 0x414d9d
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0x23
jne 0x414c9b
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x220]
call fcn.00415c76
pop ecx
test al, al
je 0x414d9d
push dword [ebp - 0x21c]
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push esi
lea eax, [ebp - 0x868]
call fcn.0040179f
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.icon_file__u
call fcn.0040179f
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b388
test al, al
je 0x414d9d
mov eax, dword [ebp - 0x21c]
cmp word [eax], 0x23
jne 0x414d0b
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x220]
call fcn.00415c76
pop ecx
test al, al
je 0x414d9d
push dword [ebp - 0x21c]
mov eax, dword [edi + 0x54]
add eax, ebx
push eax
push esi
lea eax, [ebp - 0xa80]
call fcn.0040179f
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x438]
push str.icon_index__u
call fcn.0040179f
pop ecx
pop ecx
push dword [ebp - 0x434]
lea eax, [ebp - 0x220]
push dword [edi + 0x58]
call fcn.0041b388
test al, al
je 0x414d9d
push dword [ebp - 0x21c]
call fcn.00421ada
pop ecx
push dword [ebp - 0x864]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414d90
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.0040d458
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x40
jb 0x414bb5
mov al, 1
jmp 0x414de4
lea eax, [ebp - 0x650]
call fcn.00406448
push dword [ebp - 0x644]
mov eax, dword [ebp - 0x64c]
push 0x19
call fcn.0040b351
lea esi, [ebp - 0x650]
call fcn.00406409
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