Function at 0x40bc70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c6d3
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x40bdaf
push ebx
call fcn.0044e510
add esp, 4
test eax, eax
je 0x40bdaf
cmp byte [0x4c4e88], 0
je 0x40bdaf
push 0x4c4e88
call fcn.0044e510
add esp, 4
test eax, eax
je 0x40bdaf
push 0x80
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.00466b60
push ebx
lea eax, [ebp - 0xd0]
push str._nick__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x34
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00466b60
add esp, 0x24
lea ecx, [ebp - 0x16c]
call fcn.0045f430
lea eax, [ebp - 0xd0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x16c]
call fcn.0045f810
push 0x4914a8
lea ecx, [ebp - 0x16c]
call fcn.0045f7c0
push 0x4c4e88
lea ecx, [ebp - 0x16c]
call fcn.0045f7a0
lea ecx, [ebp - 0x16c]
call fcn.0045f580
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x228], 0x20
test eax, eax
je 0x40bd9d
mov ecx, eax
call fcn.004471d0
mov ecx, dword [0x4c3114]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00425050
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0xffffffff
call fcn.0045f570
mov ebx, dword [0x4c173c]
test ebx, ebx
je 0x40bf96
nop dword [eax]
lea ecx, [ebp - 0x208]
call fcn.0045f430
mov al, byte [ebx + 4]
mov dword [ebp - 4], 1
cmp al, 0x23
je 0x40bde1
cmp al, 0x26
jne 0x40bf79
push 0x456
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xffff0000
push 4
mov edi, eax
push 0x110a
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
je 0x40bece
nop dword [eax]
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2a0], 0xd
push 0
push eax
mov dword [ebp - 0x29c], esi
call fcn.00466b60
add esp, 0xc
mov dword [ebp - 0x28c], 0x3e
lea eax, [ebp - 0x50]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x2a0]
push eax
push 0
push 0x110c
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x11], 0
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40be85
test dl, dl
je 0x40be81
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40be85
add ecx, 2
add eax, 2
test dl, dl
jne 0x40be65
xor eax, eax
jmp 0x40be8a
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bea9
push esi
push 1
push 0x110a
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jne 0x40be10
jmp 0x40bece
mov ecx, dword [ebp - 0x27c]
test ecx, ecx
je 0x40beba
push 1
call fcn.004120f0
push dword [ebp - 0x29c]
push 0
push 0x1101
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x44
mov dword [ebp - 0x278], 0xffff0000
mov dword [ebp - 0x274], 0xffff0003
mov dword [ebp - 0x270], 0x2f
call fcn.0046506d
add esp, 4
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40bf17
push 0x4c5090
push 0x4c4e88
mov ecx, eax
call fcn.0044cd60
jmp 0x40bf19
xor eax, eax
push 0
mov dword [ebp - 0x24c], eax
call fcn.00412c80
mov ecx, dword [ebp - 0x24c]
add esp, 4
push eax
call fcn.00412c30
mov eax, dword [0x4c0258]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x278]
push eax
push 0
push 0x1100
push edi
mov dword [ebp - 0x260], 0x4c4e88
mov dword [ebp - 0x268], 0x10
mov dword [ebp - 0x264], 0x10
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebx + 0x60]
lea ecx, [ebp - 0x208]
mov dword [ebp - 4], 0xffffffff
call fcn.0045f570
test ebx, ebx
jne 0x40bdc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret