Function at 0x4127a9
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 + 0x280]
push dword [ebx + 0x27c]
shl esi, 4
add esi, dword [ebx + 0x264]
push esi
mov dword [ebp - 0xc], esi
call fcn.00413f90
push eax
push esi
call fcn.00413f56
xor edi, edi
mov dword [ebp - 4], eax
add esp, 0x10
mov dword [ebp - 8], edi
test esi, esi
je 0x4127f2
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 + 0x290]
jne 0x412847
cmp eax, ecx
jne 0x412847
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x147
push edx
call edi
and dword [ebx + 0x284], 0
mov esi, eax
push 0x43caf0
push 4
push 0xc
push dword [ebx + 0x294]
call edi
push esi
push dword [ebp + 0xc]
call fcn.0041381d
push dword [ebp + 0xc]
call fcn.00413d5e
jmp 0x412958
mov ecx, dword [ebx + 0x294]
cmp edx, ecx
jne 0x412888
test eax, eax
jne 0x412888
mov ecx, dword [ebx + 0x284]
test ecx, ecx
sete al
mov dword [ebx + 0x284], eax
test ecx, ecx
je 0x412873
push 0x43caf0
push 4
jmp 0x41287a
push str.Pause
push 5
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x413115
cmp edx, dword [ebx + 0x298]
jne 0x412906
test eax, eax
jne 0x412906
cmp dword [ebx + 0x284], edi
je 0x4128b2
push 0x43caf0
push 4
push 0xc
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x284], edi
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp cx, word [eax + 4]
jae 0x4128ea
inc dword [ebx + 0x27c]
push dword [ebx + 0x27c]
push esi
call fcn.00413f90
push eax
push esi
call fcn.00413f56
add esp, 0x10
cmp eax, dword [ebp - 4]
jne 0x4128ea
mov eax, dword [ebp - 8]
inc edi
movzx eax, word [eax + 4]
cmp edi, eax
jl 0x4128bd
xor eax, eax
inc eax
push eax
push dword [ebx + 0x27c]
push esi
call fcn.00413f90
push eax
push esi
call fcn.00413f56
add esp, 0x10
jmp 0x41294f
mov ecx, dword [ebx + 0x2a0]
cmp edx, ecx
jne 0x412960
cmp eax, 1
jne 0x412960
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 + 0x284], edi
test eax, eax
jle 0x412948
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 0x41293a
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x27c], edx
push edi
push eax
push dword [ebp + 0xc]
call fcn.00413748
add esp, 0xc
jmp 0x413115
cmp edx, dword [ebx + 0x2a4]
jne 0x412984
cmp eax, 1
jne 0x412984
push edi
push edi
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov dword [esi + 8], eax
jmp 0x412ac5
cmp edx, dword [ebx + 0x2ac]
jne 0x412a9b
cmp eax, 1
jne 0x412a9b
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 0x412a8e
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.0041260f
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.0041264f
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 0x412a7f
xor eax, eax
inc eax
cmp ebx, eax
jne 0x412a5b
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 0x412a7f
cmp ebx, 2
jne 0x412a7f
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 0x4129dd
push ebx
push dword [ebp + 0xc]
call fcn.00413a92
pop ecx
pop ecx
jmp 0x412ac5
cmp edx, dword [ebx + 0x2a8]
jne 0x412ade
cmp eax, 1
jne 0x412ade
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.00413d5e
pop ecx
jmp 0x413115
cmp edx, dword [ebx + 0x2b0]
jne 0x412b10
cmp eax, 0x300
jne 0x412b10
cmp dword [ebx + 0x28c], edi
jne 0x413115
push edx
call fcn.0043b810
mov edx, dword [ebp - 4]
pop ecx
mov ecx, dword [esi + 0xc]
mov word [ecx + edx*8 + 4], ax
jmp 0x413115
cmp edx, dword [ebx + 0x2b4]
jne 0x412b43
cmp eax, 0x300
jne 0x412b43
cmp dword [ebx + 0x28c], edi
jne 0x413115
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
push edx
mov esi, dword [eax + ecx*8]
call fcn.0043b810
pop ecx
mov word [esi], ax
jmp 0x412cec
cmp edx, dword [ebx + 0x2bc]
je 0x412b53
cmp edx, dword [ebx + 0x2c0]
jne 0x412bcd
cmp eax, 0x300
jne 0x412bcd
push edx
call fcn.0043b810
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.0041264f
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp eax, dword [ebx + 0x2bc]
jne 0x412b98
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
jmp 0x412b9e
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x412bb5
mov eax, dword [esi]
mov word [eax + 0xc], cx
mov word [eax + 0xe], dx
jmp 0x412cec
cmp eax, 2
jne 0x412cec
mov eax, dword [esi]
mov word [eax + 4], cx
mov word [eax + 6], dx
jmp 0x412cec
cmp edx, dword [ebx + 0x2c8]
je 0x412be1
cmp edx, dword [ebx + 0x2cc]
jne 0x412c92
cmp eax, 0x300
jne 0x412c92
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.00414074
fst dword [ebp + 8]
fldz
fcompi st(1)
pop ecx
fstp st(0)
jbe 0x412c1a
movss xmm1, dword [0x43cc54]
jmp 0x412c22
movss xmm1, dword [0x43c360]
movss xmm0, dword [ebp + 8]
mulss xmm0, dword [0x43cc50]
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.0041260f
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp eax, dword [ebx + 0x2c8]
jne 0x412c73
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
jmp 0x412c7a
mov eax, dword [ebp - 0x14]
cvttss2si edx, xmm0
cmp word [esi + 4], 1
jne 0x412cec
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 0x412ce8
cmp edx, dword [ebx + 0x2d4]
jne 0x412cfc
cmp eax, 0x300
jne 0x412cfc
push edx
call fcn.0043b810
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.0041260f
xor eax, eax
add esp, 0x18
inc eax
cmp esi, eax
jne 0x412cec
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 0x413115
cmp edx, dword [ebx + 0x2d8]
jne 0x412e1e
test eax, eax
jne 0x412e1e
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 0x412d9c
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 0x412de1
dec eax
je 0x412dd6
dec eax
jne 0x412de1
mov eax, 0xbeef
mov word [ecx + 2], ax
jmp 0x412de1
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 0x412e04
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 0x412df9
push dword [ebx + 0x280]
push dword [ebp + 0xc]
call fcn.0041381d
xor eax, eax
inc eax
push eax
push dword [ebp + 0x10]
jmp 0x412ee7
cmp edx, dword [ebx + 0x2dc]
jne 0x412f05
test eax, eax
jne 0x412f05
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 0x413115
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 0x412e95
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 0x412ebb
lea esi, [ecx - 1]
xor eax, eax
mov ecx, edi
test esi, esi
cmovs esi, eax
test esi, esi
jle 0x412ed4
movzx eax, word [edx + ecx*8 + 4]
add edi, eax
inc ecx
cmp ecx, esi
jl 0x412ec8
push dword [ebx + 0x280]
push dword [ebp + 0xc]
call fcn.0041381d
xor eax, eax
inc eax
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebx + 0x27c], edi
call fcn.00413748
push dword [ebp + 0xc]
call fcn.00413d5e
add esp, 0x18
jmp 0x413115
cmp edx, dword [ebx + 0x2e0]
jne 0x41302b
test eax, eax
jne 0x41302b
push edi
push edi
push 0x147
push dword [ebx + 0x290]
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [ebx + 0x260]
mov esi, eax
mov ecx, dword [ebx + 0x260]
shl ecx, 4
push ecx
push dword [ebx + 0x264]
call dword [sym.imp.msvcrt.dll_realloc]
mov edx, dword [ebx + 0x260]
mov edi, eax
pop ecx
pop ecx
mov dword [ebx + 0x264], edi
lea ecx, [edx - 2]
cmp esi, ecx
jge 0x412f85
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 + 0x264]
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 + 0x264]
xor edx, edx
inc edx
push 2
push edx
mov dword [ecx + esi*8 + 0xc], eax
xor ecx, ecx
mov eax, dword [ebx + 0x264]
mov dword [eax + esi*8 + 8], edx
mov eax, dword [ebx + 0x264]
mov dword [eax + esi*8 + 4], 0x10000
mov eax, dword [ebx + 0x264]
mov word [eax + esi*8 + 2], cx
mov eax, dword [ebx + 0x264]
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.0041381d
xor eax, eax
xor edi, edi
inc eax
push eax
push edi
push esi
call fcn.00413748
push esi
mov dword [ebx + 0x27c], edi
call fcn.004136c9
push esi
call fcn.00413d5e
add esp, 0x2c
jmp 0x413115
cmp edx, dword [ebx + 0x2e4]
jne 0x413115
test eax, eax
jne 0x413115
push edi
push edi
push 0x147
push dword [ebx + 0x290]
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 + 0x264]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x10], eax
cmp cx, word [esi]
jae 0x413087
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 0x41306f
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 + 0x260]
lea eax, [ecx - 1]
cmp edx, eax
jge 0x4130b4
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 + 0x260]
mov eax, dword [ebx + 0x260]
shl eax, 4
push eax
push dword [ebx + 0x264]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
mov dword [ebx + 0x264], eax
dec dword [ebx + 0x280]
pop ecx
jns 0x4130e6
mov dword [ebx + 0x280], edi
push dword [ebx + 0x280]
mov esi, dword [ebp + 0xc]
push esi
mov dword [ebx + 0x27c], edi
call fcn.0041381d
xor eax, eax
inc eax
push eax
push edi
push esi
call fcn.00413748
push esi
call fcn.004136c9
push esi
call fcn.00413d5e
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret