Function at 0x46e084
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ebx
push 0
call fcn.0047307c
pop ecx
call fcn.00472580
mov dword [ebp - 4], eax
test eax, eax
je 0x46e2c2
mov eax, dword [ebp + 8]
cmp eax, 0x400
jge 0x46e0c2
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x46e0d5
jmp 0x46e29d
mov edx, dword [0x44d4c50]
mov eax, dword [ebp + 8]
add edx, 0x400
cmp eax, edx
jle 0x46e0e6
push 0xffffffffffffffff
call fcn.0047307c
pop ecx
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4caf64]
mov edx, dword [ebp + 8]
push 0
mov esi, dword [eax + edx*4 - 0x1000]
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
test ebx, ebx
je 0x46e2c2
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x46e337
test esi, esi
je 0x46e28e
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x46e13a
cmp esi, eax
je 0x46e13a
push 0
push 0xd
push 0x106
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46e23e
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
push 0x4c2a24
push 0
push 0x800
push esi
call dword [sym.imp.USER32.dll_AppendMenuA]
push str.Close_tCtrlF4
push 0xf060
push 0
push esi
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [ebx + 0x10]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x46e192
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x46e17b
add eax, 0xffffffff
mov ecx, dword [0x44d4c64]
mov esi, eax
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x46e1b3
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x46e19c
add eax, 0xffffffff
lea edx, [esi + eax + 1]
push edx
call fcn.0048b682
mov dword [ebp - 0x14], eax
add esp, 4
test eax, eax
je 0x46e2fa
mov esi, eax
mov edi, dword [ebx + 0x10]
mov eax, esi
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x46e1d2
test eax, eax
je 0x46e2d4
mov edi, dword [ebp - 0x14]
mov edx, dword [0x44d4c64]
mov esi, edi
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov al, byte [edx]
add edx, 1
mov byte [edi], al
add edi, 1
test al, al
jne 0x46e1ff
mov eax, esi
test eax, eax
je 0x46e2ae
mov eax, dword [ebp - 0x14]
mov edx, dword [ebx + 0x10]
push edx
mov dword [ebx + 0x10], eax
call fcn.0048b5a5
pop ecx
push dword [ebx + 0x10]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [ebx + 0x184], 1
jmp 0x46e280
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46e280
call fcn.0046ba10
mov edx, dword [0x4caf64]
mov ecx, dword [ebp + 8]
push 0
push dword [edx + ecx*4 - 0x1000]
push 0x221
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4caf64]
mov edx, dword [ebp + 8]
mov dword [eax + edx*4 - 0x1000], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx]
je 0x46e320
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0047307c
pop ecx
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0xa4
push str.qwgclose.c
push 5
call fcn.004751b8
add esp, 0xc
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0x9e
push str.qwgclose.c
push 5
call fcn.004751b8
add esp, 0xc
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0x97
push str.qwgclose.c
push 4
call fcn.004751b8
add esp, 0xc
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0046a24c
pop ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp eax, dword [0x440fef0]
jne 0x46e114
mov dword [0x440fef0], 0
jmp 0x46e114