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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b0550]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x48]
push 0
push 0
push 0x407
push eax
call ebx
mov esi, 0xff
lea ecx, [ebp - 8]
push esi
mov dword [ebp - 0x10], eax
call fcn.00403c58
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.00403cd2
mov eax, dword [edi + 0x4c]
push 0
push 0
push 0x407
push eax
call ebx
push esi
lea ecx, [ebp - 4]
mov ebx, eax
call fcn.00403c58
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00403cd2
push dword [ebp - 4]
call fcn.004204b0
pop ecx
lea ecx, [ebp - 8]
call fcn.0040ae23
lea ecx, [ebp - 8]
call fcn.0040add3
lea ecx, [ebp - 4]
call fcn.0040ae23
lea ecx, [ebp - 4]
call fcn.0040add3
lea eax, [ebp - 0xc]
push 0x493e0
push eax
call fcn.00461770
cmp byte [ebp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
je 0x41fc98
mov eax, dword [ebp - 8]
cmp dword [eax - 8], 3
jge 0x41fc05
push 0x4b06b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b22dc
lea eax, [ebp - 0x1c]
push 0x3ea
push eax
call fcn.00461770
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040a915
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403b20
push 0
push esi
push dword [eax]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x1c]
call fcn.004038fb
lea ecx, [ebp + 8]
jmp 0x41fdf0
push eax
call esi
cmp eax, 0xffffffff
je 0x41fc15
test al, 0x10
jne 0x41fc98
push 0x4b06b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b22dc
lea eax, [ebp - 0x10]
push 0x3ea
push eax
call fcn.00461770
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a915
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b20
push 0
push esi
push dword [eax]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x1c]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp + 8]
jmp 0x41fdf0
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 3
jge 0x41fd28
push 0x4b06b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b22d4
lea eax, [ebp - 0x10]
push 0x3ea
push eax
call fcn.00461770
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a915
mov esi, dword [eax]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b20
push 0
push esi
push dword [eax]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x1c]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp + 8]
jmp 0x41fdf0
push eax
call esi
cmp eax, 0xffffffff
je 0x41fd73
test al, 0x10
je 0x41fd73
push dword [ebp - 8]
lea ecx, [edi + 0x50]
call fcn.004015e4
push dword [ebp - 4]
lea ecx, [edi + 0x124]
call fcn.004015e4
lea eax, [ebp - 8]
lea ecx, [edi + 0x1fc]
push eax
call fcn.00403a8c
lea eax, [ebp - 4]
lea ecx, [edi + 0x200]
push eax
call fcn.00403a8c
push 1
pop esi
jmp 0x41fdf7
push 0x4b06b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b22d4
lea eax, [ebp - 0x10]
push 0x3ea
push eax
call fcn.00461770
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a915
mov esi, dword [eax]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b20
push 0
push esi
push dword [eax]
lea ecx, [edi + 4]
call fcn.00419b09
lea ecx, [ebp - 0x1c]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp + 8]
call fcn.004038fb
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.004038fb
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4