Function at 0x45bab0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
sub esp, 0x70
push ecx
lea edi, [esp + 4]
mov eax, 0xcccccccc
mov ecx, 0x1c
rep stosd dword es:[edi], eax
pop ecx
cmp dword [ebp + 8], 0
jne 0x45baf3
push str.Styled_text_printer_passed_in_to_DrawBlock_was_nil
push 0x55b2fc
push 0x81a
push str.win32EditControl.cpp
push 4
push 0x83
call fcn.00495150
add esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x45bb1f
push str.Styled_text_printer_has_a_nil_graphics_object
push str.obj__dest
push 0x81b
push str.win32EditControl.cpp
push 4
push 0x83
call fcn.00495150
add esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
jne 0x45bb4b
push str.Styled_text_printer_has_no_edit_control
push str.obj__mEditControl
push 0x81c
push str.win32EditControl.cpp
push 4
push 0x83
call fcn.00495150
add esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x24]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x19c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x45bba4
push str.The_internal_graphics_object_was_nil
push 0x55b397
push 0x825
push str.win32EditControl.cpp
push 4
push 0x83
call fcn.00495150
add esp, 0x18
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
jne 0x45bbd6
push str.The_internal_graphics_object_does_not_have_a_pane
push str.graphicsPane
push 0x829
push str.win32EditControl.cpp
push 4
push 0x83
call fcn.00495150
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x58]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x58]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x45bc12
push str.Unable_to_get_a_graphics_context_for_the_printer
push 0x55b40b
push 0x82e
push str.win32EditControl.cpp
push 4
push 0x83
call fcn.00495150
add esp, 0x18
push 1
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_SetMapMode]
mov dword [ebp - 0x60], eax
lea edi, [ebp - 0x3c]
mov eax, 0
mov ecx, 0xc
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0xe]
add dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0xc]
add dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0xe]
cmp dword [ebp + 0xc], edx
jge 0x45bc65
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0xe]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x58]
movsx ecx, word [eax + 0x12]
cmp edx, ecx
jle 0x45bc83
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0x12]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0xc]
cmp dword [ebp + 0x10], edx
jge 0x45bc99
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0xc]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
movsx ecx, word [eax + 0x10]
cmp edx, ecx
jle 0x45bcb7
mov eax, dword [ebp - 0x58]
movsx edx, word [eax + 0x10]
sub edx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], edx
push 8
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x64], eax
push 0xa
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x68], eax
push 0x58
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x6c], eax
push 0x5a
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
push dword [ebp - 0x6c]
push 0x5a0
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x70]
push 0x5a0
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0x48], 0
je 0x45bd91
mov eax, dword [ebp - 0x54]
push dword [eax + 0x60]
push 0x5a0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x54]
push dword [eax + 0x60]
push 0x5a0
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x54]
push dword [eax + 0x5c]
push 0x5a0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
push dword [eax + 0x5c]
push 0x5a0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
jmp 0x45bde7
push dword [ebp - 0x6c]
push 0x5a0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x6c]
push 0x5a0
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x70]
push 0x5a0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x70]
push 0x5a0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0xffffffff
call fcn.0052fe80
cmp al, 0
je 0x45be1c
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x439
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
jmp 0x45be36
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x439
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
lea eax, [ebp - 0x3c]
add eax, 8
push eax
push 0
push 0x433
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x44]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [ebp - 0x44], 0xa
mov dword [ebp - 0x74], 0
cmp dword [0x5661f0], 0xd
jne 0x45be7d
mov dword [ebp - 0x74], 0x3a4
jmp 0x45be8d
cmp dword [0x5661f0], 0x15
jne 0x45be8d
mov dword [ebp - 0x74], 0x3b6
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x78], 0
call fcn.0052fe80
cmp al, 0
je 0x45bebc
push 0
lea eax, [ebp - 0x44]
push eax
push 0x45f
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x78], eax
jmp 0x45bed3
push 0
lea eax, [ebp - 0x44]
push eax
push 0x45f
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x78]
cmp dword [eax + 0x28], ecx
jl 0x45bef7
push 0
push 0
push 0x439
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
mov byte [eax + 0x20], 1
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_SetMapMode]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret