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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4af550]
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.00406ba3
pop ecx
lea ecx, [ebp - 8]
call fcn.0040ae64
lea ecx, [ebp - 8]
call fcn.0040ae14
lea ecx, [ebp - 4]
call fcn.0040ae64
lea ecx, [ebp - 4]
call fcn.0040ae14
lea eax, [ebp - 0xc]
push 0x493e0
push eax
call fcn.00461337
cmp byte [ebp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
je 0x41fd20
mov eax, dword [ebp - 8]
cmp dword [eax - 8], 3
jge 0x41fc8d
push 0x4af6b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b12dc
lea eax, [ebp - 0x1c]
push 0x3ea
push eax
call fcn.00461337
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040a956
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 0x41fe78
push eax
call esi
cmp eax, 0xffffffff
je 0x41fc9d
test al, 0x10
jne 0x41fd20
push 0x4af6b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b12dc
lea eax, [ebp - 0x10]
push 0x3ea
push eax
call fcn.00461337
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a956
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 0x41fe78
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 3
jge 0x41fdb0
push 0x4af6b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b12d4
lea eax, [ebp - 0x10]
push 0x3ea
push eax
call fcn.00461337
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a956
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 0x41fe78
push eax
call esi
cmp eax, 0xffffffff
je 0x41fdfb
test al, 0x10
je 0x41fdfb
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 0x41fe7f
push 0x4af6b4
lea ecx, [ebp + 8]
call fcn.00403927
push 0x4b12d4
lea eax, [ebp - 0x10]
push 0x3ea
push eax
call fcn.00461337
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a956
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.00419b8b
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