Function at 0x40ab90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab6f7
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x270], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x23c], esi
call fcn.0040e8a0
mov edx, dword [eax]
push 0x7a
push str.__d__AUTOMATA__DrawFrame_____Start
push eax
call dword [edx + 4]
add esp, 0xc
test ebx, ebx
je 0x40abf0
lea edi, [ebx - 0xb8]
jmp 0x40abf2
xor edi, edi
cmp dword [ebx + 0x108], 0
mov dword [ebp - 0x25c], edi
jne 0x40ac3a
mov dword [ebp - 0x258], 0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004093f0
push 2
push 4
lea eax, [ebx + 0xe4]
push eax
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push dword [ebx + 0x104]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea eax, [ebp - 0x228]
push eax
push dword [edi + 4]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 1
je 0x40ac84
mov eax, dword [ebx + 4]
jmp 0x40ac87
mov eax, dword [ebx + 8]
movzx eax, ax
push eax
push dword [0x500874]
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov edi, eax
lea eax, [ebp - 0x288]
push eax
push 0x18
push edi
mov dword [ebp - 0x26c], edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x230], 0
mov eax, dword [ecx + 4]
push eax
mov dword [ebp - 0x22c], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x230], eax
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x234], eax
push edi
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00402220
add esp, 8
cmp eax, 1
jne 0x40ad18
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x228]
jmp 0x40ad1a
xor eax, eax
push eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x228]
push eax
push 0x20
push 1
push 0
push 0
push esi
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40ad60
push 0xcc0020
push 0
push 0
push dword [ebp - 0x234]
push 0x20
push 1
push 0
push 0
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x220]
sub ecx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x284]
dec ecx
add eax, 0xfffffffe
mov esi, 1
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x268], eax
cmp ecx, esi
jle 0x40ae16
mov ebx, eax
neg eax
mov dword [ebp - 0x248], eax
lea edi, [ecx - 1]
lea esp, [esp]
push dword [ebp - 0x240]
lea ecx, [ebp - 0x228]
push ecx
push 0x20
mov eax, ebx
cmp edi, ebx
cmovl eax, edi
push eax
push 0
push esi
push dword [ebp - 0x23c]
mov dword [ebp - 0x244], eax
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40adf8
push 0xcc0020
push 0
push 1
push dword [ebp - 0x234]
push 0x20
push dword [ebp - 0x244]
push 0
push esi
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x254]
add edi, dword [ebp - 0x248]
add esi, ebx
cmp esi, ecx
jl 0x40ada0
mov edi, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x270]
push dword [ebp - 0x240]
lea eax, [ebp - 0x228]
push eax
push 0x20
push 1
push 0
push ecx
push dword [ebp - 0x23c]
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40ae69
mov eax, dword [ebp - 0x284]
push 0xcc0020
push 0
dec eax
push eax
push dword [ebp - 0x234]
push 0x20
push 1
push 0
push dword [ebp - 0x254]
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
dec eax
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x284]
dec eax
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x21c]
mov ecx, eax
sub ecx, edx
dec ecx
mov dword [ebp - 0x248], ecx
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x250], ecx
mov esi, 0x20
add ecx, 0xffffffe0
cmp dword [ebp - 0x248], esi
jle 0x40afcd
mov edi, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x240]
mov eax, ecx
neg eax
mov dword [ebp - 0x24c], eax
add edi, 0xffffffe0
lea esp, [esp]
push ebx
mov eax, ecx
cmp edi, ecx
lea ecx, [ebp - 0x228]
push ecx
cmovl eax, edi
push eax
push 1
push esi
push 0
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], eax
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40af33
push 0xcc0020
push 0x20
push 0
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push 1
push esi
push 0
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x238]
push 1
push esi
push dword [ebp - 0x244]
push dword [ebp - 0x23c]
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40af8a
push 0xcc0020
push 0x20
push dword [ebp - 0x260]
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push 1
push esi
push dword [ebp - 0x244]
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x250]
add edi, dword [ebp - 0x24c]
add ecx, 0xffffffe0
add esi, ecx
cmp esi, dword [ebp - 0x248]
jl 0x40aee0
mov ecx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x224]
mov edi, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x270]
mov dword [ebp - 0x250], ecx
jmp 0x40afd3
mov ecx, dword [ebp - 0x250]
push dword [ebp - 0x240]
lea esi, [ecx - 1]
lea ecx, [ebp - 0x228]
push ecx
push 1
sub eax, edx
dec eax
push 1
push eax
push 0
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], eax
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40b02b
push 0xcc0020
push esi
push 0
push dword [ebp - 0x234]
push 1
push 1
push dword [ebp - 0x238]
push 0
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, 1
cmp dword [ebp - 0x254], esi
jle 0x40b0ea
mov edi, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x254]
mov eax, edi
neg eax
mov dword [ebp - 0x260], eax
lea eax, [ebx - 1]
mov dword [ebp - 0x244], eax
jmp 0x40b060
push dword [ebp - 0x240]
cmp eax, edi
mov ecx, edi
cmovl ecx, eax
lea eax, [ebp - 0x228]
push eax
push 1
push ecx
push dword [ebp - 0x238]
mov dword [ebp - 0x24c], ecx
push esi
push dword [ebp - 0x23c]
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40b0c6
mov eax, dword [ebp - 0x250]
push 0xcc0020
dec eax
push eax
push 1
push dword [ebp - 0x234]
push 1
push dword [ebp - 0x24c]
push dword [ebp - 0x238]
push esi
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x244]
add eax, dword [ebp - 0x260]
add esi, edi
mov dword [ebp - 0x244], eax
cmp esi, ebx
jl 0x40b060
mov edi, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x270]
push dword [ebp - 0x240]
mov esi, dword [ebp - 0x254]
lea eax, [ebp - 0x228]
push eax
push 1
push 1
push dword [ebp - 0x238]
push esi
push dword [ebp - 0x23c]
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40b14c
mov ecx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x284]
push 0xcc0020
dec ecx
push ecx
dec eax
push eax
push dword [ebp - 0x234]
push 1
push 1
push dword [ebp - 0x238]
push esi
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x40b163
push eax
push dword [ebp - 0x234]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x10], 0
je 0x40b178
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebx + 0x54]
call fcn.0040a4d0
cmp dword [ebx + 0xc], 0
je 0x40b18d
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebx + 0x24]
call fcn.0040a4d0
cmp dword [ebx + 0x14], 0
je 0x40b1a5
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebx + 0x84]
call fcn.0040a4d0
cmp dword [ebx + 0x18], 0
je 0x40b1bd
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebx + 0xb4]
call fcn.0040a4d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00472dd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
mov eax, dword [ebp - 0x25c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x40b361
mov dword [ebp - 0x258], 0
mov eax, dword [0x4fe84c]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
mov byte [ebp - 4], 4
jge 0x40b237
push 0
mov ecx, 0x4fe84c
call fcn.004015f0
mov eax, dword [0x4fe84c]
push eax
push 2
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0x15
call dword [sym.imp.GDI32.dll_CreateFontW]
mov esi, eax
push esi
push dword [ebp - 0x230]
mov dword [ebp - 0x258], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffffffff
jne 0x40b2a9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x264]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push dword [ebp - 0x240]
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x264]
add eax, 3
cdq
idiv dword [ebp - 0x268]
push 0x20
inc eax
imul eax, dword [ebp - 0x268]
push eax
push 0
push 1
push dword [ebp - 0x23c]
call fcn.00402190
add esp, 0x1c
test eax, eax
je 0x40b343
push 1
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x218]
push eax
push 5
push 0x17
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_TextOutW]
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x40b35a
push eax
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call ebx
mov byte [ebp - 4], 3
call fcn.0040e8a0
mov ecx, dword [eax]
push 0x101
push str.__d__AUTOMATA__DrawFrame_____End
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x234]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
add esp, 0xc
test eax, eax
je 0x40b396
push eax
mov dword [ebp - 0x234], 0
call esi
mov eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x230], 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x40b3ca
push eax
mov dword [ebp - 0x230], 0
call esi
test edi, edi
je 0x40b3d1
push edi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8