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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], esi
cmp dword [esi + 4], ebx
jne 0x5461f2
xor eax, eax
jmp 0x546431
push edi
push 0x140
lea eax, [ebp - 0x1e0]
push ebx
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x1e0]
push 0xa0
push eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x64]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, str.______
lea edi, [ebp - 0x20]
lea eax, [ebp - 0x20]
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 0x546264
movzx ecx, word [ebp + esi*2 - 0x20]
lea eax, [ebp - 0x1e0]
push ecx
push eax
call fcn.00573bf1
pop ecx
pop ecx
test eax, eax
jne 0x546419
inc esi
cmp esi, edi
jl 0x546243
lea eax, [ebp - 0x1e0]
push eax
call fcn.0057e469
pop ecx
cmp eax, 2
jb 0x546419
cmp word [ebp - 0x1de], 0x3a
jne 0x546419
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x58]
call fcn.00408fc4
push ebx
push 0x61d1e8
lea ecx, [ebp - 0x58]
call fcn.00452e2a
cmp eax, 0xffffffff
jne 0x5462c7
push ebx
push 0x5e8fec
lea ecx, [ebp - 0x58]
call fcn.00452e2a
cmp eax, 0xffffffff
jne 0x5462c7
cmp dword [ebp - 0x48], 3
ja 0x546411
push 7
pop esi
push 2
push ebx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x70], ebx
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], esi
call fcn.0043e50f
lea ecx, [ebp - 0x58]
call fcn.00403d40
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.00444c2a
mov eax, dword [ebp - 0x5c]
push 8
pop edi
cmp eax, edi
jb 0x546335
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x54632c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0xc]
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 - 0x60], ebx
cmp dword [ebp - 0x44], edi
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x546411
xor eax, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040850d
push str.tmp_123abc456def789hij.tmp
lea ecx, [ebp - 0x88]
call fcn.00408fc4
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00445198
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
call fcn.00403d40
cmp dword [ebp - 0x10], edi
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
xor ecx, ecx
push ecx
push 0x80
push 4
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x546435
mov eax, dword [ebp - 0x10]
cmp eax, edi
jb 0x546404
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp eax, 0x1000
jb 0x5463fb
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403daf
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
and dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], esi
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x58]
call fcn.00403d40
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 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
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], edi
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.00597cc4
mov eax, dword [ebp - 0x10]
pop ecx
cmp eax, edi
jb 0x546489
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp eax, 0x1000
jb 0x546480
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403daf
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x10], esi
mov word [ebp - 0x24], ax
call fcn.00403d40
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00408fc4
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
and dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0xa0]
mov esi, dword [ebp - 0x28]
mov ecx, esi
push eax
call fcn.005451ca
push 0x60db0c
lea ecx, [ebp - 0x70]
call fcn.00408fc4
lea eax, [ebp - 0x70]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005461b0
pop ecx
pop ecx
cmp eax, dword [0x63d20c]
jg 0x54652e
push 0x612d28
lea ecx, [ebp - 0x88]
call fcn.00408fc4
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005461b0
pop ecx
pop ecx
cmp eax, dword [0x63d20c]
jg 0x54652e
mov byte [ebp - 5], 0
jmp 0x546537
test byte [ebp - 4], 2
mov byte [ebp - 5], bl
je 0x546542
lea ecx, [ebp - 0x88]
call fcn.00403d40
lea ecx, [ebp - 0x70]
call fcn.00403d40
cmp byte [ebp - 5], 0
je 0x546565
mov ecx, dword [esi + 4]
add ecx, 0x24
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call fcn.00459f92
xor ebx, ebx
jmp 0x54657f
lea eax, [ebp - 0x40]
push eax
call fcn.004c0a00
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0044c131
pop ecx
mov eax, dword [ebp - 0x2c]
pop ecx
cmp eax, edi
jb 0x5465bc
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp eax, 0x1000
jb 0x5465b3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403daf
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00403d40
mov eax, ebx
jmp 0x546430