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

Disassembly:
push 0xffffffffffffffff
push 0x5ba83b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov eax, dword [esp + 0x440]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, ecx
mov dword [ebx + 0x174], 0
mov dword [eax], 0
mov eax, dword [ebx + 0x150]
push 5
push eax
call edi
mov esi, eax
test esi, esi
je 0x577f83
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x577f83
push 5
push esi
call edi
test eax, eax
jne 0x5780df
mov eax, dword [ebx + 0x1a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5780df
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x2e]
push edx
mov word [esp + 0x30], cx
call fcn.0058e300
mov ecx, dword [0x622074]
mov eax, dword [ecx + 8]
add esp, 0xc
test eax, eax
jne 0x577fc6
mov eax, 0xf
jmp 0x577fde
push 0x64
cmp eax, 1
jne 0x577fd3
mov eax, dword [ecx + 4]
push eax
jmp 0x577fd6
mov ecx, dword [ecx]
push ecx
push 0xf
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [ebx + 0x19c]
mov ecx, dword [ebx + 0x1bc]
push edx
mov edx, dword [ebx + 0x1b8]
push ecx
lea edi, [ebx + 0x1bc]
push edx
lea ebp, [ebx + 0x1b8]
push eax
mov eax, dword [ebx + 0x150]
push eax
push 0x5e71f8
lea ecx, [esp + 0x3c]
push 0xff
push ecx
call fcn.0058a8f0
mov eax, dword [ebx + 0x1a8]
add esp, 0x20
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ebx + 0x150]
push eax
call fcn.00573d60
mov ecx, dword [ebx + 0x150]
push 5
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x5780df
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5780df
push 5
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x5780df
xor eax, eax
lea edx, [esp + 0x14]
push edx
push 0x7d0
push 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 0x7ef
push 0x4a
mov dword [esp + 0x38], ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push esi
mov dword [esp + 0x34], 0x7ef
mov dword [esp + 0x38], 4
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
lea edx, [esp + 0x24]
push edx
push 0x7f2
push 0x4a
push esi
mov dword [esp + 0x34], 0x7f2
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 4
call ebp
mov eax, dword [ebx + 0x164]
mov dword [eax + 0x20], 1
lea eax, [esp + 0x14]
push eax
mov ecx, 0x5caac0
call fcn.00406c20
xor esi, esi
push 0x104
lea ecx, [esp + 0x228]
mov dword [esp + 0x43c], esi
mov edx, dword [ebx + 0x150]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0x178]
lea ecx, [esp + 0x224]
jmp 0x578130
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x578156
cmp dx, si
je 0x578152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x578156
add eax, 4
add ecx, 4
cmp dx, si
jne 0x578130
xor eax, eax
jmp 0x57815b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x578167
mov dword [ebx + 0x174], esi
jmp 0x578176
lea eax, [ebx + 0x1a4]
lea edi, [esp + 0x14]
call fcn.00406500
lea eax, [esp + 0x14]
push eax
call fcn.00577d50
mov dword [esp + 0x438], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5781ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x24]
push esi
push 0x1f9
mov ecx, ebx
call eax
xor eax, eax
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.005886fc
add esp, 0x428
ret 4