Function at 0x467540
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc44
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0xc40], eax
push ebx
push 0x42
xor ebx, ebx
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00481440
mov ecx, dword [0x4fcf38]
add esp, 0xc
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], 0x42
mov word [esp + 0x64], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], 0x10c
call dword [sym.imp.comdlg32.dll_PrintDlgA]
test eax, eax
je 0x467a93
push esi
push edi
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x4fcf38]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call fcn.00432430
mov ecx, dword [esp + 0x58]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push ecx
call esi
mov edx, dword [esp + 0x58]
push 0xa
push edx
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
push 0x58
push eax
call esi
mov ecx, dword [esp + 0x58]
push 0x5a
push ecx
mov dword [esp + 0x28], eax
call esi
mov edx, dword [esp + 0x58]
push 0x70
mov edi, eax
push edx
mov dword [esp + 0x34], edi
call esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
push 0x71
push eax
call esi
push str.Courier_New
push 1
push ebx
push ebx
push 7
push 1
push ebx
mov dword [esp + 0x40], eax
push ebx
push ebx
mov eax, edi
cdq
push 0x2bc
push ebx
and edx, 7
add eax, edx
push ebx
sar eax, 3
push ebx
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x30], esi
je 0x467660
mov ecx, dword [esp + 0x58]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
jmp 0x467664
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x94]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esp + 0x94]
mov eax, dword [0x4bf980]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax]
cmp cx, 0xffff
je 0x4676cf
cmp cx, bx
je 0x4676cf
add eax, 6
push ebx
push eax
call fcn.00481160
add eax, 1
push ebx
push eax
call fcn.00481160
add eax, 1
push ebx
push eax
call fcn.00481160
add eax, 1
push ebx
push eax
call fcn.00481160
movzx ecx, word [eax + 1]
add eax, 1
add esp, 0x20
cmp cx, 0xffff
jne 0x467691
xor eax, eax
push 0x100
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x550]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [0x4fcf38]
push edx
push eax
mov dword [esp + 0x40], 0x14
mov dword [esp + 0x44], 0x4dec98
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x550]
push eax
mov dword [esp + 0x48], ecx
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jle 0x467a72
push ebp
mov ebp, dword [0x4bf980]
movzx eax, word [ebp]
cmp ax, 0xffff
mov dword [esp + 0x10], 1
je 0x467a4b
jmp 0x467758
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
test ax, ax
je 0x467a3c
test ebx, ebx
jne 0x46787b
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
mov edx, dword [esp + 0x5c]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
sub esi, dword [esp + 0x28]
xor eax, eax
nop
mov cl, byte [esp + eax + 0x550]
mov byte [esp + eax + 0x650], cl
add eax, 1
test cl, cl
jne 0x467790
lea eax, [esp + 0x650]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4677b0
mov ecx, dword [str.___Page__d]
mov edx, dword [0x4a1e40]
mov dword [eax], ecx
mov cx, word [0x4a1e44]
mov dword [eax + 4], edx
mov dl, byte [0x4a1e46]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
movzx eax, word [esp + 0x10]
push eax
lea ecx, [esp + 0x654]
push ecx
lea edx, [esp + 0xd8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0xdc]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467808
sub eax, edx
lea ecx, [esp + 0x90]
push ecx
push eax
mov eax, dword [esp + 0x64]
lea edx, [esp + 0xd8]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea eax, [esp + 0xd0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467840
sub eax, edx
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x94]
lea ecx, [esp + 0xd4]
cdq
push ecx
sub eax, edx
mov edx, dword [esp + 0x64]
push esi
sar eax, 1
push eax
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x14]
lea ecx, [eax + esi]
lea ebx, [ecx + eax*2]
movzx esi, word [ebp]
lea edx, [esp + 0x850]
push edx
lea eax, [esp + 0x4d4]
push eax
push ebp
call fcn.00467390
add esp, 0xc
cmp si, 0x76c
jbe 0x4678bd
mov ecx, dword [str.Error]
mov dx, word [0x4a1e38]
mov dword [esp + 0xd0], ecx
mov word [esp + 0xd4], dx
jmp 0x4678f8
cmp si, 0x708
jbe 0x4678df
mov eax, dword [str.Warning]
mov ecx, dword [0x4a1e30]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
jmp 0x4678f8
mov edx, dword [str.Info]
mov al, byte [0x4a1e28]
mov dword [esp + 0xd0], edx
mov byte [esp + 0xd4], al
lea edi, [esp + 0xd0]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x467902
mov edx, dword [0x49e590]
lea eax, [esp + 0x4d0]
mov dword [edi], edx
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467920
lea edi, [esp + 0xd0]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x467935
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd0]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x467957
lea eax, [esp + 0x850]
mov dword [edi], edx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467970
lea edi, [esp + 0xd0]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x467985
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xd0]
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4679a7
sub eax, esi
push eax
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0xd4]
push ecx
sar eax, 1
sub eax, dword [esp + 0x34]
push ebx
push eax
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov esi, dword [esp + 0x14]
push 0
add ebp, 6
push ebp
add ebx, esi
call fcn.00481160
add eax, 1
push 0
push eax
call fcn.00481160
add eax, 1
push 0
push eax
call fcn.00481160
add eax, 1
push 0
push eax
call fcn.00481160
mov ecx, dword [esp + 0x3c]
add eax, 1
mov ebp, eax
lea eax, [esi + esi]
sub ecx, eax
add esp, 0x20
cmp ebx, ecx
jle 0x467a2e
mov edx, dword [esp + 0x5c]
push edx
xor ebx, ebx
call dword [sym.imp.GDI32.dll_EndPage]
add dword [esp + 0x10], 1
movzx eax, word [ebp]
cmp ax, 0xffff
jne 0x467750
test ebx, ebx
jle 0x467a4b
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.GDI32.dll_EndPage]
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [esp + 0x18]
test eax, eax
pop ebp
je 0x467a72
mov edx, dword [esp + 0x58]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [esp + 0xc44]
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0xc44
ret