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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4af480]
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 0x40a0c1
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.0047cd70
mov ecx, dword [ebp - 0x620]
call fcn.00409890
mov dword [esi + 4], eax
push 0x459
push edi
call ebx
mov dword [ebp - 0x620], eax
test eax, eax
je 0x40a0e9
push dword [esi + 8]
call fcn.0047cd70
mov ecx, dword [ebp - 0x620]
call fcn.00409890
mov dword [esi + 8], eax
push 0x3ff
push edi
call ebx
test eax, eax
je 0x40a1b3
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 0x40a19a
push 0x4b45c0
push eax
lea ecx, [ebp - 0x61c]
call fcn.00416700
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00416700
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a19a
push dword [esi + 0xc]
call fcn.0047cd70
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0047cbc0
push eax
push 0
push 0xa7
push edi
mov dword [esi + 0xc], eax
call fcn.0047ab10
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.0047cd70
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0047cbc0
mov dword [esi + 0xc], eax
push 0x458
push edi
call ebx
test eax, eax
je 0x40a1e1
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a1db
or ecx, eax
jmp 0x40a1de
and ecx, 0xfffffffe
mov dword [esi + 0x18], ecx
push 0x41e
push edi
call ebx
test eax, eax
je 0x40a210
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a20a
or ecx, 2
jmp 0x40a20d
and ecx, 0xfffffffd
mov dword [esi + 0x18], ecx
push 0x41f
push edi
call ebx
test eax, eax
je 0x40a23f
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a239
or ecx, 4
jmp 0x40a23c
and ecx, 0xfffffffb
mov dword [esi + 0x18], ecx
push 0x420
push edi
call ebx
test eax, eax
je 0x40a26e
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a268
or ecx, 8
jmp 0x40a26b
and ecx, 0xfffffff7
mov dword [esi + 0x18], ecx
push 0x421
push edi
call ebx
test eax, eax
je 0x40a29d
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x18]
cmp eax, 1
jne 0x40a297
or ecx, 0x10
jmp 0x40a29a
and ecx, 0xffffffef
mov dword [esi + 0x18], ecx
cmp dword [ebp - 0x624], 1
jne 0x40a2aa
and dword [esi + 0x18], 0xfffffffe
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d2db
mov esp, ebp
pop ebp
ret