Function at 0x40a070
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x457
push edi
mov dword [ebp - 0x624], 0
call ebx
mov dword [ebp - 0x620], eax
test eax, eax
je 0x40a0e1
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 4]
mov dword [ebp - 0x624], eax
call fcn.0047bd00
mov ecx, dword [ebp - 0x620]
call fcn.004098b0
mov dword [esi + 4], eax
push 0x459
push edi
call ebx
mov dword [ebp - 0x620], eax
test eax, eax
je 0x40a109
push dword [esi + 8]
call fcn.0047bd00
mov ecx, dword [ebp - 0x620]
call fcn.004098b0
mov dword [esi + 8], eax
push 0x3ff
push edi
call ebx
test eax, eax
je 0x40a1d3
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov word [ebp - 0x20c], ax
cmp word [ebp - 0x414], ax
je 0x40a1ba
push 0x4b35d0
push eax
lea ecx, [ebp - 0x61c]
call fcn.00416680
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00416680
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a1ba
push dword [esi + 0xc]
call fcn.0047bd00
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0047bb50
push eax
push 0
push 0xa7
push edi
mov dword [esi + 0xc], eax
call fcn.00479a10
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.0047bd00
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0047bb50
mov dword [esi + 0xc], eax
push 0x458
push edi
call ebx
test eax, eax
je 0x40a201
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a1fb
or ecx, eax
jmp 0x40a1fe
and ecx, 0xfffffffe
mov dword [esi + 0x18], ecx
push 0x41e
push edi
call ebx
test eax, eax
je 0x40a230
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a22a
or ecx, 2
jmp 0x40a22d
and ecx, 0xfffffffd
mov dword [esi + 0x18], ecx
push 0x41f
push edi
call ebx
test eax, eax
je 0x40a25f
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a259
or ecx, 4
jmp 0x40a25c
and ecx, 0xfffffffb
mov dword [esi + 0x18], ecx
push 0x420
push edi
call ebx
test eax, eax
je 0x40a28e
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a288
or ecx, 8
jmp 0x40a28b
and ecx, 0xfffffff7
mov dword [esi + 0x18], ecx
push 0x421
push edi
call ebx
test eax, eax
je 0x40a2bd
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a2b7
or ecx, 0x10
jmp 0x40a2ba
and ecx, 0xffffffef
mov dword [esi + 0x18], ecx
cmp dword [ebp - 0x624], 1
jne 0x40a2ca
and dword [esi + 0x18], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c26b
mov esp, ebp
pop ebp
ret