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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x579aa4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x448], ecx
push 0x5c
mov ecx, dword [ebp - 0x448]
add ecx, 0x1cc
call fcn.0049afa0
mov dword [ebp - 0x218], eax
push 0x55093c
lea ecx, [ebp - 0x214]
call fcn.00405520
cmp dword [ebp - 0x218], 0xffffffff
je 0x49f755
mov ecx, dword [ebp - 0x448]
add ecx, 0x1cc
call fcn.00406180
sub eax, dword [ebp - 0x218]
sub eax, 1
push eax
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x448]
add ecx, 0x1cc
call fcn.0049b160
push eax
lea ecx, [ebp - 0x214]
call fcn.00404a40
lea ecx, [ebp - 0x43c]
call fcn.00406190
push 0x208
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0050c770
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax + 0x1d0]
push ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov edx, dword [ebp - 0x448]
add edx, 0x23c
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49f99c
mov eax, dword [ebp - 0x448]
add eax, 0x23c
push eax
lea ecx, [ebp - 0x440]
push ecx
mov ecx, dword [ebp - 0x448]
call fcn.0049ea60
push eax
mov ecx, dword [ebp - 0x448]
add ecx, 0x22c
call fcn.00404a40
lea ecx, [ebp - 0x440]
call fcn.00406190
lea ecx, [ebp - 0x230]
call fcn.004a53e0
push 0x550940
lea ecx, [ebp - 0x220]
call fcn.00405520
push 0
push 0x100000
push 1
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x448]
add ecx, 0x1cc
call fcn.00406010
push eax
call fcn.004a8130
add esp, 0x14
test eax, eax
je 0x49f852
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x230]
call fcn.004a5400
push eax
lea ecx, [ebp - 0x220]
call fcn.00404a40
lea ecx, [ebp - 0x444]
call fcn.00406190
mov ecx, dword [0x57ca60]
and ecx, 1
jne 0x49f888
mov edx, dword [0x57ca60]
or edx, 1
mov dword [0x57ca60], edx
push 0x550944
mov ecx, 0x57ca5c
call fcn.00405520
push 0x54a560
call fcn.0050caef
add esp, 4
mov ecx, 0x57ca5c
call fcn.00405620
movzx eax, al
test eax, eax
je 0x49f8a8
push 0x57f108
mov ecx, 0x57ca5c
call fcn.00404a40
push 0x208
push 0
lea ecx, [ebp - 0x438]
push ecx
call fcn.0050c770
add esp, 0xc
push 0x104
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax + 0x1d0]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x21c], 0xffffffff
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x438]
push eax
mov ecx, 0x57ca5c
call fcn.00406010
push eax
lea ecx, [ebp - 0x220]
call fcn.00406010
push eax
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx + 0x230]
push edx
mov eax, dword [ebp - 0x448]
add eax, 0x23c
push eax
mov ecx, dword [ebp - 0x448]
add ecx, 0x21c
call fcn.004a53b0
push eax
mov ecx, dword [ebp - 0x448]
add ecx, 0x21c
call fcn.004a5390
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x448]
add ecx, 0x1cc
call fcn.00406010
push eax
lea ecx, [ebp - 0x214]
call fcn.00406010
push eax
mov ecx, dword [ebp - 0x448]
add ecx, 0x22c
call fcn.00406010
push eax
mov ecx, dword [ebp - 0x448]
add ecx, 0x234
call fcn.004d19e0
lea ecx, [ebp - 0x220]
call fcn.00406190
lea ecx, [ebp - 0x214]
call fcn.00406190
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050c75f
mov esp, ebp
pop ebp
ret