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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], esi
cmp dword [esi + 4], ebx
jne 0x55002c
xor eax, eax
jmp 0x55025b
push edi
push 0x140
lea eax, [ebp - 0x1c4]
push ebx
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x1c4]
push 0xa0
push eax
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x64]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, str.______
lea edi, [ebp - 0x1c]
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0057e469
mov edi, eax
mov esi, ebx
pop ecx
test edi, edi
jle 0x55009e
movzx ecx, word [ebp + esi*2 - 0x1c]
lea eax, [ebp - 0x1c4]
push ecx
push eax
call fcn.00573bf1
pop ecx
pop ecx
test eax, eax
jne 0x550243
inc esi
cmp esi, edi
jl 0x55007d
lea eax, [ebp - 0x1c4]
push eax
call fcn.0057e469
pop ecx
cmp eax, 2
jb 0x550243
cmp word [ebp - 0x1c2], 0x3a
jne 0x550243
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00408fc4
push ebx
push 0x61d1e8
lea ecx, [ebp - 0x3c]
call fcn.00452e2a
cmp eax, 0xffffffff
jne 0x550101
push ebx
push 0x5e8fec
lea ecx, [ebp - 0x3c]
call fcn.00452e2a
cmp eax, 0xffffffff
jne 0x550101
cmp dword [ebp - 0x2c], 3
ja 0x55023b
push 7
pop edi
push 2
push ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x54], ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
call fcn.0043e50f
lea ecx, [ebp - 0x3c]
call fcn.00403d40
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00444c2a
mov eax, dword [ebp - 0x40]
push 8
pop esi
cmp eax, esi
jb 0x55016f
mov ecx, dword [ebp - 0x54]
lea eax, [eax*2 + 2]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x550166
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403daf
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x28], esi
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x55023b
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0040850d
push str.tmp_123abc456def789hij.tmp
lea ecx, [ebp - 0x6c]
call fcn.00408fc4
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00445198
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00403d40
cmp dword [ebp - 0xc], esi
lea eax, [ebp - 0x20]
push ebx
cmovae eax, dword [ebp - 0x20]
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x550261
mov eax, dword [ebp - 0xc]
cmp eax, esi
jb 0x55022f
mov ecx, dword [ebp - 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x550226
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403daf
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x3c]
call fcn.00403d40
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi + 4]
add ecx, 0x24
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call fcn.00459d63
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], esi
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call fcn.00597cc4
mov eax, dword [ebp - 0xc]
pop ecx
cmp eax, esi
jb 0x5502b5
mov ecx, dword [ebp - 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp eax, 0x1000
jb 0x5502ac
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403daf
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xc], edi
mov word [ebp - 0x20], ax
call fcn.00403d40
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x84]
call fcn.00408fc4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
mov edi, dword [ebp - 0x24]
mov ecx, edi
push esi
push eax
call fcn.0054ed7f
push 0x60db0c
lea ecx, [ebp - 0x54]
call fcn.00408fc4
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
push esi
mov ecx, edi
call fcn.0054ffe8
cmp eax, dword [0x63d244]
jg 0x550345
push 0x612d28
lea ecx, [ebp - 0x6c]
call fcn.00408fc4
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 3
push eax
push esi
mov ecx, edi
call fcn.0054ffe8
cmp eax, dword [0x63d244]
jg 0x550345
mov byte [ebp + 0xb], bl
jmp 0x55034f
test byte [ebp - 4], 2
mov byte [ebp + 0xb], 1
je 0x550357
lea ecx, [ebp - 0x6c]
call fcn.00403d40
lea ecx, [ebp - 0x54]
call fcn.00403d40
cmp byte [ebp + 0xb], bl
je 0x550377
mov ecx, dword [edi + 4]
add ecx, 0x24
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call fcn.00459f92
jmp 0x5503af
push esi
call fcn.004c0a00
cmp dword [esi + 0x14], 8
mov eax, esi
pop ecx
jb 0x550388
mov eax, dword [esi]
push eax
push 0x5e9d38
push 2
call fcn.004ede00
push eax
call fcn.004f0230
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x5503a6
mov esi, dword [esi]
push esi
call fcn.0044c131
xor ebx, ebx
inc ebx
pop ecx
lea ecx, [ebp - 0x84]
call fcn.00403d40
mov eax, ebx
jmp 0x55025a