Function at 0x4140e0
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41aff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::CDC
xor edi, edi
push esi
push 0xc
push edi
lea ecx, [esp + 0xf0]
mov dword [esp + 0x1a0], edi
call sub.MFC42.DLL_CPrintDialog::CPrintDialog
lea ecx, [esp + 0xe4]
mov byte [esp + 0x194], 1
call sub.MFC42.DLL_CPrintDialog::GetDefaults
cmp eax, edi
jne 0x414168
lea ecx, [esp + 0xe4]
mov byte [esp + 0x194], 0
call fcn.0041709e
lea ecx, [esp + 0x20]
mov dword [esp + 0x194], 0xffffffff
call fcn.0041738c
xor eax, eax
jmp 0x414a0b
mov eax, dword [esp + 0x144]
push ebx
push ebp
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x10]
push eax
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [esp + 0x30]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push ecx
call ebx
mov edx, dword [esp + 0x30]
push 0x5a
push edx
call ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], 0x41dab8
lea eax, [esp + 0x28]
lea ecx, [esp + 0x60]
push eax
push 0x44fa60
push 0x60
mov byte [esp + 0x1a8], 2
call sub.MFC42.DLL_CFont::CreatePointFont
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x30]
push 0xa
push edx
mov dword [esp + 0xa4], eax
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push 8
push eax
call ebx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xb4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x1a4]
mov ebx, dword [esp + 0xb4]
push edi
push edi
mov ecx, dword [eax + 0x20]
push 0x1004
push ecx
and ebx, 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xa0]
mov dword [esp + 0xa0], 0x14
push edx
push eax
mov dword [esp + 0xac], str.Mypos_printing
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
call dword [sym.imp.GDI32.dll_StartDocA]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x19c], 3
call sub.MFC42.DLL_CString::CString
push 0x450388
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a0], 4
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x19c], 5
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, esi
call fcn.00414a30
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 5
call fcn.004170c2
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
mov eax, 0x24
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp eax, edi
jle 0x414329
mov edi, eax
lea ecx, [esp + 0x3c]
push 0x450258
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a0], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 5
call fcn.004170c2
dec edi
jne 0x4142ef
lea eax, [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1a0], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 5
call fcn.004170c2
mov edx, dword [esp + 0x48]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebx + 2]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push 2
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x360]
push 0
push 0
push 0x188
push edx
mov byte [esp + 0x1ac], 9
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esi + 0x340]
call sub.MFC42.DLL_CListBox::GetText
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push 0x450250
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a0], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 9
call fcn.004170c2
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebx + ebx + 2]
push edx
mov edx, dword [esp + 0x34]
push ecx
push 2
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x19c], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x19c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x19c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x70]
mov byte [esp + 0x19c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0x19c], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 0x11
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x44]
lea ecx, [esi + 0x300]
push eax
mov byte [esp + 0x1a0], 0x12
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x68]
push ecx
push str.__8s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esi + 0x2c0]
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x70]
push ecx
push str.__8s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esi + 0x1c0]
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esi + 0x240]
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov edx, dword [0x450484]
lea eax, [esp + 0x4c]
push edx
push str.__15s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x44]
push 0x45023c
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x14
test eax, eax
jne 0x414563
mov edx, dword [0x450458]
lea eax, [esp + 0x38]
push edx
push str.__8s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x4c]
push 0x450388
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
cdq
idiv ebx
mov dword [esp + 0x1c], 1
mov edi, eax
sub edi, 3
mov dword [esp + 0x10], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x19c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x19c], 0x15
call sub.MFC42.DLL_CString::CString
xor esi, esi
mov byte [esp + 0x19c], 0x16
test ebp, ebp
jle 0x4147b9
mov eax, edi
lea ecx, [ebp + 7]
neg eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x50], ecx
jmp 0x4145e5
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x50], edi
jle 0x414625
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_EndPage]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_StartPage]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x50]
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
add edx, ecx
add eax, edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x1a4]
push 1
lea edx, [esp + 0x8c]
push esi
push edx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0x17
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x88]
mov byte [esp + 0x19c], 0x16
call fcn.004170c2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push str.__20s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x90]
mov ecx, edi
push 2
push esi
push edx
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0x18
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x90]
mov byte [esp + 0x19c], 0x16
call fcn.004170c2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
push 0x450230
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x7c]
mov ecx, edi
push 3
push esi
push edx
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0x19
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x19c], 0x16
call fcn.004170c2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x58]
push eax
push str._10s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x40]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x84]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_2
lea edx, [esp + 0x58]
mov byte [esp + 0x19c], 0x1a
push edx
push eax
lea eax, [esp + 0x9c]
push eax
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x19c], 0x1b
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x94]
mov byte [esp + 0x19c], 0x1a
call fcn.004170c2
lea ecx, [esp + 0x84]
mov byte [esp + 0x19c], 0x16
call fcn.004170c2
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x5c]
mov ecx, esi
sub ecx, edx
mov edx, dword [esp + 0x34]
add ecx, 8
imul ecx, ebx
add ecx, 2
push ecx
push 2
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
inc esi
cmp esi, ebp
jl 0x4145e1
push str.____________________________________
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
dec eax
imul eax, dword [esp + 0x10]
sub ebp, eax
push ecx
add ebp, 8
mov ecx, dword [esp + 0x30]
imul ebp, ebx
add ebp, 2
push edx
push ebp
push 2
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x98]
mov byte [esp + 0x19c], 0x1c
call sub.MFC42.DLL_CString::CString
mov bl, 0x1d
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x19c], 0x1e
push edx
call dword [sym.imp.GDI32.dll_EndPage]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov ecx, dword [esp + 0x9c]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CDC::Detach
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], bl
call fcn.004170c2
lea ecx, [esp + 0x98]
mov byte [esp + 0x19c], 0x1c
call fcn.004170c2
lea ecx, [esp + 0x78]
mov byte [esp + 0x19c], 0x16
call fcn.004170c2
lea ecx, [esp + 0x58]
mov byte [esp + 0x19c], 0x15
call fcn.004170c2
lea ecx, [esp + 0x40]
mov byte [esp + 0x19c], 0x14
call fcn.004170c2
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 0x13
call fcn.004170c2
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 0x12
call fcn.004170c2
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 0x11
call fcn.004170c2
lea ecx, [esp + 0x80]
mov byte [esp + 0x19c], 0x10
call fcn.004170c2
mov byte [esp + 0x19c], 0xf
lea ecx, [esp + 0x70]
call fcn.004170c2
lea ecx, [esp + 0x68]
mov byte [esp + 0x19c], 0xe
call fcn.004170c2
lea ecx, [esp + 0x38]
mov byte [esp + 0x19c], 0xd
call fcn.004170c2
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19c], 0xc
call fcn.004170c2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x19c], 0xb
call fcn.004170c2
lea ecx, [esp + 0x44]
mov byte [esp + 0x19c], 9
call fcn.004170c2
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 5
call fcn.004170c2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x19c], 4
call fcn.004170c2
lea ecx, [esp + 0x48]
mov byte [esp + 0x19c], 3
call fcn.004170c2
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 2
call fcn.004170c2
mov dword [esp + 0x60], 0x41d2ac
lea ecx, [esp + 0x60]
mov byte [esp + 0x19c], 0x1f
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0xec]
mov dword [esp + 0x60], 0x41d298
mov byte [esp + 0x19c], 0
call fcn.0041709e
lea ecx, [esp + 0x28]
mov dword [esp + 0x19c], 0xffffffff
call fcn.0041738c
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x190
ret 4