Function at 0x40ca10
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x47c554]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sub eax, 0x7b
je 0x40ca3b
sub eax, 0x186
je 0x40ca3b
sub eax, 3
jne 0x40cd4d
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, dword [sym.imp.USER32.dll_InsertMenuA]
mov ebx, eax
push str.ISIPLC___PC_Based_Controler___Version_1.10.4
push 0xe5
push 3
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
xor dl, dl
mov ecx, 0x48dfc8
xor eax, eax
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], eax
mov edi, 0x484bc0
cmp dword [ecx], 0
je 0x40caf7
cmp byte [0x47cec0], 1
jne 0x40cabb
cmp byte [edi - 0xf], 1
jne 0x40cabb
cmp byte [edi], 0
je 0x40cabb
push edi
push eax
push str.BLOC_04u____s
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004038d0
add esp, 0x14
jmp 0x40cad5
push eax
push str.BLOC_04u
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004038d0
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
push 0
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [ebp - 0x108]
mov dl, 1
mov ecx, dword [ebp - 0x10c]
add ecx, 0x254
inc eax
add edi, 0x8c
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], ecx
cmp ecx, 0x4adff8
jl 0x40ca85
cmp dl, 1
jne 0x40cb2f
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [0x4adff8]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40cb6e
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push 0xdc
push 0
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [0x4ae24c]
test eax, eax
je 0x40cba7
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push 0xdd
push 0
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [0x4ae4a0]
test eax, eax
je 0x40cbe0
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push 0xde
push 0
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [0x4ae6f4]
test eax, eax
je 0x40cc19
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push 0xdf
push 0
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [0x4ae948]
test eax, eax
je 0x40cc52
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push 0xe0
push 0
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [0x4aeb9c]
test eax, eax
je 0x40cc8b
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push 0xe1
push 0
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
mov eax, dword [0x4aedf0]
test eax, eax
je 0x40ccc4
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push 0xe2
push 0
push 0xffffffffffffffff
push ebx
call esi
push 0
push 0
push 0x800
push 0xffffffffffffffff
push ebx
call esi
push str.Main_Window
push 0xe3
push 0
push 0xffffffffffffffff
push ebx
call esi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push dword [0x47cea4]
push 0
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push 0x180
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, 0xe4
ja 0x40cd43
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
imul edi, eax, 0x254
push 1
push dword [edi + 0x48dfc8]
call esi
push 9
push dword [edi + 0x48dfc8]
call esi
push 3
push 0
push 0
push 0
push 0
push 0
push dword [edi + 0x48dfc8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret