Function at 0x40a550
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x134
push ebx
push esi
push edi
push 0x104
call fcn.0044c0d4
mov edi, dword [esp + 0x148]
add esp, 4
mov ebx, eax
push 0x104
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40a773
push ebp
push 1
push 0x27
push ebx
call fcn.00449b90
push 0
push ebx
call fcn.0040a3b0
mov edi, dword [0x477328]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 3
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x45a1cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x54]
and ecx, 3
push 0x80000000
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call esi
cmp eax, 0xffffffff
pop ebp
je 0x40a6b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4773cc]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0
push 0x185
push ecx
call esi
mov edx, dword [0x4773cc]
push 0
push 0
push 0x182
push edx
call esi
mov eax, dword [0x4773cc]
push ebx
push 0
push 0x180
push eax
call esi
mov ecx, dword [0x4773cc]
mov edi, eax
push 0x40000
push edi
push 0x19a
push ecx
call esi
mov edx, dword [0x4773cc]
push edi
push 1
push 0x185
push edx
call esi
mov eax, dword [0x4773cc]
push 0
push edi
push 0x19e
push eax
call esi
mov edi, dword [esp + 0x144]
jmp 0x40a79d
push 0
push 0
push 2
push 0
push 2
lea ecx, [esp + 0x50]
push 0x40000000
push ecx
call esi
cmp eax, 0xffffffff
je 0x40a6e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x3c]
push edx
call fcn.0044c687
add esp, 4
jmp 0x40a637
push 0x10
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00448cb0
mov ecx, dword [0x477358]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, eax
lea edx, [esp + 0xc]
xor eax, eax
push edx
mov ecx, 0xc
lea edi, [esp + 0x10]
push eax
push 0x9c45
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
push 0
push 0x9c45
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x477370]
push 1
push 0x9d0f
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
add esp, 0x134
ret 8
mov ecx, dword [0x4773cc]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0
push 0x185
push ecx
call esi
mov edx, dword [0x4773cc]
push 0
push 0
push 0x182
push edx
call esi
push ebx
call fcn.0044c186
add esp, 4
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
push 0xfffffffffffffffc
push edi
call ebx
mov eax, dword [0x4773cc]
push 0
push 0xffffffffffffffeb
push eax
call ebx
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x477358]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
lea edx, [esp + 0xc]
xor eax, eax
push edx
mov ecx, 0xc
lea edi, [esp + 0x10]
push eax
push 0x9c45
rep stosd dword es:[edi], eax
push ebx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
push 0
push 0x9c45
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x477370]
push 1
push 0x9d0f
push 0x401
push eax
call esi
mov edi, dword [esp + 0x148]
test edi, edi
jne 0x40a865
mov ecx, dword [0x4773cc]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x134
ret 8
mov eax, dword [0x4773cc]
cmp edi, eax
je 0x40a87a
push 0xffffffffffffffff
push 0
push 0x185
push eax
call esi
push edi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x134
ret 8