Function at 0x409a70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50339d
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
mov eax, dword [0x55209c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xc8]
lea esi, [edi + 0x16c]
push 0x410
mov dword [ebp - 0x5bc], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004da4e0
mov eax, dword [ebp - 0x5bc]
add esp, 0xc
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a60f
push 0x208
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x5bc]
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b02
sub ecx, edx
sar ecx, 1
je 0x40a60f
xor eax, eax
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x420]
push ecx
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x438]
push eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00406ac0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x438]
cmp esi, eax
je 0x409baa
mov ecx, esi
call fcn.00406a50
movups xmm0, xmmword [ebp - 0x438]
mov eax, 7
xor ecx, ecx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
mov dword [ebp - 0x424], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], cx
jmp 0x409bb0
mov eax, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x409bf1
mov ecx, dword [ebp - 0x438]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409be7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a62a
push edx
push ecx
call fcn.004c27d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
lea esi, [edi + 0x184]
mov eax, dword [edi + 0xc8]
push 0x410
mov dword [ebp - 0x5bc], eax
lea eax, [ebp - 0x420]
push 0
push eax
mov dword [ebp - 0x424], 7
call fcn.004da4e0
mov eax, dword [ebp - 0x5bc]
add esp, 0xc
push dword [eax + 0x104]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a60f
push 0x208
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x5bc]
push dword [eax + 0x104]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c77
sub ecx, edx
sar ecx, 1
je 0x40a60f
xor eax, eax
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x420]
push ecx
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x438]
push eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00406ac0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x438]
cmp esi, eax
je 0x409d1f
mov ecx, esi
call fcn.00406a50
movups xmm0, xmmword [ebp - 0x438]
mov eax, 7
xor ecx, ecx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
mov dword [ebp - 0x424], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], cx
jmp 0x409d25
mov eax, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x409d66
mov ecx, dword [ebp - 0x438]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409d5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a62f
push edx
push ecx
call fcn.004c27d8
add esp, 8
mov ecx, dword [edi + 0xc8]
xor eax, eax
mov word [ebp - 0x438], ax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov eax, dword [ecx]
mov eax, dword [eax + 0x8c]
call eax
mov ecx, dword [edi + 0xc8]
lea edx, [ebp - 0x498]
mov dword [edi + 0x19c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x88]
mov dword [ebp - 4], 2
lea eax, [ebp - 0x498]
push eax
lea ecx, [edi + 0x16c]
call fcn.0041c270
test eax, eax
jne 0x409e15
mov esi, dword [edi + 0xc8]
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x3ef
mov ecx, esi
call fcn.00427f50
test eax, eax
je 0x409df3
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x18]
push 0x3ee
mov ecx, esi
call fcn.00427f50
test eax, eax
je 0x40a5af
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0x18]
jmp 0x40a5af
cmp dword [edi + 0x130], 0
je 0x409ebb
lea eax, [edi + 0x120]
push eax
lea eax, [ebp - 0x450]
push 0x52d6e8
push eax
call fcn.0040c750
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x409e4b
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [edi + 0x16c]
call fcn.0040c490
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x409e9e
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a634
push edx
push ecx
call fcn.004c27d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
push 0x52d6f0
lea ecx, [ebp - 0x450]
call fcn.00406800
mov byte [ebp - 4], 4
lea eax, [ebp - 0x450]
push eax
mov ecx, esi
call fcn.0041c270
mov esi, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x409f23
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409f19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a639
push edx
push ecx
call fcn.004c27d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
test esi, esi
jne 0x409f79
mov esi, dword [edi + 0xc8]
push dword [esi + 0x104]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x3f4
mov ecx, esi
call fcn.00427f50
test eax, eax
je 0x409f6f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x18]
push 0x3f3
jmp 0x409df8
cmp byte [edi + 0x169], al
je 0x40a00a
mov ecx, dword [edi + 0xc8]
push 0
push 0x554478
push 0x554284
push 0
push 0x3fa
call fcn.00427f50
push eax
call fcn.004dad01
add esp, 0x14
test eax, eax
je 0x40a1b2
mov eax, dword [eax + 0x38]
test eax, eax
je 0x40a1b2
cmp dword [eax + 0x2c], 0xffffffff
je 0x40a1b2
push 0
push ecx
mov ecx, dword [edi + 0xc8]
call fcn.0040ff00
mov ecx, dword [edi + 0xc8]
push 0
push 0x554478
push 0x554284
push 0
push 0x3fa
call fcn.00427f50
push eax
call fcn.004dad01
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x40a198
xor al, al
lea esi, [edi + 0x108]
mov byte [edi + 0x168], al
mov edx, 0x52d724
mov ecx, esi
call fcn.0041bad0
push 0x52d724
push esi
call fcn.0041bb60
lea ecx, [edi + 0xf0]
mov edx, 0x52d724
call fcn.0041bad0
lea eax, [edi + 0xf0]
push 0x52d724
push eax
call fcn.0041bb60
add esp, 0x10
cmp byte [edi + 0x168], 0
je 0x40a067
push esi
call fcn.0041c750
add esp, 4
test al, al
jne 0x40a075
push 0
push 0x5286a0
mov ecx, esi
call fcn.00406ac0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xf
mov byte [ebp - 0x468], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x468]
push eax
mov ecx, edi
call fcn.0040a6d0
push 0x52d728
lea ecx, [ebp - 0x4f8]
call fcn.00406800
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4e0]
push str._api_advise_report
call fcn.00406800
mov byte [ebp - 4], 7
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0xf
mov byte [ebp - 0x480], 0
mov byte [ebp - 4], 8
cmp dword [edi + 0x1a0], 0
jne 0x40a15b
push 0x24
call fcn.004c242d
add esp, 4
mov dword [ebp - 0x5bc], eax
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.004305a0
mov byte [ebp - 4], 8
mov esi, dword [edi + 0x1a0]
mov dword [edi + 0x1a0], eax
test esi, esi
je 0x40a15b
mov ecx, esi
call fcn.004305f0
push 0x24
push esi
call fcn.004c27d8
add esp, 8
lea ecx, [ebp - 0x5b4]
call fcn.00415cc0
mov byte [ebp - 4], 0xa
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x5a0]
test eax, eax
jne 0x40a1c5
call fcn.004c0886
mov dword [ebp - 0x5a0], eax
test eax, eax
jne 0x40a1c5
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40a250
mov ecx, dword [ecx + 0x38]
or eax, 0xffffffff
test ecx, ecx
je 0x40a1a5
mov eax, dword [ecx + 0x2c]
cmp eax, 0x3fc
sete al
jmp 0x40a00a
push 1
push ecx
mov ecx, dword [edi + 0xc8]
call fcn.0040ff00
jmp 0x40a5af
push 0
push 0
push eax
call fcn.004c0988
lea eax, [ebp - 0x5b4]
mov dword [ebp - 0x5ac], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x5a8], eax
mov dword [ebp - 0x5c0], 0x5571e4
mov byte [ebp - 0x5bc], 0
mov byte [ebp - 4], 0xb
push 0x5571e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5571fc]
mov dword [ebp - 0x5a4], eax
lea eax, [ebp - 0x5ac]
mov byte [ebp - 0x5bc], 1
mov dword [0x5571fc], eax
mov byte [ebp - 4], 0xa
push 0x5571e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x40c500
push esi
push 0x64
push dword [0x555a80]
mov byte [ebp - 0x5bc], 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 0
push 0x52d774
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.0040be30
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x438]
push 0x20
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push str.c6456bfa0e6312b0ccfe238a4c0dcabd
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.0040be30
mov byte [ebp - 4], 0xd
lea edx, [edi + 0xf0]
lea ecx, [ebp - 0x4c8]
call fcn.0041e990
mov esi, eax
mov byte [ebp - 4], 0xe
lea edx, [edi + 0x108]
lea ecx, [ebp - 0x4b0]
call fcn.0041e990
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x480]
push ecx
mov ecx, dword [edi + 0x1a0]
push esi
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x4f8]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00430a20
mov byte [ebp - 0x5b5], al
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x49c]
cmp edx, 0x10
jb 0x40a385
mov ecx, dword [ebp - 0x4b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a37b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a63e
push edx
push ecx
call fcn.004c27d8
add esp, 8
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0xf
mov byte [ebp - 0x4b0], 0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x4b4]
cmp edx, 0x10
jb 0x40a3de
mov ecx, dword [ebp - 0x4c8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a643
push edx
push ecx
call fcn.004c27d8
add esp, 8
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 0xf
mov byte [ebp - 0x4c8], 0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x424]
cmp edx, 0x10
jb 0x40a437
mov ecx, dword [ebp - 0x438]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a42d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a648
push edx
push ecx
call fcn.004c27d8
add esp, 8
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x43c]
cmp edx, 0x10
jb 0x40a490
mov ecx, dword [ebp - 0x450]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a486
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a64d
push edx
push ecx
call fcn.004c27d8
add esp, 8
cmp byte [ebp - 0x5b5], 0
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
je 0x40a4c5
push 0
push 0
push 0x10
push dword [edi + 4]
call esi
push 0
push 0
push 0x10
push dword [edi + 4]
call esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5b4]
call fcn.00415f40
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x46c]
cmp edx, 0x10
jb 0x40a51d
mov ecx, dword [ebp - 0x480]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a513
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a652
push edx
push ecx
call fcn.004c27d8
add esp, 8
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0xf
mov byte [ebp - 0x480], 0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x4e0]
call fcn.00406a50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4f8]
call fcn.00406a50
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x454]
cmp edx, 0x10
jb 0x40a594
mov ecx, dword [ebp - 0x468]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a58a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a657
push edx
push ecx
call fcn.004c27d8
add esp, 8
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xf
mov byte [ebp - 0x468], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x484]
cmp edx, 8
jb 0x40a5f2
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a5e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a65c
push edx
push ecx
call fcn.004c27d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 7
mov word [ebp - 0x498], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1f5d
mov esp, ebp
pop ebp
ret
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
call fcn.004e566f
int3