Function at 0x4099f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5042ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c0
mov eax, dword [0x55306c]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x5c8], eax
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004da2d0
mov eax, dword [ebp - 0x5c8]
add esp, 0xc
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a5a8
push 0x208
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 0x5c8]
push dword [eax + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a96
sub ecx, edx
sar ecx, 1
je 0x40a5a8
xor eax, eax
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x428]
push ecx
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x440]
push eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
call fcn.00406aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x409b3e
mov ecx, esi
call fcn.00406a30
movups xmm0, xmmword [ebp - 0x440]
mov eax, 7
xor ecx, ecx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x430]
mov dword [ebp - 0x42c], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], cx
jmp 0x409b44
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x409b85
mov ecx, dword [ebp - 0x440]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5c6
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
lea esi, [edi + 0x184]
mov eax, dword [edi + 0xc8]
push 0x410
mov dword [ebp - 0x5c8], eax
lea eax, [ebp - 0x428]
push 0
push eax
mov dword [ebp - 0x42c], 7
call fcn.004da2d0
mov eax, dword [ebp - 0x5c8]
add esp, 0xc
push dword [eax + 0x104]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a5a8
push 0x208
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 0x5c8]
push dword [eax + 0x104]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c10
sub ecx, edx
sar ecx, 1
je 0x40a5a8
xor eax, eax
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x428]
push ecx
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x440]
push eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
call fcn.00406aa0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x409cb8
mov ecx, esi
call fcn.00406a30
movups xmm0, xmmword [ebp - 0x440]
mov eax, 7
xor ecx, ecx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x430]
mov dword [ebp - 0x42c], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], cx
jmp 0x409cbe
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x409cff
mov ecx, dword [ebp - 0x440]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409cf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5cb
push edx
push ecx
call fcn.004c2683
add esp, 8
mov ecx, dword [edi + 0xc8]
xor eax, eax
mov word [ebp - 0x440], ax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov eax, dword [ecx]
mov eax, dword [eax + 0x8c]
call eax
mov ecx, dword [edi + 0xc8]
lea edx, [ebp - 0x4a0]
mov dword [edi + 0x19c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x88]
mov dword [ebp - 4], 2
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [edi + 0x16c]
call fcn.0041b3b0
test eax, eax
jne 0x409dae
mov esi, dword [edi + 0xc8]
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x3ef
mov ecx, esi
call fcn.004220c0
test eax, eax
je 0x409d8c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x18]
push 0x3ee
mov ecx, esi
call fcn.004220c0
test eax, eax
je 0x40a548
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0x18]
jmp 0x40a548
cmp dword [edi + 0x130], 0
je 0x409e54
lea eax, [edi + 0x120]
push eax
lea eax, [ebp - 0x458]
push 0x52e5f4
push eax
call fcn.0040c700
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x409de4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [edi + 0x16c]
call fcn.0040c440
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x409e37
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409e2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5d0
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
push 0x52e5fc
lea ecx, [ebp - 0x458]
call fcn.004067e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x458]
push eax
mov ecx, esi
call fcn.0041b3b0
mov esi, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x409ebc
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409eb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5d5
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
test esi, esi
jne 0x409f12
mov esi, dword [edi + 0xc8]
push dword [esi + 0x104]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x3f4
mov ecx, esi
call fcn.004220c0
test eax, eax
je 0x409f08
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x18]
push 0x3f3
jmp 0x409d91
cmp byte [edi + 0x169], al
je 0x409fa3
mov ecx, dword [edi + 0xc8]
push 0
push 0x555478
push 0x555284
push 0
push 0x3fa
call fcn.004220c0
push eax
call fcn.004daaf1
add esp, 0x14
test eax, eax
je 0x40a14b
mov eax, dword [eax + 0x38]
test eax, eax
je 0x40a14b
cmp dword [eax + 0x2c], 0xffffffff
je 0x40a14b
push 0
push ecx
mov ecx, dword [edi + 0xc8]
call fcn.0040fe10
mov ecx, dword [edi + 0xc8]
push 0
push 0x555478
push 0x555284
push 0
push 0x3fa
call fcn.004220c0
push eax
call fcn.004daaf1
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x40a131
xor al, al
lea esi, [edi + 0x108]
mov byte [edi + 0x168], al
mov edx, 0x52e630
mov ecx, esi
call fcn.0041ac10
push 0x52e630
push esi
call fcn.0041aca0
lea ecx, [edi + 0xf0]
mov edx, 0x52e630
call fcn.0041ac10
lea eax, [edi + 0xf0]
push 0x52e630
push eax
call fcn.0041aca0
add esp, 0x10
cmp byte [edi + 0x168], 0
je 0x40a000
push esi
call fcn.0041b850
add esp, 4
test al, al
jne 0x40a00e
push 0
push 0x529620
mov ecx, esi
call fcn.00406aa0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0xf
mov byte [ebp - 0x470], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x470]
push eax
mov ecx, edi
call fcn.0040a660
push 0x52e634
lea ecx, [ebp - 0x500]
call fcn.004067e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4e8]
push str._api_advise_report
call fcn.004067e0
mov byte [ebp - 4], 7
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0xf
mov byte [ebp - 0x488], 0
mov byte [ebp - 4], 8
cmp dword [edi + 0x1a0], 0
jne 0x40a0f4
push 0x24
call fcn.004c22d8
add esp, 4
mov dword [ebp - 0x5c8], eax
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.0042a710
mov byte [ebp - 4], 8
mov esi, dword [edi + 0x1a0]
mov dword [edi + 0x1a0], eax
test esi, esi
je 0x40a0f4
mov ecx, esi
call fcn.0042a760
push 0x24
push esi
call fcn.004c2683
add esp, 8
lea ecx, [ebp - 0x5c0]
call fcn.00415970
mov byte [ebp - 4], 0xa
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x5ac]
test eax, eax
jne 0x40a15e
call fcn.004c1c09
mov dword [ebp - 0x5ac], eax
test eax, eax
jne 0x40a15e
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40a1e9
mov ecx, dword [ecx + 0x38]
or eax, 0xffffffff
test ecx, ecx
je 0x40a13e
mov eax, dword [ecx + 0x2c]
cmp eax, 0x3fc
sete al
jmp 0x409fa3
push 1
push ecx
mov ecx, dword [edi + 0xc8]
call fcn.0040fe10
jmp 0x40a548
push 0
push 0
push eax
call fcn.004c1d0b
lea eax, [ebp - 0x5c0]
mov dword [ebp - 0x5b8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x5b4], eax
mov dword [ebp - 0x5cc], 0x557dd4
mov byte [ebp - 0x5c8], 0
mov byte [ebp - 4], 0xb
push 0x557dd4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x557dec]
mov dword [ebp - 0x5b0], eax
lea eax, [ebp - 0x5b8]
mov byte [ebp - 0x5c8], 1
mov dword [0x557dec], eax
mov byte [ebp - 4], 0xa
push 0x557dd4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x40c4b0
push esi
push 0x64
push dword [0x556a88]
mov byte [ebp - 0x5c8], 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 - 0x448], 0
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], 0
push 0x52e688
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.0040bde0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x440]
push 0x20
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push str.c6456bfa0e6312b0ccfe238a4c0dcabd
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
call fcn.0040bde0
mov byte [ebp - 4], 0xd
lea edx, [edi + 0xf0]
lea ecx, [ebp - 0x4d0]
call fcn.0041da90
mov esi, eax
mov byte [ebp - 4], 0xe
lea edx, [edi + 0x108]
lea ecx, [ebp - 0x4b8]
call fcn.0041da90
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x488]
push ecx
mov ecx, dword [edi + 0x1a0]
push esi
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0042ab90
mov byte [ebp - 0x5c1], al
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x4a4]
cmp edx, 0x10
jb 0x40a31e
mov ecx, dword [ebp - 0x4b8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a314
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5da
push edx
push ecx
call fcn.004c2683
add esp, 8
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0xf
mov byte [ebp - 0x4b8], 0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x4bc]
cmp edx, 0x10
jb 0x40a377
mov ecx, dword [ebp - 0x4d0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a36d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5df
push edx
push ecx
call fcn.004c2683
add esp, 8
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 0xf
mov byte [ebp - 0x4d0], 0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x42c]
cmp edx, 0x10
jb 0x40a3d0
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5e4
push edx
push ecx
call fcn.004c2683
add esp, 8
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x444]
cmp edx, 0x10
jb 0x40a429
mov ecx, dword [ebp - 0x458]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a41f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5e9
push edx
push ecx
call fcn.004c2683
add esp, 8
cmp byte [ebp - 0x5c1], 0
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
je 0x40a45e
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 - 0x5c0]
call fcn.00415bf0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x474]
cmp edx, 0x10
jb 0x40a4b6
mov ecx, dword [ebp - 0x488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a4ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5ee
push edx
push ecx
call fcn.004c2683
add esp, 8
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0xf
mov byte [ebp - 0x488], 0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x4e8]
call fcn.00406a30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x500]
call fcn.00406a30
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x45c]
cmp edx, 0x10
jb 0x40a52d
mov ecx, dword [ebp - 0x470]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a523
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5f3
push edx
push ecx
call fcn.004c2683
add esp, 8
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0xf
mov byte [ebp - 0x470], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48c]
cmp edx, 8
jb 0x40a58b
mov ecx, dword [ebp - 0x4a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a581
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a5f8
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x48c], 7
mov word [ebp - 0x4a0], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c1e08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
call fcn.004e546f
int3