Function at 0x40b6f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov dword [ebp - 4], ecx
push 0x100
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x278]
test edx, edx
je 0x40b734
lea eax, [ebp - 0x278]
mov dword [ebp - 0x1c], eax
jmp 0x40b73b
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.COMCTL32.dll_DPA_DeleteAllPtrs]
cmp dword [ebp - 0xc], 0
je 0x40b775
push 0x439034
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041ba8d
add esp, 8
test eax, eax
je 0x40b775
mov byte [ebp - 5], 1
jmp 0x40b779
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov byte [ebp - 6], al
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x30], edx
jmp 0x40b79d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x30]
jae 0x40b82f
imul edx, dword [ebp - 0x10], 0xc
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x7c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x40b814
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00407fb0
mov dword [ebp - 0x20], eax
movzx edx, byte [ebp - 6]
test edx, edx
je 0x40b7f5
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040eae0
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x40b806
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
jne 0x40b814
jmp 0x40b794
mov edx, dword [ebp - 0x14]
push edx
push ShowHideMenuCtl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.COMCTL32.dll_DPA_InsertPtr]
jmp 0x40b794
mov edx, dword [ebp - 4]
add edx, 0x3c
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x40b849
mov dword [ebp - 0x18], 0
jmp 0x40b853
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0xb
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0x102f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x6c], 1
lea eax, [ebp - 0x78]
push eax
push 0
push 0x102b
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1013
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x18]
push ecx
push str._d_icons
push 0x100
lea edx, [ebp - 0x278]
push edx
call fcn.00407ae0
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x278]
push edx
push 4
push 0x40b
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40b918
mov dword [ebp - 0x3c], 1
jmp 0x40b91f
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040b940
mov esp, ebp
pop ebp
ret 4