Function at 0x407920
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebp
xor ebp, ebp
lea eax, [esp + 0x14]
push ebp
push eax
push 0x41b420
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je 0x407b88
push edi
mov eax, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x10]
push ebx
lea edx, [esp + 0x10]
push ecx
push edx
push ebp
push ebp
push 2
push 0x7fffffff
push ebp
push eax
call sub.WINSPOOL.DRV_EnumJobsW
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ecx
push 0x40
call esi
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x1c], edi
je 0x407b5c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edi
push 2
push 0x7fffffff
push ebp
push edx
call sub.WINSPOOL.DRV_EnumJobsW
mov eax, dword [esp + 0x10]
push eax
push 0x40
call esi
mov ecx, dword [esp + 0x14]
mov esi, eax
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
jbe 0x4079f4
mov ebx, esi
mov edx, edi
test byte [edx + 0x34], 0x80
jne 0x4079dc
mov ecx, 0x1a
mov esi, edx
mov edi, ebx
inc eax
rep movsd dword es:[edi], dword [esi]
add ebx, 0x68
mov ecx, dword [esp + 0x14]
inc ebp
add edx, 0x68
cmp ebp, ecx
jb 0x4079c7
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
lea ecx, [eax + eax*2]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x24]
shl ecx, 3
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x41b404]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1009
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebp, 1
jne 0x407a7f
push 0x417614
call esi
shl eax, 1
push eax
push 0x417614
push 0x41a740
call fcn.0040cd60
add esp, 0xc
test eax, eax
jne 0x407a7f
mov esi, dword [esp + 0x7c]
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, 0x32
je 0x407ac7
push 0
push 0x3a98
push 0x32
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push 0x32
jmp 0x407abe
test ebp, ebp
jne 0x407ac7
push 0x417614
call esi
shl eax, 1
push eax
push 0x417614
push 0x41a740
call fcn.0040cd60
add esp, 0xc
test eax, eax
jne 0x407ac7
mov esi, dword [esp + 0x7c]
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, 0x32
jne 0x407ac7
push eax
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push ebp
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jbe 0x407b5c
mov edx, dword [esp + 0x1c]
or ebp, 0xffffffff
mov dword [esp + 0x7c], edx
mov edx, dword [0x41b404]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x28]
xor esi, esi
push ecx
push esi
push 0x104d
push edx
mov dword [esp + 0x38], 0xd
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], 0x100
mov dword [esp + 0x58], eax
call ebx
cmp eax, ebp
je 0x407b48
mov ecx, dword [0x41b404]
lea eax, [esp + 0x50]
push eax
push edi
push 0x1074
push ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x74], ebp
call ebx
inc esi
cmp esi, 5
jl 0x407b26
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
inc edi
add ecx, 0x68
cmp edi, eax
mov dword [esp + 0x7c], ecx
jb 0x407ae0
mov eax, dword [0x41a16c]
test eax, eax
je 0x407b6c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x1c]
mov dword [0x41a16c], edx
call fcn.0040ae10
mov eax, dword [esp + 0x20]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x68
ret