Function at 0x42a7b4
Capabilities:
Get file size
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfd8
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], ecx
jne 0x42a7de
call fcn.0042acad
add eax, 0xa7c
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.004157df
call fcn.0040e5a7
cmp eax, esi
mov edi, str.1000.tbl
je 0x42a7fd
cmp eax, 1
je 0x42a819
push 0xffffffffffffffff
push esi
push 0x3d
call fcn.0044b2d0
jmp 0x42a819
push 3
push 0x80000000
push edi
call fcn.0040d415
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x42a9b7
push 2
pop ebx
push ebx
push 0x40000000
push edi
call fcn.0040d415
add esp, 0xc
lea ecx, [ebp - 0x334]
mov dword [ebp - 4], eax
call fcn.004019ac
lea ecx, [ebp - 0x848]
call fcn.004019ac
lea ecx, [ebp - 0xd5c]
call fcn.004019ac
lea eax, [ebp - 0x5b0]
push eax
call fcn.0040e9fd
lea eax, [ebp - 0x5b0]
mov dword [esp], str.Homer
push eax
call fcn.004347f0
lea eax, [ebp - 0x5b0]
mov word [ebp - 0x58e], 1
push eax
mov word [ebp - 0x138], 0x20
push dword [ebp - 4]
mov word [ebp - 0x136], bx
mov word [ebp - 0x588], bx
mov word [ebp - 0x58c], 3
mov word [ebp - 0x58a], 1
call fcn.0040ceb8
lea eax, [ebp - 0xac4]
push eax
call fcn.0040e9fd
lea eax, [ebp - 0xac4]
push str.Bart
push eax
call fcn.004347f0
lea eax, [ebp - 0xac4]
mov word [ebp - 0xaa2], 1
push eax
mov word [ebp - 0x64c], 0x1f
push dword [ebp - 4]
mov word [ebp - 0x64a], bx
mov word [ebp - 0xa9c], bx
mov word [ebp - 0xaa0], 3
mov word [ebp - 0xa9e], 1
call fcn.0040ceb8
lea eax, [ebp - 0xfd8]
push eax
call fcn.0040e9fd
lea eax, [ebp - 0xfd8]
push str.Lisa
push eax
call fcn.004347f0
lea eax, [ebp - 0xfd8]
mov word [ebp - 0xfb6], 1
push eax
mov word [ebp - 0xb60], 0x21
push dword [ebp - 4]
mov word [ebp - 0xb5e], bx
mov word [ebp - 0xfb0], bx
mov word [ebp - 0xfb4], 3
mov word [ebp - 0xfb2], 1
call fcn.0040ceb8
add esp, 0x38
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
push 0x80000000
push edi
call fcn.0040d415
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x42a9b7
push 0x2f
mov ecx, 0x46a6a0
call fcn.00448dec
mov ecx, dword [ebp - 8]
push 0x30
push 0x466610
push dword [0x46a6a0]
call fcn.00446668
xor eax, eax
jmp 0x42abbe
mov ebx, dword [ebp - 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x1009
mov dword [ebp - 0x38], 0xd
push dword [ebx + 0xa8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call edi
push 0x42abc5
push esi
push 0x1030
push dword [ebx + 0xa8]
call edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov ecx, 0x518
div ecx
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
jle 0x42ab9c
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x42aa27
xor esi, esi
lea ecx, [ebp - 0x334]
call fcn.004019ac
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x5b0]
push 0x514
push eax
push dword [ebp - 4]
call fcn.0040cc81
add esp, 0x10
test eax, eax
je 0x42ab9c
mov eax, dword [ebp - 0xc]
push str.Bart
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x5b0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5b0]
push eax
mov dword [ebp - 0x30], esi
call fcn.004350e0
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00424d39
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push esi
push 0x1007
push dword [eax + 0xa8]
call edi
push dword [ebp - 0x594]
mov esi, str._10ld
lea eax, [ebp - 0x9c]
push esi
push eax
call ebx
mov eax, dword [ebp - 8]
add esp, 0xc
lea ecx, [eax + 0x8c]
lea eax, [ebp - 0x9c]
push eax
push 1
push dword [ebp - 0xc]
call fcn.00442a8b
movsx eax, word [ebp - 0x598]
push eax
lea eax, [ebp - 0x9c]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 8]
push 2
push dword [ebp - 0xc]
lea ecx, [eax + 0x8c]
call fcn.00442a8b
lea eax, [ebp - 0x5b0]
push eax
call fcn.00424d39
push eax
lea eax, [ebp - 0x9c]
push esi
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 8]
push 3
push dword [ebp - 0xc]
lea ecx, [eax + 0x8c]
call fcn.00442a8b
cmp dword [ebp + 8], 0
je 0x42ab5b
push dword [ebp + 8]
lea eax, [ebp - 0x5b0]
push eax
call fcn.004350e0
pop ecx
test eax, eax
pop ecx
jne 0x42ab8b
sub esp, 0x514
mov ecx, 0x145
lea esi, [ebp - 0x5b0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
call fcn.0042acad
mov ecx, eax
add ecx, 0xa7c
call fcn.004155ea
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jl 0x42aa25
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 0x42abc5
push esi
push 0x1030
push dword [eax + 0xa8]
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4