Function at 0x40ef1c
Capabilities:
Get file size
Get graphical window text
Read file on windows

Disassembly:
mov eax, 0x10430
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1042c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, edx
push esi
push edi
xor esi, esi
mov dword [esp + 0x1c], ebx
push esi
push esi
push 0xf0
push 0x401
push dword [0x49fefc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
call ebp
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40efd7
push 1
mov edi, 0x7fff
push edi
call fcn.00414b53
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f084
cmp dword [0x42fc28], 0
push edi
push esi
jne 0x40ef9c
push 0x402
jmp 0x40efa1
push 0x13b2
push dword [0x49fefc]
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi], 0
jne 0x40efc4
push str.PASS
push edi
push esi
call fcn.004169d8
add esp, 0xc
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40efc9
sub edi, ecx
jmp 0x40f0dc
xor eax, eax
push 0xfffc
mov word [esp + 0x440], ax
lea eax, [esp + 0x442]
push esi
push eax
call fcn.00412740
add esp, 0xc
lea eax, [esp + 0x43c]
push 0x7fff
push eax
push 0x489
push dword [0x49fefc]
call ebp
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
lea eax, [esp + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f08c
mov ecx, 0x42b784
call fcn.0040ca67
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push eax
lea eax, [esp + 0x238]
push eax
call esi
mov ecx, 0x42a118
call fcn.0040ca67
push eax
lea ecx, [esp + 0x30]
push ecx
call esi
push 0x30
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x23c]
push ecx
push dword [0x49fefc]
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
jmp 0x40f19c
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor edx, edx
mov ecx, edi
add ecx, 2
push 1
setb dl
neg edx
or edx, ecx
push edx
call fcn.00414b53
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f084
and dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x1c]
push 0
push 0
push 0x400
push 0x3ff
push dword [0x49fefc]
call ebp
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x13], al
xor edx, edx
push 0x64
mov eax, ebx
pop ecx
div ecx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x24], ecx
lea eax, [ebx + edx]
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp edx, eax
jae 0x40f192
xor eax, eax
cmp dword [esp + 0x18], edi
cmovne eax, dword [esp + 0x18]
lea ebp, [eax + 1]
mov al, byte [eax + esi]
xor al, byte [edx]
xor al, byte [esp + 0x13]
mov byte [edx], al
inc edx
cmp dword [esp + 0x1c], 0x64
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x14], edx
jae 0x40f157
push 0
push 0
push 0x405
jmp 0x40f16f
xor edx, edx
mov eax, ebx
div ecx
cmp dword [esp + 0x20], eax
je 0x40f187
push 0
push eax
mov dword [esp + 0x28], eax
push 0x402
push 0x3f8
push dword [0x49fefc]
call ebp
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
inc ebx
cmp edx, dword [esp + 0x28]
jb 0x40f11d
push esi
call fcn.00414b5e
xor eax, eax
pop ecx
inc eax
mov ecx, dword [esp + 0x1043c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411b03
add esp, 0x10430
ret