Function at 0x412c39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x284]
push dword [ebx + 0x280]
shl esi, 4
add esi, dword [ebx + 0x268]
push esi
mov dword [ebp - 0xc], esi
call fcn.00414420
push eax
push esi
call fcn.004143e6
xor edi, edi
mov dword [ebp - 4], eax
add esp, 0x10
mov dword [ebp - 8], edi
test esi, esi
je 0x412c82
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*8]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov eax, dword [ebp + 0x18]
inc ecx
cmp edx, dword [ebx + 0x294]
jne 0x412cd7
cmp eax, ecx
jne 0x412cd7
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x147
push edx
call edi
and dword [ebx + 0x288], 0
mov esi, eax
push 0x43dec0
push 4
push 0xc
push dword [ebx + 0x298]
call edi
push esi
push dword [ebp + 0xc]
call fcn.00413cad
push dword [ebp + 0xc]
call fcn.004141ee
jmp 0x412de8
mov ecx, dword [ebx + 0x298]
cmp edx, ecx
jne 0x412d18
test eax, eax
jne 0x412d18
mov ecx, dword [ebx + 0x288]
test ecx, ecx
sete al
mov dword [ebx + 0x288], eax
test ecx, ecx
je 0x412d03
push 0x43dec0
push 4
jmp 0x412d0a
push str.Pause
push 5
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4135a5
cmp edx, dword [ebx + 0x29c]
jne 0x412d96
test eax, eax
jne 0x412d96
cmp dword [ebx + 0x288], edi
je 0x412d42
push 0x43dec0
push 4
push 0xc
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x288], edi
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp cx, word [eax + 4]
jae 0x412d7a
inc dword [ebx + 0x280]
push dword [ebx + 0x280]
push esi
call fcn.00414420
push eax
push esi
call fcn.004143e6
add esp, 0x10
cmp eax, dword [ebp - 4]
jne 0x412d7a
mov eax, dword [ebp - 8]
inc edi
movzx eax, word [eax + 4]
cmp edi, eax
jl 0x412d4d
xor eax, eax
inc eax
push eax
push dword [ebx + 0x280]
push esi
call fcn.00414420
push eax
push esi
call fcn.004143e6
add esp, 0x10
jmp 0x412ddf
mov ecx, dword [ebx + 0x2a4]
cmp edx, ecx
jne 0x412df0
cmp eax, 1
jne 0x412df0
push edi
push edi
push 0x188
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x10], eax
mov edx, edi
mov dword [ebx + 0x288], edi
test eax, eax
jle 0x412dd8
mov ecx, dword [esi + 0xc]
mov esi, eax
add ecx, 4
movzx eax, word [ecx]
lea ecx, [ecx + 8]
add edx, eax
dec esi
jne 0x412dca
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x280], edx
push edi
push eax
push dword [ebp + 0xc]
call fcn.00413bd8
add esp, 0xc
jmp 0x4135a5
cmp edx, dword [ebx + 0x2a8]
jne 0x412e14
cmp eax, 1
jne 0x412e14
push edi
push edi
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esi + 8], eax
jmp 0x412f55
cmp edx, dword [ebx + 0x2b0]
jne 0x412f2b
cmp eax, 1
jne 0x412f2b
push edi
push edi
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, cx
mov edx, edi
mov dword [ebp + 0x10], eax
and ecx, 0xffff0000
push 0x10
pop eax
mov dword [ebp - 0x20], eax
or ecx, ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 4], ecx
mov dword [ebp - 0x24], 2
mov dword [ebp - 4], edx
cmp ax, word [esi]
jae 0x412f1e
mov eax, dword [esi + 0xc]
push dword [ebp + 0x10]
lea esi, [eax + edx*8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00412a9f
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.00412adf
push dword [ebp + ebx*4 - 0x24]
push dword [esi]
call dword [sym.imp.msvcrt.dll_realloc]
mov esi, dword [ebp - 0xc]
add esp, 0x2c
mov edx, dword [ebp - 4]
mov ecx, dword [esi + 0xc]
mov dword [ecx + edx*8], eax
test ebx, ebx
je 0x412f0f
xor eax, eax
inc eax
cmp ebx, eax
jne 0x412eeb
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edx*8]
mov ax, word [ebp + 8]
mov word [ecx + 0xc], ax
mov ax, word [ebp - 8]
mov word [ecx + 0xe], ax
mov ax, word [ebp - 0x10]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 8], eax
jmp 0x412f0f
cmp ebx, 2
jne 0x412f0f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edx*8]
mov eax, 0xbeef
mov word [ecx + 2], ax
mov ax, word [ebp + 8]
mov word [ecx + 4], ax
mov ax, word [ebp - 8]
mov word [ecx + 6], ax
movzx eax, word [esi]
inc edx
mov dword [ebp - 4], edx
cmp edx, eax
jl 0x412e6d
push ebx
push dword [ebp + 0xc]
call fcn.00413f22
pop ecx
pop ecx
jmp 0x412f55
cmp edx, dword [ebx + 0x2ac]
jne 0x412f6e
cmp eax, 1
jne 0x412f6e
push edi
push edi
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [eax + 1]
movzx eax, word [esi + 4]
shl ecx, 0x10
or ecx, eax
mov dword [esi + 4], ecx
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp + 0xc]
call fcn.004141ee
pop ecx
jmp 0x4135a5
cmp edx, dword [ebx + 0x2b4]
jne 0x412fa0
cmp eax, 0x300
jne 0x412fa0
cmp dword [ebx + 0x290], edi
jne 0x4135a5
push edx
call fcn.0043c42e
mov edx, dword [ebp - 4]
pop ecx
mov ecx, dword [esi + 0xc]
mov word [ecx + edx*8 + 4], ax
jmp 0x4135a5
cmp edx, dword [ebx + 0x2b8]
jne 0x412fd3
cmp eax, 0x300
jne 0x412fd3
cmp dword [ebx + 0x290], edi
jne 0x4135a5
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
push edx
mov esi, dword [eax + ecx*8]
call fcn.0043c42e
pop ecx
mov word [esi], ax
jmp 0x41317c
cmp edx, dword [ebx + 0x2c0]
je 0x412fe3
cmp edx, dword [ebx + 0x2c4]
jne 0x41305d
cmp eax, 0x300
jne 0x41305d
push edx
call fcn.0043c42e
mov ecx, dword [esi + 0xc]
movzx edx, word [esi + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
push edx
mov dword [ebp - 0x10], edx
lea esi, [ecx + eax*8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00412adf
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp eax, dword [ebx + 0x2c0]
jne 0x413028
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
jmp 0x41302e
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x413045
mov eax, dword [esi]
mov word [eax + 0xc], cx
mov word [eax + 0xe], dx
jmp 0x41317c
cmp eax, 2
jne 0x41317c
mov eax, dword [esi]
mov word [eax + 4], cx
mov word [eax + 6], dx
jmp 0x41317c
cmp edx, dword [ebx + 0x2cc]
je 0x413071
cmp edx, dword [ebx + 0x2d0]
jne 0x413122
cmp eax, 0x300
jne 0x413122
lea eax, [ebp - 0x44]
push eax
push 0x10
push 0xd
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x44]
push eax
call fcn.00414504
fst dword [ebp + 8]
fldz
fcompi st(1)
pop ecx
fstp st(0)
jbe 0x4130aa
movss xmm1, dword [0x43e024]
jmp 0x4130b2
movss xmm1, dword [0x43d698]
movss xmm0, dword [ebp + 8]
mulss xmm0, dword [0x43e020]
mov ecx, dword [ebp - 4]
movzx edx, word [esi + 4]
push edx
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
lea eax, [eax + ecx*8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00412a9f
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp eax, dword [ebx + 0x2cc]
jne 0x413103
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
jmp 0x41310a
mov eax, dword [ebp - 0x14]
cvttss2si edx, xmm0
cmp word [esi + 4], 1
jne 0x41317c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [ecx + 4], eax
mov ax, word [ebp - 0xc]
mov dword [ecx + 8], edx
jmp 0x413178
cmp edx, dword [ebx + 0x2d8]
jne 0x41318c
cmp eax, 0x300
jne 0x41318c
push edx
call fcn.0043c42e
mov ecx, dword [ebp - 0xc]
movzx esi, word [esi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
push esi
lea ebx, [ecx + eax*8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
call fcn.00412a9f
xor eax, eax
add esp, 0x18
inc eax
cmp esi, eax
jne 0x41317c
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x18]
mov word [ecx + 2], ax
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4135a5
cmp edx, dword [ebx + 0x2dc]
jne 0x4132ae
test eax, eax
jne 0x4132ae
push edi
push edi
push 0x188
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 4]
mov dword [ebp + 0x10], eax
push 0x10
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], 2
inc eax
push dword [ebp + ecx*4 - 0x24]
mov dword [ebp - 0x10], ecx
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov dword [ebp - 0x14], eax
movzx eax, word [esi]
inc eax
mov ecx, eax
mov dword [ebp + 8], eax
shl ecx, 3
push ecx
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_realloc]
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
lea ecx, [eax - 2]
cmp edx, ecx
jge 0x41322c
sub eax, edx
lea ecx, [eax*8 - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [edx + 1]
add edx, 2
lea eax, [ecx + eax*8]
push eax
lea eax, [ecx + edx*8]
push eax
call dword [sym.imp.msvcrt.dll_memmove]
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [esi + 0xc]
xor ecx, ecx
inc ecx
mov word [eax + edx*8 + 0xc], cx
mov ecx, 0xbeef
mov eax, dword [esi + 0xc]
mov word [eax + edx*8 + 0xe], cx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx*8 + 8], ecx
mov eax, dword [ebp - 0x10]
sub eax, edi
je 0x413271
dec eax
je 0x413266
dec eax
jne 0x413271
mov eax, 0xbeef
mov word [ecx + 2], ax
jmp 0x413271
mov eax, 0x1000
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov word [esi], ax
lea eax, [edx + 1]
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x413294
mov ecx, dword [esi + 0xc]
mov edx, eax
add ecx, 4
movzx eax, word [ecx]
lea ecx, [ecx + 8]
add edi, eax
dec edx
jne 0x413289
push dword [ebx + 0x284]
push dword [ebp + 0xc]
call fcn.00413cad
xor eax, eax
inc eax
push eax
push dword [ebp + 0x10]
jmp 0x413377
cmp edx, dword [ebx + 0x2e0]
jne 0x413395
test eax, eax
jne 0x413395
push edi
push edi
push 0x188
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ecx
test cx, cx
je 0x4135a5
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*8]
push dword [eax]
mov dword [ebp - 0x18], eax
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0x10]
pop ecx
mov ecx, dword [ebp + 8]
movzx edx, cx
lea ecx, [edx - 1]
mov dword [ebp + 8], ecx
cmp eax, ecx
jge 0x413325
mov ecx, dword [ebp - 0x18]
sub edx, eax
lea eax, [edx*8 - 8]
push eax
lea eax, [ecx + 8]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ecx
mov word [esi], cx
shl eax, 3
push eax
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
mov edx, eax
pop ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], edx
mov esi, dword [ebp + 0x10]
cmp esi, ecx
jl 0x41334b
lea esi, [ecx - 1]
xor eax, eax
mov ecx, edi
test esi, esi
cmovs esi, eax
test esi, esi
jle 0x413364
movzx eax, word [edx + ecx*8 + 4]
add edi, eax
inc ecx
cmp ecx, esi
jl 0x413358
push dword [ebx + 0x284]
push dword [ebp + 0xc]
call fcn.00413cad
xor eax, eax
inc eax
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebx + 0x280], edi
call fcn.00413bd8
push dword [ebp + 0xc]
call fcn.004141ee
add esp, 0x18
jmp 0x4135a5
cmp edx, dword [ebx + 0x2e4]
jne 0x4134bb
test eax, eax
jne 0x4134bb
push edi
push edi
push 0x147
push dword [ebx + 0x294]
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [ebx + 0x264]
mov esi, eax
mov ecx, dword [ebx + 0x264]
shl ecx, 4
push ecx
push dword [ebx + 0x268]
call dword [sym.imp.msvcrt.dll_realloc]
mov edx, dword [ebx + 0x264]
mov edi, eax
pop ecx
pop ecx
mov dword [ebx + 0x268], edi
lea ecx, [edx - 2]
cmp esi, ecx
jge 0x413415
sub edx, esi
lea eax, [esi + 1]
shl eax, 4
sub edx, 2
add eax, edi
shl edx, 4
push edx
push eax
lea eax, [esi + 2]
shl eax, 4
add eax, edi
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov eax, dword [ebx + 0x268]
inc esi
mov edi, dword [sym.imp.msvcrt.dll_calloc]
xor ecx, ecx
mov dword [ebp + 0x10], esi
inc ecx
add esi, esi
push 8
push ecx
mov word [eax + esi*8], cx
call edi
mov ecx, dword [ebx + 0x268]
xor edx, edx
inc edx
push 2
push edx
mov dword [ecx + esi*8 + 0xc], eax
xor ecx, ecx
mov eax, dword [ebx + 0x268]
mov dword [eax + esi*8 + 8], edx
mov eax, dword [ebx + 0x268]
mov dword [eax + esi*8 + 4], 0x10000
mov eax, dword [ebx + 0x268]
mov word [eax + esi*8 + 2], cx
mov eax, dword [ebx + 0x268]
mov esi, dword [eax + esi*8 + 0xc]
mov eax, 0xbeef
mov word [esi + 4], dx
mov word [esi + 6], ax
call edi
push dword [ebp + 0x10]
mov dword [esi], eax
xor ecx, ecx
mov esi, dword [ebp + 0xc]
push esi
mov word [eax], cx
call fcn.00413cad
xor eax, eax
xor edi, edi
inc eax
push eax
push edi
push esi
call fcn.00413bd8
push esi
mov dword [ebx + 0x280], edi
call fcn.00413b59
push esi
call fcn.004141ee
add esp, 0x2c
jmp 0x4135a5
cmp edx, dword [ebx + 0x2e8]
jne 0x4135a5
test eax, eax
jne 0x4135a5
push edi
push edi
push 0x147
push dword [ebx + 0x294]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp - 0x18], eax
shl esi, 4
xor ecx, ecx
add esi, dword [ebx + 0x268]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x10], eax
cmp cx, word [esi]
jae 0x413517
mov ebx, edi
push dword [eax + ebx*8]
call dword [sym.imp.msvcrt.dll_free]
movzx eax, word [esi]
inc ebx
cmp ebx, eax
mov eax, dword [ebp + 0x10]
pop ecx
jl 0x4134ff
mov ebx, dword [ebp + 8]
push eax
call dword [sym.imp.msvcrt.dll_free]
mov edx, dword [ebp - 0x18]
pop ecx
mov ecx, dword [ebx + 0x264]
lea eax, [ecx - 1]
cmp edx, eax
jge 0x413544
sub ecx, edx
lea eax, [esi + 0x10]
dec ecx
shl ecx, 4
push ecx
push eax
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
dec dword [ebx + 0x264]
mov eax, dword [ebx + 0x264]
shl eax, 4
push eax
push dword [ebx + 0x268]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
mov dword [ebx + 0x268], eax
dec dword [ebx + 0x284]
pop ecx
jns 0x413576
mov dword [ebx + 0x284], edi
push dword [ebx + 0x284]
mov esi, dword [ebp + 0xc]
push esi
mov dword [ebx + 0x280], edi
call fcn.00413cad
xor eax, eax
inc eax
push eax
push edi
push esi
call fcn.00413bd8
push esi
call fcn.00413b59
push esi
call fcn.004141ee
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret