Function at 0x4470a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xebc
push ebx
push esi
push edi
xor edx, edx
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0x13f]
mov byte [ebp - 0x140], dl
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
mov dword [ebp - 0x10], esp
mov dword [0x655a14], edx
mov dword [0x655b7c], edx
mov dword [0x65618c], edx
mov ecx, dword [ebx + 0x14]
push eax
push esi
push ecx
mov dword [ebp - 0x14], 1
call fcn.004d42c0
add esp, 0xc
mov dword [ebp - 0x20], eax
call fcn.0043fa50
test ax, ax
je 0x44712c
call fcn.004465c0
test eax, eax
je 0x44712c
call fcn.0043f9f0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4481b6
mov eax, dword [0x655b7c]
test eax, eax
jne 0x4481b6
push esi
call fcn.004d41b0
mov ecx, dword [esi + 0x14]
mov dx, 1
sub dx, word [ebx + 0x386]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
shr ecx, 4
add word [esi + 0x1a], dx
mov ax, 1
sub ax, word [ebx + 0x386]
and ecx, 1
push ecx
lea edx, [ebp - 0xa0]
add word [esi + 0x18], ax
push 0x4e6a10
push edx
call edi
push str.Printing
lea eax, [ebp - 0xa0]
push str.Collate_Copies
push eax
call fcn.00454130
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0xa0]
shr ecx, 5
and ecx, 1
push ecx
push 0x4e6a10
push edx
call edi
push str.Printing
lea eax, [ebp - 0xa0]
push str.Print_To_File
push eax
call fcn.00454130
mov eax, dword [0x6556d8]
mov ecx, dword [0x655746]
and eax, 0xffff
add esp, 0x34
cmp eax, 3
mov word [0x655b88], 0
mov dword [0x655b28], eax
mov dword [0x655b30], ecx
mov dword [0x655b2c], ecx
jne 0x447212
mov dword [0x655b3c], 0
mov dword [0x655b40], 0
jmp 0x447244
mov ecx, dword [0x6557b4]
and ecx, 0xffff
cmp eax, 1
mov dword [0x655b3c], ecx
je 0x447235
mov dword [0x655b40], 0
jmp 0x447244
xor edx, edx
mov dx, word [0x6558fe]
mov dword [0x655b40], edx
sub eax, 3
mov dword [0x655b44], 0
neg eax
sbb eax, eax
mov word [0x655b98], 2
and ax, word [0x655822]
mov edi, 0x6556a8
mov word [0x655be0], ax
mov ax, word [0x655890]
mov word [0x655bde], ax
mov ecx, dword [0x65618c]
push str.Printing
push edi
mov edx, dword [ecx + 4]
push edx
call fcn.00454210
add edi, 0x6e
add esp, 0xc
cmp edi, 0x65593c
jl 0x44727c
mov cl, byte [ebx + 0x138]
lea eax, [ebx + 0x138]
test cl, cl
je 0x4472c7
push eax
lea eax, [ebp - 0xf0]
push 0x501668
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4472e1
mov edx, dword [ebx + 0x14]
lea ecx, [ebp - 0xf0]
push 0x50
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0xf0]
push 0
push eax
push 0x4e25
call fcn.004404a0
xor ecx, ecx
mov eax, 0x14
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x64], eax
mov eax, dword [0x655e8e]
mov dword [ebp - 0x80], ecx
add esp, 0xc
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0xf0]
mov dword [ebp - 0x78], ecx
test eax, eax
mov dword [ebp - 0x84], edx
mov byte [ebp - 0x248], cl
mov dword [0x655e98], ecx
je 0x447403
mov edi, dword [sym.imp.GDI32.dll_Escape]
lea eax, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
push 4
push 8
push ecx
call edi
test eax, eax
je 0x4473df
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x248]
push edx
push 0
push 0
push 0x14
push eax
call edi
mov edi, str.PostScript
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x248]
push str.PostScript
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4473fa
mov dword [0x655e98], 1
mov eax, dword [0x655e8e]
test eax, eax
jne 0x44740f
lea ecx, [ebp - 0x3c]
call fcn.004049f0
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.004d43d0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [0x654504], eax
mov dword [0x6544e0], ecx
mov dword [0x6544fc], 0xffffffff
jmp 0x44741a
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x64]
push 0
push edx
push 4
push 8
push eax
mov dword [ebp - 0x64], 0x1013
call edi
test eax, eax
jne 0x44739a
mov eax, dword [0x655e98]
test eax, eax
jne 0x4473a4
mov dword [0x655e8e], 0
jmp 0x4473ad
mov eax, dword [0x654504]
mov ecx, dword [0x6544e0]
mov edi, dword [0x655e8e]
mov edx, ecx
test edi, edi
mov dword [0x655b38], eax
mov dword [0x655b34], edx
jne 0x44743d
mov dword [0x655e92], 0
jmp 0x447455
cmp dword [0x6544fc], 2
jne 0x447455
mov edx, eax
mov eax, ecx
mov dword [0x655b34], edx
mov dword [0x655b38], eax
mov ecx, dword [0x655b28]
test ecx, ecx
jne 0x4474bc
mov ecx, dword [ebx + 0xa52]
cmp ecx, eax
jg 0x447471
cmp dword [ebx + 0xa4e], edx
jle 0x4474bc
lea edi, [eax + 0xfa0]
cmp ecx, edi
jg 0x44749e
add eax, 0xfffff060
cmp ecx, eax
jl 0x44749e
mov eax, dword [ebx + 0xa4e]
lea ecx, [edx + 0x7d0]
cmp eax, ecx
jg 0x44749e
add edx, 0xfffff830
cmp eax, edx
jge 0x4474bc
push 0x1913
push 0x24
push 0
call fcn.004c8a30
add esp, 0xc
cmp ax, 6
je 0x4474bc
mov dword [ebp - 0x14], 0
push ebx
mov ecx, 0x654508
call fcn.00446410
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4481b6
push 0
push 0
push 0x54
push ebx
call fcn.0042f000
mov eax, dword [0x655e98]
add esp, 0x10
test eax, eax
je 0x447693
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x18]
push 0
push ecx
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
mov edi, eax
test edi, edi
je 0x4481b6
mov al, byte [esi + 0x14]
lea edx, [ebp - 0xf0]
test al, 0x20
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x50494c
je 0x447625
push 0xf045
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_1
push 0xf046
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_1
push 0xf047
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
call fcn.00448240
push eax
lea ecx, [ebp - 0x34]
call fcn.00417690
push eax
push 0x8006
lea ecx, [ebp - 0x30]
call fcn.00417690
push eax
lea ecx, [ebp - 0x28]
call fcn.00417690
push eax
push 0
lea ecx, [ebp - 0x4c4]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x4475ed
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x4c4]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00417690
lea ecx, [ebp - 0x6c8]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edx, [ebp - 0x6c8]
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3c], edx
call sub.MFC42.DLL_CString::CString
jmp 0x4475ef
xor edi, edi
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 2
call fcn.00418960
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x447685
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push eax
push 1
push ecx
call sub.WINSPOOL.DRV_StartDocPrinterA
mov edi, eax
test edi, edi
je 0x4481b6
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x447674
mov edx, dword [ebp - 0x18]
mov ecx, eax
push edx
call fcn.00448260
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x128], eax
jmp 0x4476ba
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x128], eax
jmp 0x4476ba
mov eax, dword [ebp - 0x18]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x4481b6
mov eax, dword [0x655b7c]
test eax, eax
jne 0x4481b6
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x88]
push ecx
push edx
call dword [sym.imp.GDI32.dll_StartDocA]
xor ecx, ecx
test eax, eax
setg cl
mov edi, ecx
test edi, edi
je 0x4481b6
mov eax, dword [ebp - 0x20]
lea edi, [ebx + 0x260]
push edi
push eax
mov dword [ebx + 0x10], eax
call fcn.00454980
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov dword [ebp - 0x38], eax
mov eax, dword [0x655e8e]
add esp, 8
mov dword [ebp - 0x3c], edx
test eax, eax
mov esi, 1
je 0x447709
push esi
call fcn.00411980
cdq
add esp, 4
idiv dword [0x6559c0]
mov dword [ebx + 0x264], eax
mov dword [edi], eax
mov cx, word [0x655bde]
mov dword [ebp - 0x1c], esi
mov word [ebx + 0xc], cx
mov eax, dword [0x655b28]
cmp eax, 3
mov dword [ebp - 0x2c], esi
mov word [0x655ab8], si
jne 0x44780e
mov eax, dword [0x655b98]
mov ecx, dword [ebx + 0xa4e]
mov edx, dword [ebx + 0xa52]
and eax, 0xffff
cmp word [ebx + 0xa4a], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x58], edx
je 0x447765
cdq
sub eax, edx
add ecx, ecx
sar eax, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
jge 0x44776c
mov dword [ebp - 0x18], esi
mov edi, 0x64
mov edx, dword [ebp - 0x14]
push edi
push edx
call fcn.004021e0
mov esi, eax
mov eax, dword [ebp - 0x58]
push edi
push eax
add esi, 0xbb80
call fcn.004021e0
mov ecx, dword [0x655b34]
add eax, 0xbb80
mov dword [ebp - 0x4c], eax
add esp, 0x10
lea eax, [ecx - 0xbb80]
cdq
idiv esi
mov edx, dword [0x655b38]
mov esi, dword [ebp - 0x18]
mov ecx, eax
lea eax, [edx - 0xbb80]
cdq
idiv dword [ebp - 0x4c]
mov edx, eax
imul edx, ecx
cmp edx, esi
jl 0x4477e4
mov word [ebx + 0xc], di
add edi, 0xa
and ecx, 0xffff
and eax, 0xffff
cmp di, 0x2710
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], eax
jle 0x447771
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4477f2
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4477fe
mov eax, 1
xor ecx, ecx
mov cx, word [ebx + 0xa4a]
inc ecx
imul ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov dx, word [ebx + 0xc]
imul eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0xa4e]
push edx
push eax
call fcn.004021e0
mov cx, word [ebx + 0xc]
mov edx, dword [ebx + 0xa52]
push ecx
push edx
mov dword [ebp - 0x6c], eax
call fcn.004021e0
mov ecx, dword [0x655ff8]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 0x10
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x5c4]
push 0x100
push eax
push 0x18d7
push ecx
call edi
lea edx, [ebp - 0x5c4]
push 2
push edx
push 1
call fcn.004ce9e0
mov esi, dword [sym.imp.GDI32.dll_SetAbortProc]
add esp, 0xc
mov dword [0x6548f0], eax
mov eax, dword [ebx + 0x10]
push 0x4461c0
push eax
call esi
mov ecx, dword [0x655afc]
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x655ff8]
lea edx, [ebp - 0x180]
push 0x40
push edx
push 0x5230
push eax
mov dword [ebp - 4], 5
call edi
mov ecx, dword [0x6548f0]
push 0
push 0
push ecx
call fcn.004ce4a0
mov edi, dword [ebp + 0x14]
add esp, 0xc
test byte [edi + 0x14], 3
jne 0x4478fc
mov ax, word [edi + 0x1c]
mov cx, word [edi + 0x1e]
mov word [edi + 0x18], ax
mov word [edi + 0x1a], cx
sub cx, word [ebx + 0x386]
inc ecx
mov word [edi + 0x1a], cx
sub ax, word [ebx + 0x386]
inc eax
mov word [edi + 0x18], ax
mov edx, dword [0x6548f0]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x6548f0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x4c], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test byte [edi + 0x14], 0x10
je 0x44796e
mov dx, word [eax + 0x36]
mov word [eax + 0x36], 1
mov word [ebp - 0x4c], dx
mov edx, dword [eax + 0x28]
or dh, 1
push eax
mov dword [eax + 0x28], edx
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.GDI32.dll_ResetDCA]
mov ecx, dword [ebx + 0x10]
push 0x4461c0
push ecx
call esi
mov edx, dword [ebx + 0x10]
lea eax, [ebx + 0x260]
push eax
push edx
call fcn.00454980
add esp, 8
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
cmp word [ebx + 0xa4a], 0
mov ax, word [edi + 0x18]
mov dword [ebp - 0x34], eax
je 0x4479a0
mov ecx, eax
and ecx, reloc.oledlg.dll_OleUIAddVerbMenuA
jns 0x44799a
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4479a0
dec eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x447a25
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [ebp - 0x3c8]
push str.___PS_Adobe_2.0_n
push edx
call esi
mov ecx, dword [ebx + 0x128]
add esp, 8
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.0044dba0
lea ecx, [ebp - 0x3c8]
push str.____LanguageLevel:_2_n
push ecx
call esi
mov ecx, dword [ebx + 0x128]
add esp, 8
lea edx, [ebp - 0x3c8]
push eax
push edx
call fcn.0044dba0
lea eax, [ebp - 0x3c8]
push str.____EndComments_n
push eax
call esi
add esp, 8
lea ecx, [ebp - 0x3c8]
push eax
push ecx
mov ecx, dword [ebx + 0x128]
call fcn.0044dba0
push ebx
call fcn.00446790
add esp, 4
mov dword [ebp - 0x18], 1
mov dx, word [ebp - 0x18]
cmp dx, word [ebp - 0x4c]
ja 0x4480d1
mov si, word [edi + 0x18]
mov dword [ebp - 0x1c], 1
cmp si, word [edi + 0x1a]
mov dword [ebp - 0x24], esi
ja 0x4480c9
mov eax, dword [0x655be0]
and eax, 0xffff
dec eax
je 0x447a88
dec eax
jne 0x447aac
mov ecx, dword [ebx + 0x386]
mov eax, esi
and eax, 0xffff
lea edx, [ecx + eax - 1]
and edx, reloc.oledlg.dll_OleUIAddVerbMenuA
jns 0x447a80
dec edx
or edx, 0xfffffffe
inc edx
je 0x4480c3
jmp 0x447aac
mov ecx, dword [ebx + 0x386]
mov eax, esi
and eax, 0xffff
lea edx, [ecx + eax - 1]
and edx, reloc.oledlg.dll_OleUIAddVerbMenuA
jns 0x447aa6
dec edx
or edx, 0xfffffffe
inc edx
jne 0x4480c3
cmp word [0x655b00], 0
jne 0x447b15
xor eax, eax
mov ax, word [0x655b02]
and eax, reloc.oledlg.dll_OleUIAddVerbMenuA
jns 0x447aca
dec eax
or eax, 0xfffffffe
inc eax
je 0x447b15
mov edx, dword [ebx + 0x386]
mov ecx, esi
and ecx, 0xffff
lea eax, [edx + ecx - 1]
lea ecx, [ebp - 0xf0]
push eax
push ecx
lea edx, [ebp - 0x140]
push 0x504908
push edx
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
lea ecx, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x180]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x447b59
lea edx, [ebp - 0x140]
push 0x504908
push edx
call dword [sym.imp.MSVCRT.dll_strtok]
mov edx, dword [ebx + 0x386]
mov ecx, esi
push eax
lea eax, [ebp - 0xf0]
and ecx, 0xffff
push eax
lea eax, [edx + ecx - 1]
lea ecx, [ebp - 0x180]
push eax
lea edx, [ebp - 0x2c8]
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
mov ecx, dword [0x6548f0]
lea eax, [ebp - 0x2c8]
push eax
push 0x16ae
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x655e92]
test eax, eax
je 0x447b9e
mov eax, dword [0x655a14]
test eax, eax
je 0x447b9a
lea ecx, [eax - 1]
test eax, eax
mov dword [ebp - 0x30], ecx
je 0x447bc6
mov dword [ebp - 0x28], eax
jmp 0x447baa
xor ecx, ecx
jmp 0x447b8e
xor ecx, ecx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jge 0x4480c0
mov eax, dword [0x655e92]
test eax, eax
je 0x447bcf
mov ax, cx
jmp 0x447bd3
mov dword [ebp - 0x28], 4
jmp 0x447baa
or ax, 0xffff
mov word [0x655e96], ax
mov ecx, dword [ebx + 0x128]
test ecx, ecx
je 0x447cdc
cmp word [0x655ab8], 1
jne 0x447cdc
mov edx, dword [0x655a00]
mov ecx, dword [0x655a04]
movsx eax, ax
mov dword [ebp - 0x54], edx
mov edx, dword [0x6548f8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [0x6548fc]
dec eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ecx
je 0x447c6e
dec eax
je 0x447c4a
dec eax
jne 0x447c91
mov edx, dword [0x654320]
mov eax, dword [0x654324]
mov ecx, dword [0x6550e0]
mov dword [ebp - 0x54], edx
mov edx, dword [0x6550e4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
jmp 0x447c91
mov eax, dword [0x655a08]
mov ecx, dword [0x655a0c]
mov edx, dword [0x6559f0]
mov dword [ebp - 0x54], eax
mov eax, dword [0x6559f4]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
jmp 0x447c91
mov ecx, dword [0x6559b8]
mov edx, dword [0x6559bc]
mov eax, dword [0x655698]
mov dword [ebp - 0x54], ecx
mov ecx, dword [0x65569c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x60]
push eax
push ecx
push edx
lea eax, [ebp - 0xec8]
push str._g__g_dup_mul_exch_dup_mul_add_1_exch_sub_setscreen_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [ebp - 0xec8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x128]
lea edx, [ebp - 0xec8]
push eax
push edx
call fcn.0044dba0
mov ax, word [0x655e96]
cmp ax, 0xffff
je 0x447ddb
test ax, ax
jne 0x447d1b
mov edi, str.__BeginProcessColor:_Cyan_n_k__pop_pop_pop_1_exch_sub_setgray__bind_def_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xac8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
jmp 0x447dbb
cmp ax, 1
jne 0x447d4e
mov edi, str.__BeginProcessColor:_Magenta_n_k__pop_pop_1_exch_sub_setgray_pop__bind_def_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xac8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
jmp 0x447dbb
cmp ax, 2
jne 0x447d81
mov edi, str.__BeginProcessColor:_Yellow_n_k__pop_1_exch_sub_setgray_pop_pop__bind_def_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xac8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
jmp 0x447dbb
cmp ax, 3
jne 0x447db4
mov edi, str.__BeginProcessColor:_Black_n_k__1_exch_sub_setgray_pop_pop_pop__bind_def_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xac8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
jmp 0x447dbb
mov byte [ebp - 0xac8], 0
lea ecx, [ebp - 0xac8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x128]
lea edx, [ebp - 0xac8]
push eax
push edx
call fcn.0044dba0
mov eax, dword [ebx + 0x10]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x70
push eax
call edi
mov dword [0x656150], eax
mov ecx, dword [ebx + 0x10]
push 0x71
push ecx
call edi
mov edx, dword [0x655b28]
mov ecx, dword [0x655b3c]
cmp edx, 1
mov dword [0x656154], eax
je 0x447ee5
test ecx, ecx
jne 0x447ee5
mov ecx, dword [ebp - 0x3c]
imul ecx, dword [0x656150]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x38]
imul ecx, eax
cmp edx, 3
mov dword [ebp - 0x44], ecx
jne 0x447fa8
mov ecx, dword [ebp - 0x58]
mov eax, esi
mov esi, dword [ebp - 0x34]
and eax, 0xffff
sub eax, esi
and ecx, 0xffff
cdq
idiv ecx
mov ecx, dword [ebp - 0x74]
mov edi, 0xbb80
add ecx, edi
mov esi, edx
mov dx, word [ebx + 0xc]
mov eax, esi
push edx
cdq
idiv dword [ebp - 0x2c]
imul eax, ecx
add eax, edi
push eax
call fcn.004017f0
mov ecx, dword [ebp - 0x44]
add esp, 8
sub ecx, eax
mov eax, esi
cdq
idiv dword [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
mov ecx, edx
xor edx, edx
mov dx, word [ebx + 0xa4a]
mov eax, ecx
mov esi, edx
cdq
inc esi
idiv esi
mov edx, dword [ebp - 0x6c]
imul ecx, edx
inc eax
imul eax, edi
add eax, ecx
mov cx, word [ebx + 0xa66]
test cx, cx
je 0x447eb3
cmp cx, 2
jne 0x447ec1
mov ecx, dword [0x655b34]
sub ecx, eax
sub ecx, edx
sub ecx, edi
mov eax, ecx
mov dx, word [ebx + 0xc]
push edx
push eax
call fcn.004017f0
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x655b28]
mov esi, dword [ebp - 0x24]
add esp, 8
sub ecx, eax
mov dword [ebp - 0x48], ecx
jmp 0x447f8e
cmp word [ebp - 0x18], 1
jne 0x447f8e
mov edi, dword [ebp + 0x14]
cmp si, word [edi + 0x18]
jne 0x447f8e
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x14], edi
jne 0x447f8e
neg ecx
sbb ecx, ecx
and ecx, 0xffffc950
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [0x655e8e]
test ecx, ecx
je 0x447f56
mov ecx, dword [ebp - 0x3c]
mov edi, dword [0x655b34]
imul ecx, dword [0x656150]
neg ecx
lea ecx, [edi + ecx*2]
mov dword [0x655b34], ecx
mov ecx, dword [ebp - 0x38]
imul ecx, eax
mov eax, dword [0x655b38]
neg ecx
lea ecx, [eax + ecx*2]
mov dword [0x655b38], ecx
jmp 0x447f8e
mov edx, dword [ebx + 0x10]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edx
call edi
imul eax, dword [ebp - 0x3c]
sub eax, 0x6d60
push 0xa
mov dword [0x655b34], eax
mov eax, dword [ebx + 0x10]
push eax
call edi
imul eax, dword [ebp - 0x38]
mov edx, dword [0x655b28]
sub eax, 0x6d60
mov dword [0x655b38], eax
cmp edx, 3
jne 0x447fa5
test byte [ebp - 0x1c], 1
jne 0x447fa5
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], 0
jmp 0x447fb4
mov ecx, dword [ebp - 0x44]
cmp edx, 3
mov dword [ebp - 0x1c], 2
jne 0x447fda
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x58]
mov eax, esi
and edi, 0xffff
and eax, 0xffff
sub eax, edx
inc eax
cdq
idiv edi
test edx, edx
je 0x447fda
mov edx, dword [ebp + 0x14]
cmp si, word [edx + 0x1a]
jne 0x447fe2
mov eax, dword [ebp - 0x1c]
or al, 1
mov dword [ebp - 0x1c], eax
mov ax, word [ebx + 0x29c]
mov edi, dword [ebp + 0x14]
mov dx, ax
add dx, word [edi + 0x1a]
push edx
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x48]
and edx, 0xffff
push ecx
push edx
lea ecx, [ebp - 0xf0]
lea edx, [eax + esi - 1]
push ecx
push edx
push ebx
call fcn.0045cdd0
add esp, 0x1c
cmp word [0x655e96], 0xffff
mov dword [ebp - 0x68], eax
je 0x448070
mov edi, str.____EndProcessColor_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1e4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1e4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x128]
lea edx, [ebp - 0x1e4]
push eax
push edx
call fcn.0044dba0
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4480b7
mov eax, dword [0x655afc]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 8
call fcn.00406c00
mov ecx, eax
mov dword [ebp - 0x68], ecx
test ecx, ecx
mov byte [ebp - 4], 6
je 0x4480a0
call sub.MFC42.DLL_CException::CException
jmp 0x4480a2
xor eax, eax
lea ecx, [ebp - 0x70]
push 0x4e03a0
push ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x70], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x14]
inc ecx
jmp 0x447baa
mov edi, dword [ebp + 0x14]
inc esi
jmp 0x447a45
inc dword [ebp - 0x18]
jmp 0x447a2c
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x448103
lea edx, [ebp - 0x3c8]
push str.____EOF_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x128]
add esp, 8
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.0044dba0
lea ecx, [ebp - 0xf0]
push 1
push ecx
push 0x4e25
call fcn.004404a0
add esp, 0xc
jmp 0x448135
mov eax, dword [0x655afc]
push 1
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebx + 0x128]
test ecx, ecx
je 0x448167
push 1
call fcn.00406d90
mov dword [ebx + 0x128], 0
jmp 0x448171
mov ecx, dword [ebx + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_EndDoc]
push 0x654508
mov ecx, ebx
call fcn.00446410
mov eax, dword [ebx + 0x10]
lea edx, [ebx + 0x260]
push edx
push eax
call fcn.00454980
add esp, 8
call fcn.004ceb00
mov ecx, dword [ebp - 0x20]
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov edx, dword [0x6559e0]
push 1
push ebx
call dword [edx + 0x370]
mov esi, dword [ebp + 0x14]
add esp, 8
mov eax, dword [0x655abc]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4481f6
push 1
push 0
push 0
push edi
call fcn.004ced30
push eax
call fcn.004178c0
mov ecx, dword [eax + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x4481cc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x448204
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
call edi
mov eax, dword [esi + 0xc]
push eax
call edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword [0x655e98], eax
mov word [0x655ab8], ax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret