Function at 0x407254
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xc8
mov ecx, dword [ebp + 0x78]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x74]
mov ebx, eax
lea eax, [ebp + 0x78]
push eax
lea esi, [ebp + 0x68]
call fcn.004040d4
test al, al
je 0x407655
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x68]
push ecx
mov eax, edx
call fcn.00403f72
mov dword [ebp + 0x78], eax
mov eax, edi
mov eax, dword [eax + edx*4 + 0x54]
mov esi, dword [eax + ecx*4 + 0x50]
or dword [ebx], 0xffffffff
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x68], ecx
movzx ecx, byte [esi + 0x70]
cmp ecx, 0x11
jg 0x4075d4
je 0x40750c
cmp ecx, 0xa
jg 0x40739f
je 0x407361
xor esi, esi
sub ecx, esi
je 0x407328
dec ecx
je 0x4072e7
sub ecx, 7
jne 0x4076c3
push esi
push esi
push 0x408
jmp 0x4078a0
push esi
push esi
push 0x188
push dword [ebp + 0x68]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4076c3
push esi
push ebx
push 0x18a
push dword [ebp + 0x68]
call edi
lea eax, [eax + eax + 2]
push eax
call fcn.004489c4
pop ecx
mov esi, eax
push esi
push ebx
push 0x189
push dword [ebp + 0x68]
call edi
jmp 0x40764e
push esi
push esi
push 0x147
push dword [ebp + 0x68]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4076c3
push esi
push ebx
push 0x149
push dword [ebp + 0x68]
call edi
lea eax, [eax + eax + 2]
push eax
call fcn.004489c4
pop ecx
mov esi, eax
push esi
push ebx
push 0x148
jmp 0x40731e
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push dword [ebp + 0x68]
call esi
cmp byte [ebp + 0x7c], 0
mov dword [ebx], eax
je 0x4078ab
lea ecx, [ebp - 0x5c]
push ecx
push eax
push 0x133c
push dword [ebp + 0x68]
mov dword [ebp - 0x5c], 8
call esi
mov eax, dword [ebp - 0x44]
jmp 0x4078a9
cmp ecx, 0xc
je 0x407655
cmp ecx, 0xd
jle 0x4076c1
cmp ecx, 0xf
jle 0x407449
cmp ecx, 0x10
jne 0x4076c1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push 9
push 0x110a
push dword [ebp + 0x68]
mov dword [ebx], edi
call esi
cmp eax, edi
je 0x4078ab
cmp byte [ebp + 0x7c], 0
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], 4
je 0x40742a
push 0x2000
call fcn.004489c4
pop ecx
mov ebx, eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0x113e
push dword [ebp + 0x68]
mov dword [ebp + 0x14], 1
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], 0xfff
call esi
jmp 0x407569
push ebx
jmp 0x407693
lea eax, [ebp + 0x14]
push eax
push edi
push 0x113e
push dword [ebp + 0x68]
call esi
test eax, eax
je 0x4078ab
mov eax, dword [ebp + 0x38]
jmp 0x4078a9
cmp dword [eax + 0x415c], 0
jne 0x40745f
cmp dword [eax + 0x4160], 0
jne 0x4078ab
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x4078ab
push 0x208
call fcn.004489c4
cmp byte [ebp + 0x7c], 0
pop ecx
mov edi, eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp + 0x78]
mov dword [ebp - 0x28], 0x2c
push dword [esi + 4]
je 0x4074b2
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 4], edi
mov dword [ebp], 0x104
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
jmp 0x40768c
mov dword [ebp - 0x24], 1
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
push edi
je 0x407693
call fcn.004488cc
mov eax, dword [ebp - 0x1c]
pop ecx
mov cl, al
and cl, 3
neg cl
mov dword [ebx], eax
sbb ecx, ecx
and ecx, 0x40
add ecx, 0x40
test ax, 0x8080
je 0x4074ee
or ecx, 0x100
test al, 8
je 0x4074f7
or ecx, 1
jmp 0x4074fa
or ecx, 4
test ah, 0x10
je 0x407505
or ecx, 0x200
mov dword [ebx], ecx
jmp 0x4078ab
mov eax, dword [esi + 8]
xor edi, edi
push 0xfffffffffffffff0
mov dword [ebx], edi
push dword [esi + 0x24]
mov dword [ebp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp byte [ebp + 0x7c], 0
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x14], 8
mov dword [ebp + 0x20], 0xf000
je 0x407578
push 0x2000
call fcn.004489c4
pop ecx
mov ebx, eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0x113e
push dword [esi + 0x24]
mov dword [ebp + 0x14], 1
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], 0xfff
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x407424
mov eax, ebx
jmp 0x4078ad
lea eax, [ebp + 0x14]
push eax
push edi
push 0x113e
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4078ab
mov ecx, dword [ebp + 0x1c]
mov eax, 0x100
test dword [ebp + 0x78], eax
je 0x4075b2
mov edx, ecx
shr edx, 0xc
dec edx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 4
mov dword [ebx], edx
test cl, 2
je 0x4075b9
or dword [ebx], eax
test cl, 0x20
je 0x4075c2
or byte [ebx + 1], 4
test cl, 0x10
je 0x4078ab
or byte [ebx + 1], 2
jmp 0x4078ab
cmp ecx, 0x12
je 0x407897
cmp ecx, 0x13
je 0x40784c
cmp ecx, 0x14
je 0x40770d
cmp ecx, 0x15
je 0x4076ed
cmp ecx, 0x18
jle 0x4076c1
cmp ecx, 0x1a
jle 0x40765d
cmp ecx, 0x1c
jne 0x4076c1
lea eax, [ebp + 4]
push eax
push 0
push 0x1001
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x407655
push 0x16
call fcn.004489c4
mov esi, eax
movzx eax, word [ebp + 0xa]
push eax
movzx eax, word [ebp + 6]
push eax
movzx eax, word [ebp + 4]
push eax
push str._d__02d__02d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov eax, esi
jmp 0x4078ad
and dword [ebx], 0
jmp 0x4078ab
cmp byte [ebp + 0x7c], 0
push 0
push 0
je 0x40769e
push 0xe
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call fcn.004489c4
pop ecx
push esi
mov edi, eax
push edi
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4076e6
and dword [ebx], eax
push edi
call fcn.004488cc
pop ecx
jmp 0x4078ab
push 0xf0
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [ebx], eax
jne 0x4078ab
mov dword [ebx], 4
jmp 0x4078ab
xor esi, esi
push esi
push esi
push 0xe
push dword [ebp + 0x68]
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call fcn.004489c4
pop ecx
push esi
mov edi, eax
push edi
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, edi
jmp 0x4078ad
cmp dword [esi + 0x58], 4
jne 0x407700
add esi, 0x50
call fcn.004181d6
jmp 0x4078ad
lea eax, [esi + 0x50]
call fcn.004182bb
jmp 0x4078a9
mov edi, dword [esi + 0x24]
or dword [ebx], 0xffffffff
push 0xffffffffffffffec
push edi
mov dword [ebp + 0x64], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x28
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x3c]
push 0
push eax
call fcn.00448eb0
mov eax, dword [ebp + 0x78]
add esp, 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push 0x1053
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x40], 1
call edi
cmp eax, 0xffffffff
mov dword [ebp + 0x40], eax
je 0x4078ab
test byte [ebp + 0x68], 4
je 0x4077a7
cmp byte [ebp + 0x7c], 0
je 0x4077a7
lea eax, [ebp + 0x3c]
push eax
push 0
push 0x104b
push dword [ebp + 0x64]
mov dword [ebp + 0x3c], 8
mov dword [ebp + 0x4c], 0xf000
call edi
test eax, eax
je 0x4078ab
mov eax, dword [ebp + 0x48]
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
jmp 0x4078a9
push 0x2000
call fcn.004489c4
xor ebx, ebx
cmp byte [esi + 0x74], bl
pop ecx
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x3c], 1
mov dword [ebp + 0x54], 0xfff
jbe 0x40782e
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x3c]
push eax
push 0
push 0x104b
push dword [esi + 0x24]
mov dword [ebp + 0x44], ebx
call edi
push dword [ebp + 0x7c]
call fcn.00448c0c
pop ecx
mov ecx, 0xffe
sub ecx, eax
test ecx, ecx
mov dword [ebp + 0x54], ecx
jle 0x407847
push dword [ebp + 0x78]
call fcn.00448c0c
pop ecx
mov ecx, dword [ebp + 0x78]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp + 0x74]
mov cx, word [ecx + 0x14]
and word [eax + 2], 0
push eax
mov word [eax], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp + 0x7c], eax
movzx eax, byte [esi + 0x74]
inc ebx
cmp ebx, eax
jl 0x4077cd
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x3c]
push eax
push 0
push 0x104b
push dword [esi + 0x24]
mov dword [ebp + 0x44], ebx
call edi
mov eax, dword [ebp + 0x78]
jmp 0x4078ad
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebp + 0x68]
call esi
push 0x28
mov dword [ebx], eax
lea eax, [ebp + 0x3c]
push 0
push eax
call fcn.00448eb0
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x3c]
push eax
push 0
push 0x104b
push dword [ebp + 0x68]
mov dword [ebp + 0x3c], 4
call esi
neg eax
sbb eax, eax
and eax, dword [ebp + 0x5c]
jmp 0x4078a9
push 0
push 0
push 0x400
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc